Network time synchronization configuration API
Description
The VAPIX Network Time Synchronization Configuration API allows you to configure how the device uses network protocols to synchronize the system time. It manages NTP client settings and enables or disable NTP client configuration.
This API includes operations on sensitive data. You must use a secured channel for the communication transmissions.
Use cases
Manage NTP client settings
You can manage the NTP client settings using network-time-sync.v2.ntp.client entity. It returns the current NTP client configuration.
Get NTP client configuration
Time synchronization is essential for network security, for example when validating certificates or maintaining accurate logs.
Example:
{
"request": {
"operation": "GET",
"path": "network-time-sync.v1.ntp.client"
},
"response": {
"status": "success",
"data": {
"advertisedServers": ["192.168.0.1", "192.168.2.1", "1234::55", "1234::66"],
"enabled": true,
"maximumPoll": 10,
"minimumPoll": 6,
"serversSource": "DHCP",
"staticServers": ["192.168.0.1"],
"synced": false,
"timeOffset": 0,
"timeToNextSync": 0
}
}
}
Set NTP client configuration
To configure the NTP client, set network-time-sync.v2.ntp.client.
Disable NTP client configuration
To disable the NTP client, set network-time-sync.v2.ntp.client.enabled to false.
Enable NTP client configuration
To turn on the NTP client set the same property to true, this is the default value.
Example:
{
"request": {
"operation": "SET",
"path": "network-time-sync.v1.ntp.client",
"data": {
"enabled": true,
"maximumPoll": 10,
"minimumPoll": 6,
"serversSource": "DHCP",
"staticServers": ["192.168.0.1"]
}
},
"response": {
"status": "success"
}
}
Structure
Objects
network-time-sync.v1.ntp
This is the entity that contains properties for the NTP protocol.
network-time-sync.v1.ntp.client
This entity contains the client specific configuration settings for the NTP protocol, such as polling intervals, server sources, and synchronization status.