For details on how to use identity, see Using OpenStack Identity
The identity high-level interface is available through the identity
member of a Connection
object. The
identity
member will only be added if the service is detected.
Retrieve a generator of extensions
A generator of extension instances.
Get a single extension
extension – The value can be the ID of an extension or a
Extension
instance.
One Extension
NotFoundException
when no extension can be found.
Create a new user from attributes
Delete a user
user – The value can be either the ID of a user or a
User
instance.
ignore_missing (bool) – When set to False
NotFoundException
will be
raised when the user does not exist.
When set to True
, no exception will be set when
attempting to delete a nonexistent user.
None
Find a single user
name_or_id – The name or ID of a user.
ignore_missing (bool) – When set to False
NotFoundException
will be
raised when the resource does not exist.
When set to True
, None will be returned when
attempting to find a nonexistent resource.
One User
or None
Get a single user
user – The value can be the ID of a user or a
User
instance.
One User
NotFoundException
when no resource can be found.
Retrieve a generator of users
query (kwargs) – Optional query parameters to be sent to limit the resources being returned.
A generator of user instances.
Create a new role from attributes
Delete a role
role – The value can be either the ID of a role or a
Role
instance.
ignore_missing (bool) – When set to False
NotFoundException
will be
raised when the role does not exist.
When set to True
, no exception will be set when
attempting to delete a nonexistent role.
None
Find a single role
name_or_id – The name or ID of a role.
ignore_missing (bool) – When set to False
NotFoundException
will be
raised when the resource does not exist.
When set to True
, None will be returned when
attempting to find a nonexistent resource.
One Role
or None
Get a single role
role – The value can be the ID of a role or a
Role
instance.
One Role
NotFoundException
when no resource can be found.
Retrieve a generator of roles
query (kwargs) – Optional query parameters to be sent to limit the resources being returned.
A generator of role instances.
Create a new tenant from attributes
Delete a tenant
tenant – The value can be either the ID of a tenant or a
Tenant
instance.
ignore_missing (bool) – When set to False
NotFoundException
will be
raised when the tenant does not exist.
When set to True
, no exception will be set when
attempting to delete a nonexistent tenant.
None
Find a single tenant
name_or_id – The name or ID of a tenant.
ignore_missing (bool) – When set to False
NotFoundException
will be
raised when the resource does not exist.
When set to True
, None will be returned when
attempting to find a nonexistent resource.
One Tenant
or None
Get a single tenant
tenant – The value can be the ID of a tenant or a
Tenant
instance.
One Tenant
NotFoundException
when no resource can be found.
Retrieve a generator of tenants
query (kwargs) – Optional query parameters to be sent to limit the resources being returned.
A generator of tenant instances.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.