Bases: openstack_dashboard.api.base.APIVersionManager
Bases: openstack_dashboard.api.base.APIDictWrapper
Wrapper for a dict based on the service data from keystone.
Adds a role for a user on a domain.
Adds a role for a group on a domain or project.
Adds a role for a user on a tenant.
Gets the default domain object to use when creating Identity object.
Returns the domain context if is set, otherwise return the domain of the logon user.
Parameters: | get_name – Whether to get the domain name from Keystone if the context isn’t set. Setting this to False prevents an unnecessary call to Keystone if only the domain ID is needed. |
---|
Gets the default role object from Keystone and saves it as a global.
Since this is configured in settings and should not change from request to request. Supports lookup by name or id.
Gets the id of the default domain to use when creating Identity objects. If the requests default domain is the same as DEFAULT_DOMAIN, return None.
Gets the groups roles in a given project.
Parameters: |
|
---|---|
Returns group_roles: | |
a dictionary mapping the groups and their roles in given project |
Returns a client connected to the Keystone backend.
Several forms of authentication are supported:
- Username + password -> Unscoped authentication
- Username + password + tenant id -> Scoped authentication
- Unscoped token -> Unscoped authentication
- Unscoped token + tenant id -> Scoped authentication
- Scoped token -> Scoped authentication
Available services and data from the backend will vary depending on whether the authentication was scoped or unscoped.
Lazy authentication if an endpoint parameter is provided.
Calls requiring the admin endpoint should have admin=True passed in as a keyword argument.
The client is cached so that subsequent API calls during the same request/response cycle don’t have to be re-authenticated.
Removes a given single role for a user from a domain.
Removes a given single role for a group from a domain or project.
Removes all roles from a group on a domain or project.
Removes all roles from a user on a tenant, removing them from it.
Removes a given single role for a user from a tenant.
Returns a global list of available roles.
Returns a list of user roles scoped to a project or domain.