Restarts an ApsaraDB for MongoDB instance.
Operation description
You can call this operation to restart an instance. You can also restart a 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. |
dds-bpxxxxxxxx |
| NodeId |
string |
No |
The ID of a shard or Mongos node in a sharded cluster instance. Note
If you do not specify this parameter for a sharded cluster instance, the entire instance is restarted. |
d-bpxxxxxxxx |
| SwitchMode |
string |
No |
The time to restart the instance. Valid values:
|
0 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
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.