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.
- Inheritance
-
Identity
Constructor
Identity(*, type: Optional[Union[str, azure.mgmt.resource.policy.v2021_06_01.models._policy_client_enums.ResourceIdentityType]] = None, user_assigned_identities: Optional[Dict[str, azure.mgmt.resource.policy.v2021_06_01.models._models_py3.UserAssignedIdentitiesValue]] = None, **kwargs)
Variables
- 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
- str or ResourceIdentityType
The identity type. This is the only required field when adding a system or user assigned identity to a resource. Possible values include: "SystemAssigned", "UserAssigned", "None".
- user_assigned_identities
- dict[<xref:str,azure.mgmt.resource.policy.v2021_06_01.models.UserAssignedIdentitiesValue>]
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}'.
Feedback
Submit and view feedback for