Modify NTP settings
Modifies the settings for the NTP servers and NTP mode. This can be used to enable or disable using the NTP servers to set the date/time of the library or to modify the addresses of the primary and/or secondary NTP servers. A test of the NTP servers should be performed separately to ensure they are accessible by the library.
Request syntax
PATCH /v1/library
{"ntpMode": <"enabled|"disabled">, "primaryNtpAddress": <address>, "secondaryNtpAddress":
<address>}
Modifies the settings for the NTP servers and NTP
mode.
Request body parameters
ntpMode
(string, optional)-
This is
enabled
if the NTP servers are being used to set the date/time ordisabled
if the date/time is set manually. primaryNtpAddress
(string, optional)-
This unique host name or IP address of the primary NTP server. Null can be given if
ntpmode
isdisabled
. secondaryNtpAddress
(string, optional)-
This unique host name or IP address of the secondary NTP server. Null can be given if
ntpmode
isdisabled
or only theprimaryNtpAddress
is being used.
Examples
> PATCH /v1/library {"ntpMode": "disabled"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 0
> PATCH /v1/library {"ntpMode": "enabled", "primaryNtpAddress": "129.6.15.28", "secondaryNtpAddress": "129.6.15.29"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 0