Identity Class
- java.
lang. Object - com.
microsoft. azure. management. resources. Identity
- com.
public class Identity
Identity for the resource.
Constructor Summary
Constructor | Description | |
---|---|---|
Identity() |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.lang.String |
principalId()
Get the principal ID of resource identity. |
java.lang.String |
tenantId()
Get the tenant ID of resource. |
Resource |
type()
Get the identity type. |
java.util.Map<java.lang.String,Identity |
userAssignedIdentities()
Get the list of user identities associated with the resource. |
Identity |
withType(ResourceIdentityType type)
Set the identity type. |
Identity |
withUserAssignedIdentities(Map<String,IdentityUserAssignedIdentitiesValue> userAssignedIdentities)
Set the list of user identities associated with the resource. |
Methods inherited from java.lang.Object
Constructor Details
Identity
public Identity()
Method Details
principalId
public String principalId()
Get the principal ID of resource identity.
Returns:
tenantId
public String tenantId()
Get the tenant ID of resource.
Returns:
type
public ResourceIdentityType type()
Get the identity type. Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None'.
Returns:
userAssignedIdentities
public Map
Get the list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
Returns:
withType
public Identity withType(ResourceIdentityType type)
Set the identity type. Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None'.
Parameters:
Returns:
withUserAssignedIdentities
public Identity withUserAssignedIdentities(Map
Set the list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
Parameters:
Returns: