Important
An access token must be generated to use this API.URL
POST https://{gatewayIp}:5480/api/v2/nginx
Sample URLs
https://192.168.xxx.xxx:5480/api/v2/nginx
Sample cURL
curl -k -X POST https://{GatewayIP}:5480/api/v2/nginx
-H 'Accept: application/json'
-H 'Authorization: Token <TOKEN>'
{
"action": "<restart/status>"
}
Header format
Header | Value |
---|---|
Authorization | Token {accessToken} |
Content-type | application/json |
Accept | application/json |
Parameters
The fields are mandatory.
Field | Data Type | Description |
---|---|---|
action | String | Action item: restart or status |
Status code
200 OK
Sample request
{
"action": "status”, }
Sample response
{"Success": "Service NGINX active (Running)"}