Bases: AssignmentDriverBase
Add a role to a user within given project.
keystone.exception.Conflict – If a duplicate role assignment exists.
Check an assignment/grant role id.
keystone.exception.RoleAssignmentNotFound – If the role assignment doesn’t exist.
None or raises an exception if grant not found
Check if a user or group has a specific role on the system.
role_id – the unique ID of the role to grant to the user
actor_id – the unique ID of the user or group
target_id – the unique ID or string representing the target
inherited – a boolean denoting if the assignment is inherited or not
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).
Grant a user or group a role on the system.
role_id – the unique ID of the role to grant to the user
actor_id – the unique ID of the user or group
target_id – the unique ID or string representing the target
assignment_type – a string describing the relationship of the assignment
inherited – a boolean denoting if the assignment is inherited or not
Delete assignments/grants.
keystone.exception.RoleAssignmentNotFound – If the role assignment doesn’t exist.
Delete all assignments for a group.
keystone.exception.RoleNotFound – If the role doesn’t exist.
Delete all assignments for a project.
keystone.exception.ProjectNotFound – If the project doesn’t exist.
Remove a system assignment from a user or group.
role_id – the unique ID of the role to grant to the user
actor_id – the unique ID of the user or group
target_id – the unique ID or string representing the target
inherited – a boolean denoting if the assignment is inherited or not
Delete all assignments for a user.
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.
Return a list of all system assignments for a specific entity.
actor_id – the unique ID of the actor
target_id – the unique ID of the target
assignment_type – the type of assignment to return
Return a list of system assignments associated to a role.
role_id – the unique ID of the role to grant to the user
Remove a role from a user within given project.
keystone.exception.RoleNotFound – If the role doesn’t exist.
Bases: object
Bases: Base
, ModelDictMixin
Override parent method with a simpler implementation.
RoleAssignment doesn’t have non-indexed ‘extra’ attributes, so the parent implementation is not applicable.
Bases: Base
, ModelDictMixin
Override parent method with a simpler implementation.
RoleAssignment doesn’t have non-indexed ‘extra’ attributes, so the parent implementation is not applicable.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.