REST API - set

appliance ntp: set

Set NTP servers. This method updates old NTP servers from configuration and sets the input NTP servers in the configuration. If NTP based time synchronization is used internally, the NTP daemon will be restarted to reload given NTP configuration. In case NTP based time synchronization is not used, this method only replaces servers in the NTP configuration. This operation was added in vSphere API 6.7.

Request:

HTTP request

PUT https://{server}/rest/appliance/ntp

Request Body Structure:

{
    "servers"[
        "string",
        "string"
    ]
}

Request Body Parameters:

Name Type Description
bold = required
servers string[] List of host names or ip addresses of ntp servers.

Response:

HTTP Status Code: 200

None

Errors:

HTTP Status Code Type Description
500 error Generic error