Queries the details of a specific check task for a Kubernetes cluster. The intelligent O&M platform for containers provides comprehensive cluster check capabilities, including cluster upgrade, cluster migration, component installation, component upgrade, and node pool checks. You can call this operation to retrieve information such as the check status, specific check items, and the creation and completion time of the check task based on the cluster ID and check task ID.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cs:GetClusterCheck |
list |
*Cluster
|
None | None |
Request syntax
GET /clusters/{cluster_id}/checks/{check_id} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| cluster_id |
string |
Yes |
The cluster ID. |
ce0da5a1d627e4e9e9f96cae8ad07**** |
| check_id |
string |
Yes |
The check ID. You can call the RunClusterCheck operation to obtain the check ID. |
1697100584236600453-ce0da5a1d627e4e9e9f96cae8ad07****-clustercheck-lboto |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| check_id |
string |
The check ID. |
1697100584236600453-ce0da5a1d627e4e9e9f96cae8ad07****-clustercheck-lboto |
| type |
string |
The check type. |
ClusterUpgrade |
| status |
string |
The check status. |
Succeeded |
| message |
string |
The check status message. |
task succeed |
| created_at |
string |
The creation time in ISO 8601 format, including time zone information. |
2023-10-16T08:31:20.292030178Z |
| finished_at |
string |
The completion time. |
2023-10-16T08:35:20.292030178Z |
| check_items |
object |
The check items. |
|
|
array<object> |
The list of check items. |
||
|
object |
The detailed properties of the check items. |
{ "Group": "ClusterResource", "Level": { "normal": { "Message": "", "Targets": [ { "Target": "v1beta1.metrics.k8s.io", "Value": "All Available" } |
Examples
Success response
JSON format
{
"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
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.