Query the list of the latest 100 automated O&M execution plans in a specified region. When features such as Auto Mode for Intelligent Cluster Management, automatic cluster upgrade, and node pool automated O&M are enabled, you can use this API to query O&M plans automatically generated by the System and their execution status, such as cluster upgrades or CVE fixes for node pools.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cs:ListOperationPlansForRegion |
none |
*All Resource
|
None | None |
Request syntax
GET /regions/{region_id}/operation/plans HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| region_id |
string |
Yes |
Region ID. |
cn-beijing |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| cluster_id |
string |
No |
Filter by cluster ID. |
c02b3e03be10643e8a644a843ffcb**** |
| type |
string |
No |
Filter by execution plan type. Valid values:
|
CLUSTER_UPGRADE_MASTER |
| state |
string |
No |
Filter by execution plan status. Valid values:
|
Scheduled |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| plans |
array<object> |
List of execution plans. |
|
|
array<object> |
Execution plan. |
||
| plan_id |
string |
Execution plan ID. |
P-655c9c127e0e6603ef00**** |
| cluster_id |
string |
Cluster ID. |
c29ced64b3dfe4f33b57ca0aa9f68**** |
| created |
string |
Creation Time of the execution plan. |
2023-11-21T20:01:22+08:00 |
| start_time |
string |
Expected start time. |
2023-11-22T15:18:00+08:00 |
| end_time |
string |
Expected End Time of execution. |
2023-11-22T18:00:00+08:00 |
| state |
string |
Status. Valid values:
|
Scheduled |
| state_reason |
object |
Status reason. |
|
| code |
string |
Code. |
CanceledByUser |
| message |
string |
Message. |
plan has been canceled by user |
| type |
string |
Type. Valid values:
|
CLUSTER_UPGRADE_MASTER |
| target_type |
string |
Type of the execution Target. Valid values:
|
cluster |
| target_id |
string |
ID of the execution Target. |
c29ced64b3dfe4f33b57ca0aa9f68**** |
| task_id |
string |
Job ID generated by the execution plan. |
T-681ac448b23ced010600**** |
Examples
Success response
JSON format
{
"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",
"state_reason": {
"code": "CanceledByUser",
"message": "plan has been canceled by user"
},
"type": "CLUSTER_UPGRADE_MASTER",
"target_type": "cluster",
"target_id": "c29ced64b3dfe4f33b57ca0aa9f68****",
"task_id": "T-681ac448b23ced010600****"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.