Restarts a single node of a MongoDB instance.
Operation description
Limitations:
-
The instance must be in the Running state.
-
The instance must be a standard replica set instance or a 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, also set the |
dds-bpxxxxxxxx |
| NodeId |
string |
No |
The ID of the Mongos, shard, or Configserver node in the sharded cluster instance. Call the DescribeDBInstanceAttribute operation to query the node ID. Note
This parameter is required if DBInstanceId is set to the ID of a sharded cluster instance. |
d-bp128a003436**** |
| RoleId |
string |
Yes |
The role ID of the node.
|
6025**** |
| SwitchMode |
string |
No |
The time to execute the task. Valid values:
Note
Call the ModifyInstanceMaintainTime operation to modify the maintenance window of the instance. |
1 |
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.