容器智能运维平台提供丰富的Kubernetes集群检查能力,包括集群升级检查、集群迁移检查、组件安装检查、组件升级检查、节点池检查等。您可以调用GetClusterCheck接口,根据集群ID和检查任务ID查看指定检查任务的相关信息,例如检查状态、具体检查项、检查创建和完成时间等。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
cs:GetClusterCheck |
list |
*Cluster
|
无 | 无 |
请求语法
GET /clusters/{cluster_id}/checks/{check_id} HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| cluster_id |
string |
是 |
集群 ID。 |
ce0da5a1d627e4e9e9f96cae8ad07**** |
| check_id |
string |
是 |
检查 ID。 您可以调用 RunClusterCheck 获取该 check_id。 |
1697100584236600453-ce0da5a1d627e4e9e9f96cae8ad07****-clustercheck-lboto |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
当前API无需请求参数
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| check_id |
string |
检查 ID。 |
1697100584236600453-ce0da5a1d627e4e9e9f96cae8ad07****-clustercheck-lboto |
| type |
string |
检查类型。 |
ClusterUpgrade |
| status |
string |
检查状态。 |
Succeeded |
| message |
string |
检查状态信息。 |
task succeed |
| created_at |
string |
创建时间。 |
2023-10-16T08:31:20.292030178Z |
| finished_at |
string |
完成时间。 |
2023-10-16T08:35:20.292030178Z |
| check_items |
object |
检查项。 |
|
|
array<object> |
检查项信息列表。 |
||
|
object |
检查项具体属性。 |
{ "Group": "ClusterResource", "Level": { "normal": { "Message": "", "Targets": [ { "Target": "v1beta1.metrics.k8s.io", "Value": "All Available" } |
示例
正常返回示例
JSON格式
{
"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",
"check_items": {
"key": [
{
"test": "test",
"test2": 1
}
]
}
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。