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?: {[propertyName: string]: UserAssignedIdentitiesValue}
属性值
{[propertyName: string]: UserAssignedIdentitiesValue}