RestartDBInstance
Restarts a MongoDB instance.
Operation description
You can call this operation to restart an instance or a specific shard or mongos node in a sharded cluster instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:RestartDBInstance |
update |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBInstanceId |
string |
Yes |
The instance ID. Before you invoke this operation, the instance must be in the Running state. You can invoke the DescribeDBInstanceAttribute operation and check the DBInstanceStatus field in the response to confirm the current state of the instance. |
dds-bpxxxxxxxx |
| NodeId |
string |
No |
The ID of the shard or mongos node in the sharded cluster instance. Note
If the instance is a sharded cluster instance and this parameter is not specified, the entire sharded cluster instance is restarted. |
d-bpxxxxxxxx |
| SwitchMode |
string |
No |
The client token that is used to ensure the idempotence of the request and prevent duplicate submissions. You can use the client to generate the value, but you must ensure that it is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. Valid values:
|
qwertyui1234567 |
| NodeType |
string |
No |
Specifies whether to perform a dry run on the request. Valid values:
Valid values:
|
db |
| ParallelRestartMongos |
boolean |
No |
The time when the instance is restarted. Valid values:
|
0 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
149C517D-B586-47BE-A107-8673E0ED77C6 |
Examples
Success response
JSON format
{
"RequestId": "149C517D-B586-47BE-A107-8673E0ED77C6"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.