Important
An access token must be generated to use this API.URL
POST https://{gatewayIp}:5480/api/v2/ntpservice
Sample URLs
https://192.168.xxx.xxx:5480/api/v2/ntpservice
Sample cURL
curl -k -X POST https://{GatewayIP}:5480/api/v2/ntpservice
-H 'Accept: application/json'
-H 'Authorization: Token <TOKEN>'
{
"service": "<ON/OFF>"
}
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 | Use the ON and OFF switch to start or stop the NTP service. |
Status code
200 OK
Sample request
{
"service": "ON"
}
Sample response
{"Success":"Switched ON the NTP Service Successfully"}