Trusted Access Role Bindings - Get
获取受信任的访问角色绑定。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/trustedAccessRoleBindings/{trustedAccessRoleBindingName}?api-version=2025-04-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
resource
|
path | True |
string minLength: 1maxLength: 90 |
资源组的名称。 此名称不区分大小写。 |
resource
|
path | True |
string minLength: 1maxLength: 63 pattern: ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$ |
托管群集资源的名称。 |
subscription
|
path | True |
string (uuid) |
目标订阅的 ID。 该值必须是 UUID。 |
trusted
|
path | True |
string minLength: 1maxLength: 24 pattern: ^([A-Za-z0-9-])+$ |
受信任的访问角色绑定的名称。 |
api-version
|
query | True |
string minLength: 1 |
要用于此操作的 API 版本。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
好的 |
|
Other Status Codes |
错误详细信息 |
安全性
azure_auth
Azure Active Directory OAuth2 流
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户 |
示例
Get a trusted access role binding
示例请求
GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/trustedAccessRoleBindings/binding1?api-version=2025-04-01
示例响应
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/trustedAccessRoleBindings/binding1",
"type": "Microsoft.ContainerService/managedClusters/trustedAccessRoleBindings",
"name": "binding1",
"properties": {
"sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/b/providers/Microsoft.MachineLearningServices/workspaces/c",
"roles": [
"Microsoft.MachineLearningServices/workspaces/reader",
"Microsoft.MachineLearningServices/workspaces/writer"
]
}
}
定义
名称 | 说明 |
---|---|
Cloud |
容器服务的错误响应。 |
Cloud |
容器服务的错误响应。 |
created |
创建资源的标识的类型。 |
system |
与创建和上次修改资源相关的元数据。 |
Trusted |
定义资源与角色之间的绑定 |
Trusted |
受信任的访问角色绑定的当前预配状态。 |
CloudError
容器服务的错误响应。
名称 | 类型 | 说明 |
---|---|---|
error |
有关错误的详细信息。 |
CloudErrorBody
容器服务的错误响应。
名称 | 类型 | 说明 |
---|---|---|
code |
string |
错误的标识符。 代码是固定的,旨在以编程方式使用。 |
details |
有关错误的其他详细信息的列表。 |
|
message |
string |
描述错误的消息,旨在适合在用户界面中显示。 |
target |
string |
特定错误的目标。 例如,错误属性的名称。 |
createdByType
创建资源的标识的类型。
值 | 说明 |
---|---|
Application | |
Key | |
ManagedIdentity | |
User |
systemData
与创建和上次修改资源相关的元数据。
名称 | 类型 | 说明 |
---|---|---|
createdAt |
string (date-time) |
资源创建时间戳(UTC)。 |
createdBy |
string |
创建资源的标识。 |
createdByType |
创建资源的标识的类型。 |
|
lastModifiedAt |
string (date-time) |
上次修改的资源时间戳(UTC) |
lastModifiedBy |
string |
上次修改资源的标识。 |
lastModifiedByType |
上次修改资源的标识的类型。 |
TrustedAccessRoleBinding
定义资源与角色之间的绑定
名称 | 类型 | 说明 |
---|---|---|
id |
string (arm-id) |
资源的完全限定资源 ID。 例如“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}” |
name |
string |
资源的名称 |
properties.provisioningState |
受信任的访问角色绑定的当前预配状态。 |
|
properties.roles |
string[] |
要绑定的角色列表,每个项都是资源类型限定的角色名称。 例如:“Microsoft.MachineLearningServices/workspaces/reader”。 |
properties.sourceResourceId |
string (arm-id) |
为受信任的访问配置的源资源的 ARM 资源 ID。 |
systemData |
包含 createdBy 和 modifiedBy 信息的 Azure 资源管理器元数据。 |
|
type |
string |
资源类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts” |
TrustedAccessRoleBindingProvisioningState
受信任的访问角色绑定的当前预配状态。
值 | 说明 |
---|---|
Canceled | |
Deleting | |
Failed | |
Succeeded | |
Updating |