您可以調用DescribeClusterLogs介面檢索叢集的日誌資料,以便在出現叢集問題時進行根因分析和溯源。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
cs:DescribeClusterLogs |
get |
*Cluster
|
無 | 無 |
請求文法
GET /clusters/{ClusterId}/logs HTTP/1.1
路徑參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| ClusterId |
string |
是 |
叢集 ID。 |
c106f377e16f34eb1808d6b9362c9**** |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
當前API無需請求參數
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
array |
日誌列表。 |
||
|
object |
日誌詳情。 |
||
| ID |
integer |
日誌 ID。 |
73117232145****** |
| cluster_id |
string |
叢集 ID。 |
c23421cfa74454bc8b37163fd19af*** |
| cluster_log |
string |
日誌內容。 |
start to update cluster status to CREATE_COMPLETE |
| created |
string |
日誌產生時間。 |
2025-04-10T17:54:26+08:00 |
| updated |
string |
日誌更新時間。 |
2025-04-10T17:54:26+08:00 |
樣本
正常返回樣本
JSON格式
[
{
"ID": 0,
"cluster_id": "c23421cfa74454bc8b37163fd19af***",
"cluster_log": "start to update cluster status to CREATE_COMPLETE",
"created": "2025-04-10T17:54:26+08:00",
"updated": "2025-04-10T17:54:26+08:00"
}
]
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。