Upgrades a Container Service for Kubernetes (ACK) cluster.
Debugging
Request syntax
POST /api/v2/clusters/ClusterId/upgrade HTTP/1.1
Content-Type:application/json
{
"component_name" : "String",
"next_version" : "String",
"version" : "String"
}
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
ClusterId | String | Yes | c82e6987e2961451182edacd74faf**** |
The ID of the ACK cluster that you want to upgrade. |
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
component_name | String | No | k8s |
The name of the component. Valid value: |
next_version | String | No | 1.16.9-aliyun.1 |
The Kubernetes version to which you want to upgrade. |
version | String | No | 1.14.8-aliyun.1 |
The current Kubernetes version of the ACK cluster. For more information, see Kubernetes versions. |
Response syntax
HTTP/1.1 200 OK
Response parameters
None
Examples
Sample requests
POST /api/v2/clusters/c82e6987e2961451182edacd74faf****/upgrade HTTP/1.1
Content-Type:application/json
{
"component_name" : "k8s",
"next_version" : "1.16.9-aliyun.1",
"version" : "1.14.8-aliyun.1"
}
Sample success responses
JSON
format
HTTP/1.1 200 OK
Error codes
For a list of error codes, visit the API Error Center.