appliance techpreview ntp: get
Get the NTP configuration status. If you run the 'timesync.get' command, you can retrieve the current time synchronization method (NTP- or VMware Tools-based). The 'ntp' command always returns the NTP server information, even when the time synchronization mode is not set to NTP. If the time synchronization mode is not NTP-based, the NTP server status is displayed as down.
Request:
HTTP request
GET https://{server}/rest/appliance/techpreview/ntp
No request parameters
Response:
HTTP Status Code: 200
Representations:
{
"value": {
"servers": [
"string",
"string"
],
"status": "Down"
}
}
"value": {
"servers": [
"string",
"string"
],
"status": "Down"
}
}
<?xml version="1.0" ?>
<ns0:Get-Result xmlns:ns0="http://vmware.com/appliance/techpreview/ntp" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<value>
<status>Down</status>
<servers-array>
<array-item>string</array-item>
<array-item>string</array-item>
</servers-array>
</value>
</ns0:Get-Result>
<ns0:Get-Result xmlns:ns0="http://vmware.com/appliance/techpreview/ntp" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<value>
<status>Down</status>
<servers-array>
<array-item>string</array-item>
<array-item>string</array-item>
</servers-array>
</value>
</ns0:Get-Result>
Response Type:
Name | Type | Description |
---|---|---|
bold = required | ||
value | NTP_config | NTP config. |
value.status | string | NTP daemon running status Defines NTP status Value is one of: Down: NTP daemon is not running. Unknown: Cannot retrieve NTP daemon status. Up: NTP daemon is running. |
value.servers | string[] | List of NTP servers. |
Errors:
HTTP Status Code | Type | Description |
---|---|---|
500 | error | Generic error |