Skip to content

ntp_server

Description

NTP Server

Read/write properties

ntpserver <String>

IP address or hostname of NTP server.. Maximum value = 255

Read only properties

Operations

Note: In request payload, Mandatory parameters are marked red and bold.

Add'

URL: http://<CBIP>/cb/nitro/v1/config/ntp_server

HTTP Method: POST

Request Payload: JSON

{"ntp_server":{
      "ntpserver":<String_value>}}

Response Payload: JSON

{ "ntp_server":{
      "ntpserver":<String_value>}}

Delete'

URL: http://<CBIP>/cb/nitro/v1/config/ntp_server/<ntpserver>

HTTP Method: DELETE

Response Payload: EMPTY

Get (All)'

URL: http://<CBIP>/cb/nitro/v1/config/ntp_server

HTTP Method: GET

Response Payload: JSON

{ "ntp_server":[{
      "ntpserver":<String_value>}, ...]}

Get'

URL: http://<CBIP>/cb/nitro/v1/config/ntp_server/<ntpserver>

HTTP Method: GET

Response Payload: JSON

{ "ntp_server":{
      "ntpserver":<String_value>}}