Adds data shard nodes to a cluster instance. This operation is supported only for cloud-native instances in the cluster architecture.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
kvstore:AddShardingNode |
create |
*DBInstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
r-bp1zxszhcgatnx**** |
| ShardCount |
integer |
No |
The number of shards to add. Default value: 1. Note
The total number of shards in an instance must be at least 2. The maximum number of shards that can be added in a single operation is 64, and the maximum total number of shards for an instance is 256. Make sure that the number of shards does not exceed these limits. |
2 |
| AutoPay |
boolean |
No |
Specifies whether to enable automatic payment. Valid values:
Note
Default value: true. |
false |
| CouponNo |
string |
No |
The coupon code. |
youhuiquan_promotion_option_id_for_blank |
| BusinessInfo |
string |
No |
The additional parameter for business information. |
000000000 |
| SourceBiz |
string |
No |
The call source. This parameter is used only for internal maintenance and does not need to be specified. |
SDK |
| ForceTrans |
boolean |
No |
Specifies whether to force the Upgrade/Downgrade. Valid values:
|
false |
| VSwitchId |
string |
No |
The ID of a different vSwitch in the same VPC. The new data shards are created in the specified vSwitch. If you do not specify this parameter, the new data shards are created in the original vSwitch by default. |
vsw-bp1e7clcw529l773d**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
B79C1A90-495B-4E99-A2AA-A4DB13B8**** |
| OrderId |
integer |
The order ID. |
20741011111111 |
| NodeIds |
array |
The list of data shard node IDs. |
|
|
string |
The data shard node ID. |
r-8vb0i6z4npbxrf****-db-4 |
Examples
Success response
JSON format
{
"RequestId": "B79C1A90-495B-4E99-A2AA-A4DB13B8****",
"OrderId": 20741011111111,
"NodeIds": [
"r-8vb0i6z4npbxrf****-db-4"
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.