RestartServices

Contributors netapp-mwallis ntap-bmegan Download PDF of this page

You can use the RestartServices method to restart the services on a node.

Parameters

CAUTION:

This method causes temporary node services interruption.

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

Return values

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

Request example

Requests for this method are similar to the following example:

{
   "method": "RestartServices",
   "params": {
              "force" : true
              "action" : restart,
             }
}

Response example

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"
  }
}

New since version

9.6