你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Identity 类
- java.
lang. Object - com.
microsoft. azure. management. resources. Identity
- com.
public class Identity
资源的标识。
构造函数摘要
构造函数 | 说明 | |
---|---|---|
Identity() |
方法摘要
修饰符和类型 | 方法和描述 |
---|---|
java.lang.String |
principalId()
获取资源标识的主体 ID。 |
java.lang.String |
tenantId()
获取资源的租户 ID。 |
Resource |
type()
获取标识类型。 |
java.util.Map<java.lang.String,Identity |
userAssignedIdentities()
获取与资源关联的用户标识列表。 |
Identity |
withType(ResourceIdentityType type)
设置标识类型。 |
Identity |
withUserAssignedIdentities(Map<String,IdentityUserAssignedIdentitiesValue> userAssignedIdentities)
设置与资源关联的用户标识列表。 |
方法继承自 java.lang.Object
构造函数详细信息
Identity
public Identity()
方法详细信息
principalId
public String principalId()
获取资源标识的主体 ID。
Returns:
tenantId
public String tenantId()
获取资源的租户 ID。
Returns:
type
public ResourceIdentityType type()
获取标识类型。 可能的值包括:“SystemAssigned”、“UserAssigned”、“SystemAssigned、UserAssigned”、“None”。
Returns:
userAssignedIdentities
public Map
获取与资源关联的用户标识列表。 用户标识字典密钥引用将是 ARM 资源 ID,格式为:“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。
Returns:
withType
public Identity withType(ResourceIdentityType type)
设置标识类型。 可能的值包括:“SystemAssigned”、“UserAssigned”、“SystemAssigned、UserAssigned”、“None”。
Parameters:
Returns:
withUserAssignedIdentities
public Identity withUserAssignedIdentities(Map
设置与资源关联的用户标识列表。 用户标识字典密钥引用将是 ARM 资源 ID,格式为:“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。
Parameters:
Returns: