NTP servers are not used anywhere except for display purposes. This entity is added to store the list of servers. NTP server addresses are specified when Create configurations with the NTP type.
POST /api/admin/v1/ntp-servers
ip ip, IP address of the NTP server
ip
string description, description of the NTP server
string
bool is_enabled, enable NTP server
bool
200 OK
OK
Successful response
{ "id": 1, "ip": "192.168.1.100", "description": "description", "is_enabled": 0, "created_at": "2022-05-26 12:03:31" }
401 Unauthorized
Unauthorized
Authorization token is not provided or is invalid. Obtaining a token
curl -k --request POST \ --url 'https://your-domain/api/admin/v1/ntp-servers' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --data '{ "ip": "ip", "description": "string", "is_enabled": true }'
$data = array ( 'ip' => 'ip', 'description' => 'string', 'is_enabled' => true, ); $context = stream_context_create([ 'ssl'=>['verify_peer' => false], 'http' => [ 'method' => 'POST', 'header' => "Content-Type: application/json\r Accept: application/json", 'content'=>json_encode($data) ] ]); $result = file_get_contents('https://your-domain/api/admin/v1/ntp-servers', false, $context);
Please note, these errors can depend on your browser setup.
If this problem persists, please contact our support.