node, Keystone. vi/etc/keystone/keystone.conf
, admin_token. :
admin_token = 05131394ad6b49c56f217
. python:
>>> from keystoneclient.v2_0.client as ksclient
>>> keystone = ksclient.Client(auth_url="http://service-stack.linxsol.com:35357/v2.0", username="admin", password="123456", tenant_name="admin")
, auth_url, * , * tenant_name . api:
keystone.tenants.list()
keystone.users.list()
keystone.roles.list()
dir (keystone), .
:
auth_ref = keystone.auth_ref or token = ksclient.get_raw_token_from_identity_service(auth_url="http://service-stack.linxsol.com:35357/v2.0", username="admin", password="123456", tenant_name="admin")
, , .
, , python-keystoneclient.
, .