共用方式為


Managed Clusters - List Cluster Admin Credentials

列出受控叢集的管理員認證。

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterAdminCredential?api-version=2024-05-01
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterAdminCredential?api-version=2024-05-01&server-fqdn={server-fqdn}

URI 參數

名稱 位於 必要 類型 Description
resourceGroupName
path True

string

資源群組的名稱。 名稱不區分大小寫。

resourceName
path True

string

受控叢集資源的名稱。

Regex 模式: ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$

subscriptionId
path True

string

uuid

目標訂用帳戶的標識碼。 此值必須是 UUID。

api-version
query True

string

要用於這項作業的 API 版本。

server-fqdn
query

string

要傳回認證的伺服器 fqdn 類型

回應

名稱 類型 Description
200 OK

CredentialResults

還行

Other Status Codes

CloudError

描述作業失敗原因的錯誤回應。

安全性

azure_auth

Azure Active Directory OAuth2 Flow

類型: oauth2
Flow: implicit
授權 URL: https://login.microsoftonline.com/common/oauth2/authorize

範圍

名稱 Description
user_impersonation 模擬您的用戶帳戶

範例

Get Managed Cluster

範例要求

POST https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/listClusterAdminCredential?api-version=2024-05-01

範例回覆

{
  "kubeconfigs": [
    {
      "name": "credentialName1",
      "value": "Y3JlZGVudGlhbFZhbHVlMQ=="
    }
  ]
}

定義

名稱 Description
CloudError

來自容器服務的錯誤回應。

CloudErrorBody

來自容器服務的錯誤回應。

CredentialResult

認證結果回應。

CredentialResults

清單認證結果回應。

CloudError

來自容器服務的錯誤回應。

名稱 類型 Description
error

CloudErrorBody

錯誤的詳細數據。

CloudErrorBody

來自容器服務的錯誤回應。

名稱 類型 Description
code

string

錯誤的識別碼。 程序代碼是不變的,而且是要以程序設計方式取用。

details

CloudErrorBody[]

錯誤的其他詳細數據清單。

message

string

描述錯誤的訊息,適用於在使用者介面中顯示。

target

string

特定錯誤的目標。 例如,錯誤中的屬性名稱。

CredentialResult

認證結果回應。

名稱 類型 Description
name

string

認證的名稱。

value

string

Base64 編碼的 Kubernetes 組態檔。

CredentialResults

清單認證結果回應。

名稱 類型 Description
kubeconfigs

CredentialResult[]

Base64 編碼的 Kubernetes 組態檔。