Class ManagedClusterIdentity
java.lang.Object
com.microsoft.azure.management.containerservice.ManagedClusterIdentity
Identity for the managed cluster.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the principal id of the system assigned identity which is used by master components.tenantId()
Get the tenant id of the system assigned identity which is used by master components.type()
Get the type of identity used for the managed cluster.Get the user identity associated with the managed cluster.withType
(ResourceIdentityType type) Set the type of identity used for the managed cluster.withUserAssignedIdentities
(Map<String, ManagedClusterIdentityUserAssignedIdentitiesValue> userAssignedIdentities) Set the user identity associated with the managed cluster.
-
Constructor Details
-
ManagedClusterIdentity
public ManagedClusterIdentity()
-
-
Method Details
-
principalId
Get the principal id of the system assigned identity which is used by master components.- Returns:
- the principalId value
-
tenantId
Get the tenant id of the system assigned identity which is used by master components.- Returns:
- the tenantId value
-
type
Get the type of identity used for the managed cluster. Type 'SystemAssigned' will use an implicitly created identity in master components and an auto-created user assigned identity in MC_ resource group in agent nodes. Type 'None' will not use MSI for the managed cluster, service principal will be used instead. Possible values include: 'SystemAssigned', 'UserAssigned', 'None'.- Returns:
- the type value
-
withType
Set the type of identity used for the managed cluster. Type 'SystemAssigned' will use an implicitly created identity in master components and an auto-created user assigned identity in MC_ resource group in agent nodes. Type 'None' will not use MSI for the managed cluster, service principal will be used instead. Possible values include: 'SystemAssigned', 'UserAssigned', 'None'.- Parameters:
type
- the type value to set- Returns:
- the ManagedClusterIdentity object itself.
-
userAssignedIdentities
Get the user identity associated with the managed cluster. This identity will be used in control plane and only one user assigned identity is allowed. 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 ManagedClusterIdentity withUserAssignedIdentities(Map<String, ManagedClusterIdentityUserAssignedIdentitiesValue> userAssignedIdentities) Set the user identity associated with the managed cluster. This identity will be used in control plane and only one user assigned identity is allowed. 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 ManagedClusterIdentity object itself.
-