This API supports both replica set instances and sharded cluster instances.
Input parameters
Name
Type
Required or not
Description
Action
String
Yes
Required parameter; value: RestartDBInstance.
DBInstanceId
String
Yes
Instance ID. The logic ID of a Sharding instance can be input.
NodeId
String
No
Sharding sub-instance ID. Set this parameter to mongos or shard node ID. In this case, only the input node is restarted, instead of the entire instance.If the parameter is left blank, the entire cluster is restarted.