Obtaining Details About a Pre-upgrade Check Task of a Cluster
Function
This API is used to obtain details about a pre-upgrade check task of a cluster. The task ID is obtained from the uid field in the response body after the cluster check API is called.
Calling Method
For details, see Calling APIs.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
- If you are using identity policy-based authorization, no identity policy-based permission required for calling this API.
URI
GET /api/v3/projects/{project_id}/clusters/{cluster_id}/operation/precheck/tasks/{task_id}
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Details: Project ID. For details about how to obtain the value, see How to Obtain Parameters in the API URI. Constraints: None Options: Project IDs of the account Default value: N/A |
| cluster_id | Yes | String | Details: Cluster ID. For details about how to obtain the value, see How to Obtain Parameters in the API URI. Constraints: None Options: Cluster IDs Default value: N/A |
| task_id | Yes | String | Details: Upgrade task ID, obtained from the uid field in the response body after the cluster upgrade API is called. Constraints: None Options: Upgrade task IDs Default value: N/A |
Request Parameters
None
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| apiVersion | String | Definition: API version, which defaults to v3 Range: |
| kind | String | Definition: Resource type, which defaults to PreCheckTask Range: |
| metadata | PrecheckTaskMetadata object | Definition: Metadata of a pre-upgrade check task Range: N/A |
| spec | PrecheckCluserResponseSpec object | Definition: Information of a pre-upgrade check task Range: N/A |
| status | PrecheckStatus object | Definition: Status of a pre-upgrade check task Range: N/A |
| Parameter | Type | Description |
|---|---|---|
| uid | String | Definition: Task ID Range: N/A |
| creationTimestamp | String | Definition: Task creation time Range: N/A |
| updateTimestamp | String | Definition: Task update time Range: N/A |
| Parameter | Type | Description |
|---|---|---|
| clusterID | String | Definition: Cluster ID Range: N/A |
| clusterVersion | String | Definition: Current cluster version Range: N/A |
| targetVersion | String | Definition: Target version Range: N/A |
| skippedCheckItemList | Array of skippedCheckItemListResponse objects | Definition: List of skipped check items Range: N/A |
| Parameter | Type | Description |
|---|---|---|
| name | String | Definition: Name of a skipped check item Range: N/A |
| resourceSelector | resourceSelectorResponse object | Definition: Resource tag selector. This parameter is available only for node checks, but not for cluster or add-on checks. Range: N/A |
| Parameter | Type | Description |
|---|---|---|
| key | String | Definition: Tag key Range: |
| values | Array of strings | Definition: Tag value list Range: N/A |
| operator | String | Definition: Logical operator of tags Range: |
| Parameter | Type | Description |
|---|---|---|
| phase | String | Definition: Status Range: |
| expireTimeStamp | String | Definition: Check result expiration time Range: N/A |
| message | String | Definition: Information, which typically indicates the log for execution errors Range: N/A |
| clusterCheckStatus | clusterCheckStatus object | Definition: Status of a cluster restrictions check Range: N/A |
| addonCheckStatus | addonCheckStatus object | Definition: Status of an add-on check Range: N/A |
| nodeCheckStatus | nodeCheckStatus object | Definition: Node check status Range: N/A |
| Parameter | Type | Description |
|---|---|---|
| phase | String | Definition: Status Range: |
| itemsStatus | Array of PreCheckItemStatus objects | Definition: Check item status set Range: N/A |
| Parameter | Type | Description |
|---|---|---|
| phase | String | Definition: Status Range: |
| itemsStatus | Array of PreCheckItemStatus objects | Definition: Check item status set Range: N/A |
| Parameter | Type | Description |
|---|---|---|
| phase | String | Definition: Status Range: |
| nodeStageStatus | Array of NodeStageStatus objects | Definition: Node check status Range: N/A |
| Parameter | Type | Description |
|---|---|---|
| nodeInfo | NodeInfo object | Definition: Node information Range: N/A |
| itemsStatus | Array of PreCheckItemStatus objects | Definition: Check item status set Range: N/A |
| Parameter | Type | Description |
|---|---|---|
| uid | String | Definition: Node UID Range: N/A |
| name | String | Definition: Node name Range: N/A |
| status | String | Definition Node status Range Node resource lifecycle management (such as installation and uninstallation) status and Kubernetes node status in a cluster. The options include: |
| nodeType | String | Definition Node type Range |
| Parameter | Type | Description |
|---|---|---|
| name | String | Definition: Check item name Range: N/A |
| kind | String | Definition: Check item type Range: |
| group | String | Definition: Check item group Range: |
| level | String | Definition: Check item risk level Range: |
| phase | String | Definition: Status Range: |
| message | String | Definition: More information icon Range: N/A |
| riskSource | riskSource object | Definition: Risk source Range: N/A |
| errorCodes | Array of strings | Definition: Error code set Range: N/A |
| Parameter | Type | Description |
|---|---|---|
| configurationRisks | Array of configurationRisks objects | Definition: Configuration risk Range: N/A |
| deprecatedAPIRisks | Array of deprecatedAPIRisks objects | Definition: Deprecated API risk Range: N/A |
| nodeRisks | Array of nodeRisks objects | Definition: Node risk Range: N/A |
| addonRisks | Array of addonRisks objects | Definition: Add-on risk Range: N/A |
| Parameter | Type | Description |
|---|---|---|
| package | String | Definition: Component name Range: N/A |
| sourceFile | String | Definition: Involved file path Range: N/A |
| nodeMsg | String | Definition: Node information Range: N/A |
| field | String | Definition: Parameter value. Range: N/A |
| operation | String | Definition: Modification operation type Range: N/A |
| originalValue | String | Definition: Original value Range: N/A |
| value | String | Definition: Current value Range: N/A |
Example Requests
None
Example Responses
Status code: 200
The details about a pre-upgrade check task of a cluster are obtained.
{
"kind" : "PreCheckTask",
"apiVersion" : "v3",
"metadata" : {
"uid" : "f61e008c-1600-41c0-9bde-121de5a30660",
"creationTimestamp" : "2023-11-25 07:20:04.592972 +0000 UTC",
"updateTimestamp" : "2023-11-25 07:21:05.518966 +0000 UTC"
},
"spec" : {
"clusterVersion" : "v1.19.16-r4",
"targetVersion" : "v1.23.5-r0"
},
"status" : {
"phase" : "Success",
"expireTimeStamp" : "2023-11-25 08:21:05.518966 +0000 UTC",
"clusterCheckStatus" : {
"phase" : "Success",
"itemsStatus" : [ {
"name" : "DeprecatedApiCheck",
"kind" : "Risk",
"group" : "LimitCheck",
"level" : "Info",
"phase" : "Success",
"message" : "check item succeed",
"riskSource" : { }
}, {
"name" : "NodeContainerdPodRestartRisk",
"kind" : "Risk",
"group" : "LimitCheck",
"level" : "Warning",
"phase" : "Success",
"message" : "check item succeed",
"riskSource" : { }
}, {
"name" : "ResiduePackageVersion",
"kind" : "Exception",
"group" : "LimitCheck",
"level" : "Fatal",
"phase" : "Success",
"message" : "check item succeed",
"riskSource" : { }
} ]
},
"addonCheckStatus" : {
"phase" : "Success",
"itemsStatus" : [ {
"name" : "AddonLimit",
"kind" : "Exception",
"group" : "AddonCheck",
"level" : "Warning",
"phase" : "Success",
"message" : "check item succeed",
"riskSource" : { }
}, {
"name" : "CoreDNSConfLimit",
"kind" : "Exception",
"group" : "AddonCheck",
"level" : "Fatal",
"phase" : "Success",
"message" : "check item succeed",
"riskSource" : { }
} ]
},
"nodeCheckStatus" : {
"phase" : "Success"
}
}
} Status Codes
| Status Code | Description |
|---|---|
| 200 | The details about a pre-upgrade check task of a cluster are obtained. |
Error Codes
See Error Codes.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot