This API has a deprecated equivalent from v7.0U1.
Test NTP
Test the connection to a list of ntp servers.
Request
URLURL
https://{api_host}/api/appliance/ntp?action=test
Header Parameters
Header Parameters
string
vmware-api-session-id
Required
Required session ID, obtained by first calling Create Session API
Request Body
Request Body
NtpTestRequestBody of mimetype application/json
Optional
This is a request body class for an operation.
(The request body parameter is missing description)
{
"servers": [
"string"
]
}
array of
string
servers
Required
List of host names or IP addresses of NTP servers.
Response
Response
Response BodyResponse Body
200 OK returns
array
of
NtpTestRunStatus of type application/json
List of test run statuses.
{
"message": {
"args": [
"string"
],
"default_message": "string",
"id": "string"
},
"server": "string",
"status": "enum"
}
string
server
Required
Server name associated with the test run.
status
Required
Server status
Possible values are: SERVER_REACHABLE , SERVER_UNREACHABLE
cURL Command
curl -X POST -H "vmware-api-session-id: b00db39f948d13ea1e59b4d6fce56389" -H "Content-Type: application/json" -d '{"servers":["string"]}' https://{api_host}/api/appliance/ntp?action=test
Errors
Availability
Added in 7.0U2