Status, start, and stop service

This endpoint is used to get the service status and to start and stop application services.

Leave Feedback

URL

POST https://{gatewayIp}:5480/api/v2/applicationservice

Sample URLs

https://192.168.xxx.xxx:5480/api/v2/applicationservice

Sample cURL

curl -k -X POST https://{GatewayIP}:5480/api/v2/applicationservice 
-H 'Accept: application/json' 
-H 'Authorization: Token <TOKEN>' 
{ 
    "service": "<network/squid/postgresql/vprobe/ntp>",
    "action": "<start/stop/status/restart>"
}

Header format

HeaderValue
AuthorizationToken {accessToken}
Content-typeapplication/json
Acceptapplication/json

Parameters

The fields are mandatory.

FieldData TypeDescription
serviceStringName of the service.
actionStringAction item: status, start, or stop.

Status code

200 OK

Sample request

{
    "service": " squid",
    "action": "start”, }

Sample response

{"Success":"Service Squid Proxy started successfully."}