The keystoneclient.v3.client Module

class keystoneclient.v3.client.Client(endpoint=None, **kwargs)

Bases: keystoneclient.v2_0.client.Client

Client for the OpenStack Identity API v3.

Parameters:
  • username (string) – Username for authentication. (optional)
  • password (string) – Password for authentication. (optional)
  • token (string) – Token for authentication. (optional)
  • tenant_name (string) – Tenant id. (optional)
  • tenant_id (string) – Tenant name. (optional)
  • auth_url (string) – Keystone service endpoint for authorization.
  • region_name (string) – Name of a region to select when choosing an endpoint from the service catalog.
  • endpoint (string) – A user-supplied endpoint URL for the keystone service. Lazy-authentication is possible for API service calls if endpoint is set at instantiation.(optional)
  • timeout (integer) – Allows customization of the timeout for client http requests. (optional)

Example:

>>> from keystoneclient.v3 import client
>>> keystone = client.Client(username=USER,
                             password=PASS,
                             tenant_name=TENANT_NAME,
                             auth_url=KEYSTONE_URL)
>>> keystone.tenants.list()
...
>>> user = keystone.users.get(USER_ID)
>>> user.delete()
serialize(entity)

Previous topic

The keystoneclient.v2_0.users Module

Next topic

The keystoneclient.v3.credentials Module

This Page