Update NTP Template (v2.0)
Update an existing NTP template.
Path Parameters
- tenant_id string required
ID of the tenant.
- ntp_id string required
The NTP configuration ID.
- application/json
Request Body
Details of the NTP template to be updated
- default_template boolean
The default NTP template.
- description
The description of the Network Time Protocol (NTP) configuration. Max characters = 256.
- id string
The ID of the NTP configuration template.
- name string required
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.
Array [host string requiredThe host IP address or domain name.
max_poll int32 requiredThe 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.
min_poll int32 requiredThe 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.
version int32 requiredThe version of the NTP configuration. NTP versions 2, 3 and 4 are supported.
]- tags string[]
A information field that can be added to identify the NTP configuration.
- 200
- 400
Successful Operation
- application/json
- Schema
- Example (from schema)
Schema
- default_template boolean
The default NTP template.
- description
The description of the Network Time Protocol (NTP) configuration. Max characters = 256.
- id string
The ID of the NTP configuration template.
- name string required
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.
Array [host string requiredThe host IP address or domain name.
max_poll int32 requiredThe 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.
min_poll int32 requiredThe 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.
version int32 requiredThe version of the NTP configuration. NTP versions 2, 3 and 4 are supported.
]- tags string[]
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
_error ErrorResponse[]
Array [code stringmessage string]
{
"_error": [
{
"code": "string",
"message": "string"
}
]
}
{
"value": {
"_error": [
{
"code": "INVALID_JSON_EXTRA_ATTRIBUTE"
},
{
"code": "INVALID_JSON_COMMON_ATTR_MISMATCH"
},
{
"code": "NTP_CONFIG_DUPLICATE_DEFAULT_TEMPLATE"
},
{
"code": "NTP_CONFIG_INVALID_SERVER_LIST"
}
]
}
}