Bases: object
Add a role to a user within given tenant.
Raises keystone.exception.Conflict: | |
---|---|
If a duplicate role assignment exists. |
Check an assignment/grant role id.
Raises keystone.exception.RoleAssignmentNotFound: | |
---|---|
If the role assignment doesn’t exist. | |
Returns: | None or raises an exception if grant not found |
Create a new assignment/grant.
If the assignment is to a domain, then optionally it may be specified as inherited to owned projects (this requires the OS-INHERIT extension to be enabled).
Delete assignments/grants.
Raises keystone.exception.RoleAssignmentNotFound: | |
---|---|
If the role assignment doesn’t exist. |
Delete all assignments for a group.
Raises keystone.exception.RoleNotFound: | |
---|---|
If the role doesn’t exist. |
Delete all assignments for a project.
Raises keystone.exception.ProjectNotFound: | |
---|---|
If the project doesn’t exist. |
Delete all assignments for a user.
Raises keystone.exception.RoleNotFound: | |
---|---|
If the role doesn’t exist. |
List role ids for assignments/grants.
Return a list of role assignments for actors on targets.
Available parameters represent values in which the returned role assignments attributes need to be filtered on.
Remove a role from a user within given tenant.
Raises keystone.exception.RoleNotFound: | |
---|---|
If the role doesn’t exist. |
Bases: keystone.assignment.backends.base.AssignmentDriverBase
Removed or redefined methods from V8.
Move the abstract methods of any methods removed or modified in later versions of the driver from AssignmentDriverBase to here. We maintain this so that legacy drivers, which will be a subclass of AssignmentDriverV8, can still reference them.
List domain ids accessible to specified groups.
Parameters: |
|
---|---|
Returns: | List of domain ids accessible to specified groups. |
List all domain ids associated with a given user.
Parameters: |
|
---|---|
Returns: | a list of domain ids or an empty list. |
List project ids accessible to specified groups.
Parameters: |
|
---|---|
Returns: | List of project ids accessible to specified groups. |
This method should not try and expand any inherited assignments, just report the projects that have the role for this group. The manager method is responsible for expanding out inherited assignments.
List all project ids associated with a given user.
Parameters: |
|
---|---|
Returns: | a list of project ids or an empty list. |
This method should not try and expand any inherited assignments, just report the projects that have the role for this user. The manager method is responsible for expanding out inherited assignments.
List the group role ids for a specific domain.
Parameters: |
|
---|---|
Returns: | list of role ids for the project |
Return type: | list |
List the group role ids for a specific project.
Supports the OS-INHERIT role inheritance from the project’s domain if supported by the assignment driver.
Parameters: |
|
---|---|
Returns: | list of role ids for the project |
Return type: | list |
Bases: keystone.assignment.backends.base.AssignmentDriverBase
New or redefined methods from V8.
Add any new V9 abstract methods (or those with modified signatures) to this class.
Bases: keystone.assignment.backends.base.AssignmentDriverV9
Wrapper class to supported a V8 legacy driver.
In order to support legacy drivers without having to make the manager code driver-version aware, we wrap legacy drivers so that they look like the latest version. For the various changes made in a new driver, here are the actions needed in this wrapper: