NTP сервера нигде, кроме как для отображения, не используются, эта сущность добавлена, чтобы хранить список серверов. Адреса NTP серверов указываются при Создание конфигураций с типом NTP
POST /api/admin/v1/ntp-servers
ip ip, IP-адрес NTP сервера
ip
string description, описание NTP сервера
string
bool is_enabled, включить NTP сервер
bool
200 OK
OK
Успешный ответ
{ "id": 1, "ip": "192.168.1.100", "description": "description", "is_enabled": 0, "created_at": "2022-05-26 12:03:31" }
401 Unauthorized
Unauthorized
Токен авторизации не передан или не валидный Получение токена
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.