ModifyDBClusterShardNumber
Modifies the number of shards for a cluster.
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 API to query the most recent list of regions. |
cn-hangzhou |
| DBClusterId |
string |
Yes |
The ID of the AnalyticDB for MySQL cluster. Note
You can call the DescribeDBClusters API to query the IDs of all AnalyticDB for MySQL clusters in a specific region. |
amv-bp1xxxxxxxx47 |
| NewShardNumber |
integer |
No |
The new number of shards. |
256 |
| SwitchTimeMode |
integer |
No |
Specifies when to modify the number of shards. Valid values:
|
Immediate |
| SwitchTime |
string |
No |
The scheduled time to apply the modification. Specify the time in the |
2021-07-09T22:00:00Z |
| DryRun |
boolean |
No |
Specifies whether to perform a dry run. Valid values:
|
false |
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.