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 |
dds-bpxxxxxxxx |
| NodeId |
string |
No |
Instance ID of the Mongos node, Shard node, or ConfigServer node in the sharded cluster instance. You can call the DescribeDBInstanceAttribute operation to query instance IDs of Mongos nodes, Shard nodes, or ConfigServer nodes. 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 execution time. Valid values:
Note
You can call the ModifyInstanceMaintainTime operation to modify the maintenance window of the instance. Valid values:
|
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.