擷取自動營運執行計畫列表。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
cs:ListOperationPlans |
list |
*全部資源
|
無 | 無 |
請求文法
GET /operation/plans HTTP/1.1
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| cluster_id |
string |
否 |
叢集 ID。 |
c29ced64b3dfe4f33b57ca0aa9f68**** |
| type |
string |
否 |
執行計畫類型。 |
cluster_upgrade |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| plans |
array<object> |
執行計畫列表。 |
|
|
object |
執行計畫。 |
||
| plan_id |
string |
執行計畫 ID。 |
P-655c9c127e0e6603ef00**** |
| cluster_id |
string |
叢集 ID。 |
c29ced64b3dfe4f33b57ca0aa9f68**** |
| created |
string |
執行計畫建立時間。 |
2023-11-21T20:01:22+08:00 |
| start_time |
string |
預期開始執行時間。 |
2023-11-22T15:18:00+08:00 |
| end_time |
string |
預期結束執行時間。 |
2023-11-22T18:00:00+08:00 |
| state |
string |
狀態。取值:
|
scheduled |
| type |
string |
類型。取值:
|
cluster_upgrade |
| target_type |
string |
執行目標類型。 |
cluster |
| target_id |
string |
執行目標 ID。 |
c29ced64b3dfe4f33b57ca0aa9f68**** |
| task_id |
string |
執行計畫產生的任務 ID。 |
T-6764d027be846d01310006b1 |
樣本
正常返回樣本
JSON格式
{
"plans": [
{
"plan_id": "P-655c9c127e0e6603ef00****",
"cluster_id": "c29ced64b3dfe4f33b57ca0aa9f68****",
"created": "2023-11-21T20:01:22+08:00",
"start_time": "2023-11-22T15:18:00+08:00",
"end_time": "2023-11-22T18:00:00+08:00",
"state": "scheduled",
"type": "cluster_upgrade",
"target_type": "cluster",
"target_id": "c29ced64b3dfe4f33b57ca0aa9f68****",
"task_id": "T-6764d027be846d01310006b1"
}
]
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。