容器智能运维平台提供丰富的Kubernetes集群检查能力,包括集群升级检查、集群迁移检查、组件安装检查、组件升级检查、节点池检查等。您可以调用ListClusterChecks接口,根据集群ID查询集群检查的列表和检查相关信息,例如检查类型、状态、创建和完成时间等。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
cs:ListClusterChecks |
list |
*Cluster
|
无 | 无 |
请求语法
GET /clusters/{cluster_id}/checks HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| cluster_id |
string |
否 |
集群 ID。 |
ce0da5a1d627e4e9e9f96cae8ad07**** |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| type |
string |
否 |
检查类型。
|
ClusterUpgrade |
| target |
string |
否 |
筛选指定的检查对象。 |
ngw-bp19ay6nnvd4cexxxx |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| checks |
array<object> |
检查列表。 |
|
|
object |
单次检查信息。 |
||
| check_id |
string |
检查 ID。 |
1697100584236600453-ce0da5a1d627e4e9e9f96cae8ad07****-clustercheck-lboto |
| type |
string |
检查类型。 |
ClusterUpgrade |
| status |
string |
检查状态。 |
Succeeded |
| message |
string |
检查状态信息。 |
task succeed |
| created_at |
string |
创建时间。 |
2025-04-11T02:56:02.565982623Z |
| finished_at |
string |
完成时间。 |
2025-04-11T02:56:18.881054031Z |
示例
正常返回示例
JSON格式
{
"checks": [
{
"check_id": "1697100584236600453-ce0da5a1d627e4e9e9f96cae8ad07****-clustercheck-lboto",
"type": "ClusterUpgrade",
"status": "Succeeded",
"message": "task succeed",
"created_at": "2025-04-11T02:56:02.565982623Z",
"finished_at": "2025-04-11T02:56:18.881054031Z"
}
]
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。