Identity interface
资源的标识。 策略分配最多支持一个标识。 这是系统分配的标识或单个用户分配的标识。
属性
| principal |
资源标识的主体 ID。 该属性仅会为系统分配的身份提供 |
| tenant |
资源标识的租户 ID。 该属性仅会为系统分配的身份提供 |
| type | 标识类型。 这是将系统或用户分配的标识添加到资源时的唯一必填字段。 |
| user |
与策略关联的用户标识。 用户标识字典密钥引用的格式为 ARM 资源 ID:“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。 |
属性详细信息
principalId
资源标识的主体 ID。 该属性仅会为系统分配的身份提供
principalId?: string
属性值
string
tenantId
资源标识的租户 ID。 该属性仅会为系统分配的身份提供
tenantId?: string
属性值
string
type
userAssignedIdentities
与策略关联的用户标识。 用户标识字典密钥引用的格式为 ARM 资源 ID:“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。
userAssignedIdentities?: Record<string, UserAssignedIdentitiesValue>
属性值
Record<string, UserAssignedIdentitiesValue>