Create NTP Template (v2.0)
POST/v2.0/api/tenants/:tenant_id/templates/ntp
Create a new NTP template.
Request
Path Parameters
ID of the tenant.
- application/json
Body
Details of the NTP template to be created
- Array [
- ]
The default NTP template.
The description of the Network Time Protocol (NTP) configuration. Max characters = 256.
The ID of the NTP configuration template.
The name of the NTP configuration. Max characters = 128.
ntp_servers NTPServer[]required
The configured NTP servers. A minimum of 1 and a maximum of 10 NTP servers can be configured.
The host IP address or domain name.
The maximum polling interval. It specifies the polling intervals for NTP messages in seconds as a power of two.The values of Max Poll can be set between 4 and 17.
The minimum polling interval. It specifies the polling intervals for NTP messages in seconds as a power of two.The values of Min Poll can be set between 4 and 17.
The version of the NTP configuration. NTP versions 2, 3 and 4 are supported.
A information field that can be added to identify the NTP configuration.
Responses
- 200
- 400
Successful Operation
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
The default NTP template.
The description of the Network Time Protocol (NTP) configuration. Max characters = 256.
The ID of the NTP configuration template.
The name of the NTP configuration. Max characters = 128.
ntp_servers NTPServer[]required
The configured NTP servers. A minimum of 1 and a maximum of 10 NTP servers can be configured.
The host IP address or domain name.
The maximum polling interval. It specifies the polling intervals for NTP messages in seconds as a power of two.The values of Max Poll can be set between 4 and 17.
The minimum polling interval. It specifies the polling intervals for NTP messages in seconds as a power of two.The values of Min Poll can be set between 4 and 17.
The version of the NTP configuration. NTP versions 2, 3 and 4 are supported.
A information field that can be added to identify the NTP configuration.
{
"default_template": true,
"id": "string",
"name": "string",
"ntp_servers": [
{
"host": "string",
"max_poll": 0,
"min_poll": 0,
"version": 0
}
],
"tags": [
"string"
]
}
Bad Request
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
_error ErrorResponse[]
The error code.
The error message.
{
"_error": [
{
"code": "string",
"message": "string"
}
]
}
{
"value": {
"_error": [
{
"code": "INVALID_JSON_EXTRA_ATTRIBUTE"
},
{
"code": "NTP_CONFIG_DUPLICATE_DEFAULT_TEMPLATE"
},
{
"code": "NTP_CONFIG_INVALID_SERVER_LIST"
}
]
}
}