Skip to main content
Skip table of contents

Creating an NTP server

Creating an NTP server

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

Method parameters

ip ip, IP address of the NTP server

string description, description of the NTP server

bool is_enabled, enable NTP server

200 OK

Successful response

    "id": 1,
    "ip": "",
    "description": "description",
    "is_enabled": 0,
    "created_at": "2022-05-26 12:03:31"

401 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",
$result = file_get_contents('https://your-domain/api/admin/v1/ntp-servers', false, $context);
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.