Custom Search

SUBSCRIBE

SUBSCRIBE : 300 + Free Video Tutorials Programming (Python, golang, Julia), DevOps

Monday, August 18, 2014

How to connect to OpenStack Keystone API v2.0 using keystoneclient

How to connect to OpenStack Identity API v2.0 using keystoneclient 

import keystoneclient
 

from keystoneclient.v2_0 import client
 

keystone = client.Client(username="admin", password="nova", tenant_name="admin", auth_url="http://192.168.56.101:5000/v2.0", debug=True)

print "Projects:===>", keystone.tenants.list()
print "\n"
print "Users:===>",  keystone.users.list()





















No comments:

Post a Comment