You can use the Shutdown method to restart or shutdown the nodes in a cluster. You can shut down a single node, multiple nodes, or all of the nodes in the cluster using this method.
This method has the following input parameters:
Name | Description | Type | Default value | Required |
---|---|---|---|---|
nodes | List of NodeIDs for the nodes to be restarted or shut down. | integer array | None | Yes |
option | Action to take for the cluster. Possible values:
|
string | restart | No |
This method has no return value.
Requests for this method are similar to the following example:
{ "method": "Shutdown", "params": { "nodes": [ 2, 3, 4 ], "option": "halt" }, "id": 1 }
This method returns a response similar to the following example:
{ "id" : 1, "result" : { "failed": [], "successful": [ 6 [ } }
9.6