你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Identity 类

资源的标识。

变量仅由服务器填充,在发送请求时将被忽略。

继承
azure.mgmt.resource.resources._serialization.Model
Identity

构造函数

Identity(*, type: str | _models.ResourceIdentityType | None = None, user_assigned_identities: Dict[str, _models.IdentityUserAssignedIdentitiesValue] | None = None, **kwargs: Any)

仅限关键字的参数

名称 说明
type

标识类型。 已知值为:“SystemAssigned”、“UserAssigned”、“SystemAssigned、UserAssigned”和“None”。

user_assigned_identities

与资源关联的用户标识列表。 用户标识字典密钥引用将是 ARM 资源 ID,格式为:“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。

变量

名称 说明
principal_id
str

资源标识的主体 ID。

tenant_id
str

资源的租户 ID。

type

标识类型。 已知值为:“SystemAssigned”、“UserAssigned”、“SystemAssigned、UserAssigned”和“None”。

user_assigned_identities

与资源关联的用户标识列表。 用户标识字典密钥引用将是 ARM 资源 ID,格式为:“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。