RestartNode
Restarts a single node of an ApsaraDB for MongoDB instance.
Operation description
Limits:
The instance is in the running state.
The instance is a standard replica set or sharded cluster instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:RestartNode |
update |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBInstanceId |
string |
Yes |
The instance ID. Note
If the instance is a sharded cluster instance, you must also specify NodeId. |
dds-bpxxxxxxxx |
| NodeId |
string |
No |
Instance ID of the mongos, shard, or config server node in a sharded cluster instance. You can call the DescribeDBInstanceAttribute operation to query the node ID of the mongos, shard, or config server node. Note
This parameter is required when DBInstanceId is set to instance ID of a sharded cluster instance. |
d-bp128a003436**** |
| RoleId |
string |
Yes |
The role ID of the node.
|
6025**** |
| SwitchMode |
string |
No |
The client token that is used to ensure the idempotence of the request and prevent duplicate submissions. You can generate the value of this parameter on the client side. The value must be unique across different requests and can be up to 64 ASCII characters in length. The value cannot contain non-ASCII characters. Valid values:
|
qwertyui1234567 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
ECBCA991-XXXX-XXXX-834C-B3E8007F33AA |
Examples
Success response
JSON format
{
"RequestId": "ECBCA991-XXXX-XXXX-834C-B3E8007F33AA"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.