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.
Create a new credential from attributes
attrs (dict) – Keyword arguments which will be used to create
a Credential
,
comprised of the properties on the Credential class.
The results of credential creation
Delete a credential
credential – The value can be either the ID of a credential or a
Credential
instance.
ignore_missing (bool) – When set to False
ResourceNotFound
will be
raised when the credential does not exist.
When set to True
, no exception will be set when
attempting to delete a nonexistent credential.
None
Find a single credential
name_or_id – The name or ID of a credential.
ignore_missing (bool) – When set to False
ResourceNotFound
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 Credential
or None
Get a single credential
credential – The value can be the ID of a credential or a
Credential
instance.
One Credential
ResourceNotFound
when no resource can be found.
Retrieve a generator of credentials
query (kwargs) – Optional query parameters to be sent to limit the resources being returned.
A generator of credentials instances.
Update a credential
credential – Either the ID of a credential or a
Credential
instance.
The attributes to update on the credential represented
by value
.
The updated credential
Create a new domain from attributes
Delete a domain
domain – The value can be either the ID of a domain or a
Domain
instance.
ignore_missing (bool) – When set to False
ResourceNotFound
will be
raised when the domain does not exist.
When set to True
, no exception will be set when
attempting to delete a nonexistent domain.
None
Find a single domain
name_or_id – The name or ID of a domain.
ignore_missing (bool) – When set to False
ResourceNotFound
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 Domain
or None
Get a single domain
Retrieve a generator of domains
query (kwargs) – Optional query parameters to be sent to limit the resources being returned.
A generator of domain instances.
Create a new endpoint from attributes
Delete an endpoint
endpoint – The value can be either the ID of an endpoint or a
Endpoint
instance.
ignore_missing (bool) – When set to False
ResourceNotFound
will be
raised when the endpoint does not exist.
When set to True
, no exception will be set when
attempting to delete a nonexistent endpoint.
None
Find a single endpoint
name_or_id – The name or ID of a endpoint.
ignore_missing (bool) – When set to False
ResourceNotFound
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 Endpoint
or None
Get a single endpoint
Retrieve a generator of endpoints
query (kwargs) – Optional query parameters to be sent to limit the resources being returned.
A generator of endpoint instances.
Create a new group from attributes
Delete a group
group – The value can be either the ID of a group or a
Group
instance.
ignore_missing (bool) – When set to False
ResourceNotFound
will be
raised when the group does not exist.
When set to True
, no exception will be set when
attempting to delete a nonexistent group.
None
Find a single group
name_or_id – The name or ID of a group.
ignore_missing (bool) – When set to False
ResourceNotFound
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 Group
or None
Get a single group
Retrieve a generator of groups
query (kwargs) – Optional query parameters to be sent to limit the resources being returned.
A generator of group instances.
Update a group
Add user to group
Remove user to group
Create a new policy from attributes
Delete a policy
policy – The value can be either the ID of a policy or a
Policy
instance.
ignore_missing (bool) – When set to False
ResourceNotFound
will be
raised when the policy does not exist.
When set to True
, no exception will be set when
attempting to delete a nonexistent policy.
None
Find a single policy
name_or_id – The name or ID of a policy.
ignore_missing (bool) – When set to False
ResourceNotFound
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 Policy
or None
Get a single policy
Retrieve a generator of policies
query (kwargs) – Optional query parameters to be sent to limit the resources being returned.
A generator of policy instances.
Create a new project from attributes
Delete a project
project – The value can be either the ID of a project or a
Project
instance.
ignore_missing (bool) – When set to False
ResourceNotFound
will be
raised when the project does not exist.
When set to True
, no exception will be set when
attempting to delete a nonexistent project.
None
Find a single project
name_or_id – The name or ID of a project.
ignore_missing (bool) – When set to False
ResourceNotFound
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 Project
or None
Get a single project
Retrieve a generator of projects
query (kwargs) – Optional query parameters to be sent to limit the resources being returned.
A generator of project instances.
Create a new region from attributes
attrs (dict) – Keyword arguments which will be used to create
a Region
,
comprised of the properties on the Region class.
The results of region creation.
Region
Delete a region
region – The value can be either the ID of a region or a
Region
instance.
ignore_missing (bool) – When set to False
ResourceNotFound
will be
raised when the region does not exist.
When set to True
, no exception will be thrown when
attempting to delete a nonexistent region.
None
Find a single region
name_or_id – The name or ID of a region.
ignore_missing (bool) – When set to False
ResourceNotFound
will be
raised when the region does not exist.
When set to True
, None will be returned when
attempting to find a nonexistent region.
One Region
or None
Get a single region
region – The value can be the ID of a region or a
Region
instance.
One Region
ResourceNotFound
when no matching region can be found.
Retrieve a generator of regions
query (kwargs) – Optional query parameters to be sent to limit the regions being returned.
A generator of region instances.
Region
Update a region
region – Either the ID of a region or a
Region
instance.
The attributes to update on the region represented
by value
.
The updated region.
Region
Create a new role from attributes
attrs (dict) – Keyword arguments which will be used to create
a Role
,
comprised of the properties on the Role class.
The results of role creation.
Role
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
ResourceNotFound
will be
raised when the role does not exist.
When set to True
, no exception will be thrown 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
ResourceNotFound
will be
raised when the role does not exist.
When set to True
, None will be returned when
attempting to find a nonexistent role.
One Role
or None
Get a single role
role – The value can be the ID of a role or a
Role
instance.
One Role
ResourceNotFound
when no matching role can be found.
Retrieve a generator of roles
query (kwargs) – Optional query parameters to be sent to limit the resources being returned. The options are: domain_id, name.
A generator of role instances.
Role
Update a role
role – Either the ID of a role or a
Role
instance.
kwargs (dict) – The attributes to update on the role represented
by value
. Only name can be updated
The updated role.
Role
Retrieve a generator of roles assigned to user/group
A generator of role instances.
Role
Retrieve a generator of role assignments
query (kwargs) – Optional query parameters to be sent to limit the resources being returned. The options are: group_id, role_id, scope_domain_id, scope_project_id, user_id, include_names, include_subtree.
RoleAssignment
Assign role to user on a domain
Unassign role from user on a domain
Validates that a user has a role on a domain
Assign role to group on a domain
Unassign role from group on a domain
Validates that a group has a role on a domain
Assign role to user on a project
Unassign role from user on a project
Validates that a user has a role on a project
Assign role to group on a project
Unassign role from group on a project
Validates that a group has a role on a project
Assign a role to user on a system
user – Either the ID of a user or a
User
instance.
role – Either the ID of a role or a
Role
instance.
system – The system name
None
Unassign a role from user on a system
user – Either the ID of a user or a
User
instance.
role – Either the ID of a role or a
Role
instance.
system – The system name
None
Validates that a user has a role on a system
user – Either the ID of a user or a
User
instance.
role – Either the ID of a role or a
Role
instance.
system – The system name
True if user has role in system
Assign a role to group on a system
group – Either the ID of a group or a
Group
instance.
role – Either the ID of a role or a
Role
instance.
system – The system name
None
Unassign a role from group on a system
group – Either the ID of a group or a
Group
instance.
role – Either the ID of a role or a
Role
instance.
system – The system name
None
Validates that a group has a role on a system
group – Either the ID of a group or a
Group
instance.
role – Either the ID of a role or a
Role
instance.
system – The system name
True if group has role on system
Create a new service from attributes
Delete a service
service – The value can be either the ID of a service or a
Service
instance.
ignore_missing (bool) – When set to False
ResourceNotFound
will be
raised when the service does not exist.
When set to True
, no exception will be set when
attempting to delete a nonexistent service.
None
Find a single service
name_or_id – The name or ID of a service.
ignore_missing (bool) – When set to False
ResourceNotFound
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 Service
or None
Get a single service
Retrieve a generator of services
query (kwargs) – Optional query parameters to be sent to limit the resources being returned.
A generator of service instances.
Create a new trust from attributes
Delete a trust
trust – The value can be either the ID of a trust or a
Trust
instance.
ignore_missing (bool) – When set to False
ResourceNotFound
will be
raised when the credential does not exist.
When set to True
, no exception will be set when
attempting to delete a nonexistent credential.
None
Find a single trust
name_or_id – The name or ID of a trust.
ignore_missing (bool) – When set to False
ResourceNotFound
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 Trust
or None
Get a single trust
Retrieve a generator of trusts
query (kwargs) – Optional query parameters to be sent to limit the resources being returned.
A generator of trust instances.
to access.
user – Either the user id or an instance of
User
query (kwargs) – Optional query parameters to be sent to limit the resources being returned.
A generator of project instances.
UserProject
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
ResourceNotFound
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
ResourceNotFound
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
Retrieve a generator of users
query (kwargs) – Optional query parameters to be sent to limit the resources being returned.
A generator of user instances.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.