You can use the RestartServices method to restart the services on a node.
This method has the following input parameters:
Name | Description | Type | Default value | Required |
---|---|---|---|---|
force | Set to true to restart services on a node. | boolean | None | Yes |
service | Service name to be restarted. | string | None | No |
action | Action to perform on the service (start, stop, restart). | string | None | No |
This method has the following return values:
Name | Description | Type |
---|---|---|
details | The output of the service restart procedure, including errors (if any). | JSON object |
duration | The time, in seconds, it took to restart services to the node. | string |
result | Results of the restart. | string |
Requests for this method are similar to the following example:
{ "method": "RestartServices", "params": { "force" : true "action" : restart, } }
This method returns a response similar to the following example:
{ "id": 1, "result": { "details": "solidfire stop/waiting\nsolidfire start/running, process 7284\n", "duration": "00:00:02.541594", "result": "Passed" } }