REST API - set

appliance timesync: set

Set time synchronization mode. This operation was added in vSphere API 6.7.

Request:

HTTP request

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

Request Body Structure:

{
    "mode""DISABLED"
}

Request Body Parameters:

Name Type Description
bold = required
mode string Defines time synchronization modes. This enumeration was added in vSphere API 6.7. Value is one of:
DISABLED: Time synchronization is disabled. This constant was added in vSphere API 6.7.
NTP: NTP-based time synchronization. This constant was added in vSphere API 6.7.
HOST: VMware Tool-based time synchronization. This constant was added in vSphere API 6.7.Time synchronization mode.

Response:

HTTP Status Code: 200

None

Errors:

HTTP Status Code Type Description
500 error Generic error