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.
Constructor
Identity()
Variables
| Name | Description |
|---|---|
|
principalId
|
The principal ID of the resource identity. This property will only be provided for a system assigned identity. |
|
tenantId
|
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". |
|
userAssignedIdentities
|
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}'. |
Attributes
principalId
The principal ID of the resource identity. This property will only be provided for a system assigned identity.
principalId: str
tenantId
The tenant ID of the resource identity. This property will only be provided for a system assigned identity.
tenantId: str
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".
type: str | ResourceIdentityType
userAssignedIdentities
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}'.
userAssignedIdentities: dict[str, 'UserAssignedIdentitiesValue']