You can call GetUpgradeStatus to query the upgrade status of a cluster.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request headers

This operation uses the common request header only. For more information, see Common parameters.

Request syntax

GET /api/v2/clusters/[ClusterId]/upgrade/status HTTPS|HTTP

Request parameters

Parameter Type Required Example Description
ClusterId String Yes c106f377e16f34eb1808d6b9362c9****

The ID of the cluster.

Response parameters

Parameter Type Example Description
error_message String ""

The error message that is returned during the upgrade.

precheck_report_id String ""

The ID of the precheck report.

status String ""

The upgrade status of the cluster.

upgrade_step String not_start

The current phase of the upgrade.

Examples

Sample requests

GET /api/v2/clusters/[ClusterId]/upgrade/status HTTP/1.1
Common request header
{
"ClusterId": "c106f377e16f34eb1808d6b9362c9****"
}

Sample success responses

XML format

<error_message>""</error_message>
<precheck_report_id>""</precheck_report_id>
<status>""</status>
<upgrade_step>not_start</upgrade_step>

JSON format

{"error_message":"\"\"","precheck_report_id":"\"\"","status":"\"\"","upgrade_step":"not_start"}

Error codes

For a list of error codes, visit the API Error Center.