Identity Class
Identity for the resource. Policy assignments support a maximum of one identity. That is either a system assigned identity or a single user assigned identity.
Variables are only populated by the server, and will be ignored when sending a request.
Constructor
Identity(*, type: str | _models.ResourceIdentityType | None = None, user_assigned_identities: Dict[str, _models.UserAssignedIdentitiesValue] | None = None, **kwargs: Any)
Keyword-Only Parameters
| Name | Description |
|---|---|
|
type
|
The identity type. This is the only required field when adding a system or user assigned identity to a resource. Known values are: "SystemAssigned", "UserAssigned", and "None". Default value: None
|
|
user_assigned_identities
|
The user identity associated with the policy. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. Default value: None
|
Variables
| Name | Description |
|---|---|
|
principal_id
|
The principal ID of the resource identity. This property will only be provided for a system assigned identity. |
|
tenant_id
|
The tenant ID of the resource identity. This property will only be provided for a system assigned identity. |
|
type
|
The identity type. This is the only required field when adding a system or user assigned identity to a resource. Known values are: "SystemAssigned", "UserAssigned", and "None". |
|
user_assigned_identities
|
The user identity associated with the policy. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. |