Deletes data shard nodes from a cluster instance. This operation is supported only for cloud-native instances in 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 IDs of the data shard nodes to delete. Separate multiple node 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 delete. The system counts from the end and deletes the specified number of shard nodes. Note
For example, if an instance has five shard nodes named 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 force transition. Valid values:
|
false |
| EffectiveTime |
string |
No |
The time when the proxy deletion takes effect if proxy nodes are deleted while deleting 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 order details 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.