Class ApiManagementServiceIdentity


  • public class ApiManagementServiceIdentity
    extends Object
    Identity properties of the Api Management service resource.
    • Constructor Detail

      • ApiManagementServiceIdentity

        public ApiManagementServiceIdentity()
    • Method Detail

      • type

        public ApimIdentityType type()
        Get the type property: The type of identity used for the resource. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the service.
        Returns:
        the type value.
      • withType

        public ApiManagementServiceIdentity withType​(ApimIdentityType type)
        Set the type property: The type of identity used for the resource. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the service.
        Parameters:
        type - the type value to set.
        Returns:
        the ApiManagementServiceIdentity object itself.
      • principalId

        public UUID principalId()
        Get the principalId property: The principal id of the identity.
        Returns:
        the principalId value.
      • tenantId

        public UUID tenantId()
        Get the tenantId property: The client tenant id of the identity.
        Returns:
        the tenantId value.
      • userAssignedIdentities

        public Map<String,​UserIdentityProperties> userAssignedIdentities()
        Get the userAssignedIdentities property: 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:
        the userAssignedIdentities value.
      • withUserAssignedIdentities

        public ApiManagementServiceIdentity withUserAssignedIdentities​(Map<String,​UserIdentityProperties> userAssignedIdentities)
        Set the userAssignedIdentities property: 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:
        userAssignedIdentities - the userAssignedIdentities value to set.
        Returns:
        the ApiManagementServiceIdentity object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.