Bases: HTTPClient
Client for the OpenStack Keystone pre-version calls API.
endpoint (string) – A user-supplied endpoint URL for the keystone service.
timeout (integer) – Allows customization of the timeout for client http requests. (optional)
Example:
>>> from keystoneclient.generic import client
>>> root = client.Client(auth_url=KEYSTONE_URL)
>>> versions = root.discover()
...
>>> from keystoneclient.v2_0 import client as v2client
>>> keystone = v2client.Client(auth_url=versions['v2.0']['url'])
...
>>> user = keystone.users.get(USER_ID)
>>> user.delete()
Discover Keystone servers and return API versions supported.
url – optional url to test (without version)
Returns:
{
'message': 'Keystone found at http://127.0.0.1:5000/',
'v2.0': {
'status': 'beta',
'url': 'http://127.0.0.1:5000/v2.0/',
'id': 'v2.0'
},
}
Discover Keystone extensions supported.
url – optional url to test (should have a version in it)
Returns:
{
'message': 'Keystone extensions at http://127.0.0.1:35357/v2',
'OS-KSEC2': 'OpenStack EC2 Credentials Extension',
}
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.