You can call the GetUpgradeStatus operation to query the update status of a cluster.
Debugging
Request syntax
GET /api/v2/clusters/ClusterId/upgrade/status HTTP/1.1
Content-Type:application/json
Request parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| ClusterId | String | Yes | c106f377e16f34eb1808d6b9362c9**** | The ID of the cluster that you want to manage. |
Response syntax
HTTP/1.1 200
Content-Type:application/json
{
"error_message" : "String",
"precheck_report_id" : "String",
"status" : "String",
"upgrade_step" : "String",
"upgrade_task" : {
"status" : "String",
"message" : "String"
}
}
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| error_message | String | subject to actual return | The error message returned during the update. |
| precheck_report_id | String | be4c8eb72de94d459ea7ace7c811d119 | The ID of the precheck report. |
| status | String | running | The status of the update. Valid values:
|
| upgrade_step | String | prechecking | The current phase of the update. Valid values:
|
| upgrade_task | Object | The details of the update task. |
|
| status | String | running | The status of the update task. Valid values:
|
| message | String | subject to actual return | The description of the update task. |
Examples
Sample requests
GET /api/v2/clusters/c106f377e16f34eb1808d6b9362c9****/upgrade/status HTTP/1.1
Host:cs.aliyuncs.com
Content-Type:application/json
Sample success responses
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<GetUpgradeStatusResponse>
<error_message>subject to actual return</error_message>
<precheck_report_id>be4c8eb72de94d459ea7ace7c811d119</precheck_report_id>
<status>running</status>
<upgrade_step>prechecking</upgrade_step>
<upgrade_task>
<status>running</status>
<message>subject to actual return</message>
</upgrade_task>
</GetUpgradeStatusResponse>
JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"error_message" : "subject to actual return",
"precheck_report_id" : "be4c8eb72de94d459ea7ace7c811d119",
"status" : "running",
"upgrade_step" : "prechecking",
"upgrade_task" : {
"status" : "running",
"message" : "subject to actual return"
}
}
Error codes
For a list of error codes, see Service error codes.