ModifyDBInstanceClass
Use ModifyDBInstanceClass to modify the scaling configuration of a cluster.
Operation description
Before you call this API, make sure that you understand the billing method and pricing of ApsaraDB for ClickHouse.
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-gs5j3sua77******* |
| 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. This value must be greater than the minimum value. |
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 type. |
OSS |
| ComputingGroupId |
string |
No |
The compute group ID. |
cc-gs5j3sua77*******-clickhouse |
| AutoScaleConfig |
object |
No |
The autoscaling configuration for the compute group. |
|
| Status |
string |
No |
Specifies whether to enable or disable autoscaling. Valid values: |
enable |
| BurstNum |
integer |
No |
The number of burstable nodes for autoscaling. |
2 |
| VSwitchInfos |
array<object> |
No |
Information about the VSwitches. |
|
|
object |
No |
|
||
| ZoneId |
string |
No |
The zone ID. |
cn-beijing-XXX |
| VSwitchIds |
array |
No |
The VSwitch IDs. |
|
|
string |
No |
A VSwitch ID. |
vsw-XXXXX |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| RequestId |
string |
The request ID. |
xxx-xxx-xxx |
| Data |
object |
The response 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-gs5j3sua77******* |
| DBInstanceName |
string |
The cluster name. |
cc-gs5j3sua77******* |
| ComputingGroupId |
string |
The compute group ID. |
cc-gs5j3sua77*******-clickhouse |
Examples
Success response
JSON format
{
"RequestId": "xxx-xxx-xxx",
"Data": {
"TaskId": 0,
"ScaleMin": 2,
"ScaleMax": 32,
"DBInstanceID": 0,
"DBInstanceName": "cc-gs5j3sua77*******",
"ComputingGroupId": "cc-gs5j3sua77*******-clickhouse"
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidSpecification | Specification parameter is not valid. | The specification parameter is invalid. |
| 400 | InvalidDBInstanceStatus | The specified instance state does't support this operation. | The instance state does not allow the current operation. |
| 400 | OperationDenied.OrderProcessing | The operation is not permitted due to there is an order in processing of cluster. | There is an outstanding order, please try again later. |
| 400 | OperationDenied.NothingChanged | The instance operation changes the specification, but the incoming specification is the same as the current specification without any changes. | The instance operation changes the specification, but the incoming specification is the same as the current specification without any changes. |
| 400 | ForbiddenRegisterAutoScaleConfig | Can't register autoScale config | |
| 400 | InvalidAutoScaleConfig | The autoScale config is invalid, param error | |
| 400 | UnsupportedAutoScaleZone | ZoneId is null or the specified zone is not supported for autoScale |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.