Queries the automated maintenance schedules of a cluster.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cs:ListOperationPlans |
list |
*All Resource
|
None | None |
Request syntax
GET /operation/plans HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| cluster_id |
string |
No |
The cluster ID. |
c29ced64b3dfe4f33b57ca0aa9f68**** |
| type |
string |
No |
The operation plan type. |
cluster_upgrade |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| plans |
array<object> |
The list of auto O&M execution plans. |
|
|
object |
An execution plan. |
||
| plan_id |
string |
The operation plan ID. |
P-655c9c127e0e6603ef00**** |
| cluster_id |
string |
The cluster ID. |
c29ced64b3dfe4f33b57ca0aa9f68**** |
| created |
string |
The time when the operation plan was created. |
2023-11-21T20:01:22+08:00 |
| start_time |
string |
The expected start time of the plan. |
2023-11-22T15:18:00+08:00 |
| end_time |
string |
The expected end time of the plan. |
2023-11-22T18:00:00+08:00 |
| state |
string |
The plan status. Valid values:
|
scheduled |
| type |
string |
The plan type. Valid values:
|
cluster_upgrade |
| target_type |
string |
The target type. |
cluster |
| target_id |
string |
The target ID. |
c29ced64b3dfe4f33b57ca0aa9f68**** |
| task_id |
string |
The ID of the task generated by the execution plan. |
T-6764d027be846d01310006b1 |
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",
"type": "cluster_upgrade",
"target_type": "cluster",
"target_id": "c29ced64b3dfe4f33b57ca0aa9f68****",
"task_id": "T-6764d027be846d01310006b1"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.