Custom Search

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