ModifyDBClusterShardNumber
Modifies the number of shards for an instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
adb:ModifyDBClusterShardNumber |
update |
*DBCluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. Note
You can call the DescribeRegions operation to query region IDs. |
cn-hangzhou |
| DBClusterId |
string |
Yes |
The ID of the AnalyticDB for MySQL Data Warehouse Edition cluster. Note
You can call the DescribeDBClusters operation to query the IDs of all AnalyticDB for MySQL Data Warehouse Edition clusters in the specified region. |
amv-bp1xxxxxxxx47 |
| NewShardNumber |
integer |
No |
The target number of shards. |
256 |
| SwitchTimeMode |
integer |
No |
The execution time of the modification. Valid values:
|
0 |
| SwitchTime |
string |
No |
The time when the system executes the operation for the target pending O&M event. Specify the time in the |
2021-07-09T22:00:00Z |
| DryRun |
boolean |
No |
Specifies whether to only precheck the request. Default value: false. Valid values:
|
false |
| IsRollback |
boolean |
No |
Specifies whether to roll back the operation. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
25B56BC7-4978-40B3-9E48-4B7067****** |
Examples
Success response
JSON format
{
"RequestId": "25B56BC7-4978-40B3-9E48-4B7067******"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | The specified DBClusterId parameter does not exist. Make sure that the DBClusterId value is valid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.