All Products
Search
Document Center

Container Service for Kubernetes:ListClusterChecks

Last Updated:Apr 22, 2024

You can call the ListClusterChecks operation to query all the cluster check results of a cluster.

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 /clusters/[cluster_id]/checks

Request parameters

ParameterTypeRequiredDescriptionExample
cluster_idstringNo

The cluster ID.

ce0da5a1d627e4e9e9f96cae8ad07****
typestringNo

The check method.

ClusterUpgrade
targetstringNo

The targets to check.

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

checksobject []

The list of check items.

check_idstring

The ID of the cluster check task.

1697100584236600453-ce0da5a1d627e4e9e9f96cae8ad07****-clustercheck-lboto
typestring

The check method.

ClusterUpgrade
statusstring

The status of the cluster check.

Succeeded
messagestring

The message that indicates the status of the cluster check task.

task succeed
created_atstring

The time when the cluster check task was created.

2023-10-16T08:31:20.292030178Z
finished_atstring

The time when the cluster check task was completed.

2023-10-16T08:35:20.292030178Z

Examples

Sample success responses

JSONformat

{
  "checks": [
    {
      "check_id": "1697100584236600453-ce0da5a1d627e4e9e9f96cae8ad07****-clustercheck-lboto",
      "type": "ClusterUpgrade",
      "status": "Succeeded",
      "message": "task succeed",
      "created_at": "2023-10-16T08:31:20.292030178Z",
      "finished_at": "2023-10-16T08:35:20.292030178Z"
    }
  ]
}

Error codes

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

Change history

Change timeSummary of changesOperation
2024-03-14The request parameters of the API has changedsee changesets
Change itemChange content
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: target
2023-11-21The internal configuration of the API is changed, but the call is not affectedsee changesets
Change itemChange content
The internal configuration of the API is changed, but the call is not affected.