DeleteShardingNode
Deletes data shard nodes from 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:DeleteShardingNode |
delete |
*DBInstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
r-bp1zxszhcgatnx**** |
NodeId
deprecated
|
string |
No |
The ID of the data shard node to be deleted. To specify multiple shard node IDs at a time, separate the IDs with commas (,). Note
If both the NodeId and ShardCount parameters are specified, the NodeId parameter takes precedence. |
r-bp1zxszhcgatnx****-db-0,r-bp1zxszhcgatnx****-db-1 |
| ShardCount |
integer |
No |
The number of shards to be deleted. The system counts from the tail and deletes the specified number of shard nodes. Note
For example, if an instance has five shard nodes: db-0, db-1, db-2, db-3, and db-4, and you set this parameter to 2, the db-3 and db-4 nodes are deleted. |
1 |
| ForceTrans |
boolean |
No |
Specifies whether to enable forced transfer. Valid values:
|
false |
| EffectiveTime |
string |
No |
The time when the proxy deletion operation is performed if proxy nodes are deleted when you delete shards from a cluster instance in proxy mode. Valid values:
Note
You can call the ModifyInstanceMaintainTime operation to modify the maintenance window of the instance. Valid values:
|
Immediately |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
5D622714-AEDD-4609-9167-F5DDD3D1**** |
| OrderId |
string |
The order ID. You can use this order ID to obtain the detailed information about the order in the Orders section of the User Center. |
22179******0904 |
Examples
Success response
JSON format
{
"RequestId": "5D622714-AEDD-4609-9167-F5DDD3D1****",
"OrderId": "22179******0904"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.