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(*args: Any, **kwargs: Any)

Variables

Name Description
principal_id
str

The principal ID of the resource identity. This property will only be provided for a system assigned identity.

tenant_id
str

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}'.

Attributes

principal_id

The principal ID of the resource identity. This property will only be provided for a system assigned identity.

principal_id: str | None

tenant_id

The tenant ID of the resource identity. This property will only be provided for a system assigned identity.

tenant_id: str | None

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 | _models.ResourceIdentityType | 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}'.

user_assigned_identities: dict[str, '_models.UserAssignedIdentitiesValue'] | None