Note:
This is a legacy API which has been hidden and will no longer be updated. We recommend using the new TKE API 3.0 which is standardized and faster.
This API (ModifyClusterAsgScaleDown) is used to specify whether to scale down a cluster scaling group. Scale-down is specific to clusters, and applies to all scaling groups in the cluster once enabled.
Domain name for API request:
ccs.api.qcloud.com
The following request parameter list only provides API request parameters.
Parameter Name | Description | Required | Type |
---|---|---|---|
clusterId | Cluster ID. Enter the clusterId field returned by the API Query Cluster List | Yes | String |
scaleDownEnabled | Whether to enable scale-down. Enable if it is not 0 | Yes | Int |
Parameter Name | Description | Type |
---|---|---|
code | Common error code. 0: Successful; other values: Failed | Int |
codeDesc | Error code at business side. For a successful operation, "Success" is returned. In case of an error, a message describing the reason for the error is returned | String |
message | Module error message description depending on API | String |
https://domain/v2/index.php?Action=ModifyClusterAsgScaleDown
&clusterId=cls-xxxxxxxx
&scaleDownEnabled=1
&other common parameters
{
"code": 0,
"message": "",
"codeDesc": "Success",
"data": {
"requestId": 4411
}
}
Was this page helpful?