All Products
Search
Document Center

Container Service for Kubernetes:ListOperationPlans

Last Updated:Apr 22, 2024

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

GET /operation/plans

Request parameters

ParameterTypeRequiredDescriptionExample
cluster_idstringNo

The cluster ID.

c29ced64b3dfe4f33b57ca0aa9f68****
typestringNo

The operation plan type.

cluster_upgrade

Response parameters

ParameterTypeDescriptionExample
object
plansobject []

The operation plans.

plan_idstring

The operation plan ID.

P-655c9c127e0e6603ef00****
cluster_idstring

The cluster ID.

c29ced64b3dfe4f33b57ca0aa9f68****
createdstring

The time when the operation plan was created.

2023-11-21T20:01:22+08:00
start_timestring

The expected start time of the plan.

2023-11-22T15:18:00+08:00
end_timestring

The expected end time of the plan.

2023-11-22T18:00:00+08:00
statestring

The plan status. Valid values:

  • scheduled
  • Canceled
scheduled
typestring

The plan type. Valid values:

  • cluster_upgrade
cluster_upgrade
target_typestring

The target type.

cluster
target_idstring

The target ID.

c29ced64b3dfe4f33b57ca0aa9f68****

Examples

Sample success responses

JSONformat

{
  "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****"
    }
  ]
}

Error codes

For a list of error codes, visit the Service error codes.