Custom Search


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="", debug=True)

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

No comments:

Post a Comment