Important
An access token must be generated to use this API.URL
POST https://{gatewayIp}:5480/api/v2/applicationservice
Note
Supported services are network, squid, postgresql, vprobe, and ntp.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
Header | Value |
---|---|
Authorization | Token {accessToken} |
Content-type | application/json |
Accept | application/json |
Parameters
The fields are mandatory.
Field | Data Type | Description |
---|---|---|
service | String | Name of the service. |
action | String | Action item: status, start, restart, or stop. |
Status code
200 OK
Sample request
{
"service": " squid",
"action": "start”, }
Sample response
{"Success":"Service Squid Proxy started successfully."}