Modifies the instance class of a cluster.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
clickhouse:ModifyDBInstanceClass |
update |
*EnterpriseDBCluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-hangzhou |
| DBInstanceId |
string |
Yes |
The cluster ID. |
cc-xxxxxxx |
| ScaleMin |
integer |
No |
The minimum capacity for serverless autoscaling. |
8 |
| ScaleMax |
integer |
No |
The maximum capacity for serverless autoscaling. |
32 |
| NodeScaleMax |
integer |
No |
The maximum capacity per node for serverless autoscaling. Valid values: 4 to 32. The value must be greater than the value of NodeScaleMin. |
4 |
| NodeScaleMin |
integer |
No |
The minimum capacity per node for serverless autoscaling. Valid values: 4 to 32. |
32 |
| NodeCount |
integer |
No |
The number of nodes. Valid values: 2 to 16. |
2 |
| StorageQuota |
integer |
No |
The pre-purchased storage capacity, in GB. |
100 |
| StorageType |
string |
No |
The storage class. |
OSS |
| ComputingGroupId |
string |
No |
The compute group ID. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
xxx-xxx-xxx |
| Data |
object |
The returned data. |
|
| TaskId |
integer |
The task ID. |
10000**** |
| ScaleMin |
integer |
The minimum capacity for serverless autoscaling. |
2 |
| ScaleMax |
integer |
The maximum capacity for serverless autoscaling. |
32 |
| DBInstanceID |
integer |
The cluster ID. |
cc-xxxxxxx |
| DBInstanceName |
string |
The cluster name. |
cc-xxxxxxx |
| ComputingGroupId |
string |
Examples
Success response
JSON format
{
"RequestId": "xxx-xxx-xxx",
"Data": {
"TaskId": 0,
"ScaleMin": 2,
"ScaleMax": 32,
"DBInstanceID": 0,
"DBInstanceName": "cc-xxxxxxx\n",
"ComputingGroupId": ""
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidSpecification | Specification parameter is not valid. | The specification parameter is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.