View the Status of a Service
Previous Topic  Next Topic 

This action returns the current state of the given service--that is, whether the service is running or stopped.


URL: /fd/stateajax


Example URL: http://host:port/fd/stateajax?svcname=NAME


HTTP method: GET


Parameters: 

svcname - Replace this with the name of the service you wish to query.


Result:


JSON:

Stopped: "{'resultType':'success', 'state':'off'}"

Running: "{'resultType':'success', 'state':'on'}"