Compartilhar via


RoleAssignment Class

Role Assignments.

Variables are only populated by the server, and will be ignored when sending a request.

Inheritance
azure.mgmt.authorization._serialization.Model
RoleAssignment

Constructor

RoleAssignment(*, scope: str | None = None, role_definition_id: str | None = None, principal_id: str | None = None, principal_type: str | _models.PrincipalType | None = None, can_delegate: bool | None = None, description: str | None = None, condition: str | None = None, condition_version: str | None = None, created_on: datetime | None = None, updated_on: datetime | None = None, created_by: str | None = None, updated_by: str | None = None, delegated_managed_identity_resource_id: str | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
scope
str

The role assignment scope.

role_definition_id
str

The role definition ID.

principal_id
str

The principal ID.

principal_type

The principal type of the assigned principal ID. Known values are: "User", "Group", "ServicePrincipal", and "ForeignGroup".

can_delegate

The Delegation flag for the role assignment.

description
str

Description of role assignment.

condition
str

The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'.

condition_version
str

Version of the condition. Currently accepted value is '2.0'.

created_on

Time it was created.

updated_on

Time it was updated.

created_by
str

Id of the user who created the assignment.

updated_by
str

Id of the user who updated the assignment.

delegated_managed_identity_resource_id
str

Id of the delegated managed identity resource.

Variables

Name Description
id
str

The role assignment ID.

name
str

The role assignment name.

type
str

The role assignment type.

scope
str

The role assignment scope.

role_definition_id
str

The role definition ID.

principal_id
str

The principal ID.

principal_type

The principal type of the assigned principal ID. Known values are: "User", "Group", "ServicePrincipal", and "ForeignGroup".

can_delegate

The Delegation flag for the role assignment.

description
str

Description of role assignment.

condition
str

The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'.

condition_version
str

Version of the condition. Currently accepted value is '2.0'.

created_on

Time it was created.

updated_on

Time it was updated.

created_by
str

Id of the user who created the assignment.

updated_by
str

Id of the user who updated the assignment.

delegated_managed_identity_resource_id
str

Id of the delegated managed identity resource.