User Assigned Identities - List By Subscription
列出指定订阅下提供的所有 userAssignedIdentities。
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.ManagedIdentity/userAssignedIdentities?api-version=2024-11-30
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
subscription
|
path | True |
string (uuid) |
目标订阅的 ID。 该值必须是 UUID。 |
|
api-version
|
query | True |
string minLength: 1 |
用于此作的 API 版本。 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK |
请求已成功。 |
|
| Other Status Codes |
意外错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow。
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
| 名称 | 说明 |
|---|---|
| user_impersonation | 模拟用户帐户 |
示例
IdentityListBySubscription
示例请求
GET https://management.azure.com/subscriptions/12345678-1234-5678-9012-123456789012/providers/Microsoft.ManagedIdentity/userAssignedIdentities?api-version=2024-11-30
示例响应
{
"nextLink": "https://serviceRoot/subscriptions/subId/providers/Microsoft.ManagedIdentity/userAssignedIdentities?api-version=2024-11-30&$skiptoken=X'12345'",
"value": [
{
"name": "identityName",
"type": "Microsoft.ManagedIdentity/userAssignedIdentities",
"id": "/subscriptions/subid/resourcegroups/rgName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName",
"location": "eastus",
"properties": {
"clientId": "4024ab25-56a8-4370-aea6-6389221caf29",
"isolationScope": "Regional",
"principalId": "25cc773c-7f05-40fc-a104-32d2300754ad",
"tenantId": "b6c948ef-f6b5-4384-8354-da3a15eca969"
},
"tags": {
"key1": "value1",
"key2": "value2"
}
}
]
}
定义
| 名称 | 说明 |
|---|---|
|
Cloud |
ManagedServiceIdentity 服务的错误响应。 |
|
Cloud |
ManagedServiceIdentity 服务的错误响应。 |
|
created |
创建资源的标识的类型。 |
| Identity |
描述标识资源。 |
|
Isolation |
根据需要配置标识分配的区域限制的枚举。 |
|
system |
与创建和上次修改资源相关的元数据。 |
|
User |
列表操作返回的值。 |
CloudError
ManagedServiceIdentity 服务的错误响应。
| 名称 | 类型 | 说明 |
|---|---|---|
| error |
有关错误的其他详细信息的列表。 |
CloudErrorBody
ManagedServiceIdentity 服务的错误响应。
| 名称 | 类型 | 说明 |
|---|---|---|
| code |
string |
错误的标识符。 |
| details |
有关错误的其他详细信息的列表。 |
|
| message |
string |
描述错误的消息,旨在适合在用户界面中显示。 |
| target |
string |
特定错误的目标。 例如,错误属性的名称。 |
createdByType
创建资源的标识的类型。
| 值 | 说明 |
|---|---|
| User | |
| Application | |
| ManagedIdentity | |
| Key |
Identity
描述标识资源。
| 名称 | 类型 | 说明 |
|---|---|---|
| id |
string (arm-id) |
资源的完全限定资源 ID。 例如“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}” |
| location |
string |
资源所在的地理位置 |
| name |
string |
资源的名称 |
| properties.clientId |
string (uuid) |
与标识关联的应用的 ID。 这是 MSI 随机生成的 UUID。 |
| properties.isolationScope |
根据需要配置标识分配的区域限制的枚举。 |
|
| properties.principalId |
string (uuid) |
与创建的标识关联的服务主体对象的 ID。 |
| properties.tenantId |
string (uuid) |
标识所属的租户的 ID。 |
| systemData |
包含 createdBy 和 modifiedBy 信息的 Azure 资源管理器元数据。 |
|
| tags |
object |
资源标记。 |
| type |
string |
资源的类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts” |
IsolationScope
根据需要配置标识分配的区域限制的枚举。
| 值 | 说明 |
|---|---|
| None | |
| Regional |
systemData
与创建和上次修改资源相关的元数据。
| 名称 | 类型 | 说明 |
|---|---|---|
| createdAt |
string (date-time) |
资源创建时间戳(UTC)。 |
| createdBy |
string |
创建资源的标识。 |
| createdByType |
创建资源的标识的类型。 |
|
| lastModifiedAt |
string (date-time) |
上次修改的资源时间戳(UTC) |
| lastModifiedBy |
string |
上次修改资源的标识。 |
| lastModifiedByType |
上次修改资源的标识的类型。 |
UserAssignedIdentitiesListResult
列表操作返回的值。
| 名称 | 类型 | 说明 |
|---|---|---|
| nextLink |
string (uri) |
指向下一页项目的链接 |
| value |
Identity[] |
此页上的标识项 |