根據叢集編號查詢叢集資訊。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
yundun-sas:DescribeClusterBasicInfo |
get |
*All Resource
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| ClusterId |
string |
是 |
指定要查詢的叢集的 ID。 說明
您可以呼叫 DescribeGroupedContainerInstances 介面取得該參數。 |
c870ec78ecbcb41d2a35c679823ef**** |
| Type |
string |
是 |
配置類型。取值:
|
containerNetwork |
| TargetType |
string |
是 |
目標開關的配置的操作維度。取值:
|
Cluster |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
請求返回資料。 |
||
| RequestId |
string |
本次呼叫請求的 ID,是由阿里雲為該請求生成的唯一識別碼,可用於排查和定位問題。 |
24A20733-10A0-4AF6-BE6B-E3322413BB68 |
| ClusterInfo |
object |
叢集詳情資訊。 |
|
| InstanceCount |
integer |
當前叢集中存在的執行個體數量。 |
10 |
| ClusterType |
string |
叢集類型。取值:
|
kubernetes |
| State |
string |
是否可用。取值:
|
Available |
| CreateTime |
integer |
建立叢集時間戳記,單位為毫秒。 |
1662038134000 |
| ClusterName |
string |
叢集名稱。 |
testackpro |
| CurrentVersion |
string |
當前叢集的版本資訊。 |
1.22.10-aliyun.1 |
| TargetResult |
boolean |
叢集開關。
|
true |
| RegionId |
string |
叢集所在的地域的 ID。 |
cn-hangzhou |
| ClusterId |
string |
叢集 ID。 |
c870ec78ecbcb41d2a35c679823ef**** |
樣本
正常返回樣本
JSON格式
{
"RequestId": "24A20733-10A0-4AF6-BE6B-E3322413BB68",
"ClusterInfo": {
"InstanceCount": 10,
"ClusterType": "kubernetes",
"State": "Available",
"CreateTime": 1662038134000,
"ClusterName": "testackpro",
"CurrentVersion": "1.22.10-aliyun.1",
"TargetResult": true,
"RegionId": "cn-hangzhou",
"ClusterId": "c870ec78ecbcb41d2a35c679823ef****\n"
}
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。