PUT Vsphere Vc Hostname Hosts Esxi Host
Update ESXi host configuration with the specified hostname in the specified vCenter Server.
Hostname of ESXi host
vCenter Server hostname
Show optional properties
{
"configure": false
}
{
"configure": true,
"syslogProtocol": "TCP"
}
Indicates whether to configure the ESXi host or remove configuration.
Syslog protocol used for configuring ESXi hosts. Default protocol is UDP.
Response Headers
Additional information about the life-cycle status of the API.
Indicates the life-cycle status of the API.
The request failed because the request body either did not contain valid JSON, or did not match the required JSON format.
{
"errorMessage": "Invalid request body.",
"errorCode": "JSON_FORMAT_ERROR",
"errorDetails": {
"reason": "..."
}
}
A message describing the error.
A code representing the type of error.
Dynamic error details, where the field name can vary depending on the request field and error code.
Specified ESXi host is not available under specified vSphere instance.
Configuration with specified vCenter Server hostname does not exist.
Internal error while processing the client request
{
"errorMessage": "The operation failed due to an internal error."
}
A message describing the error.
A code representing the type of error.
Dynamic error details, where the field name can vary depending on the request field and error code.
curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"configure:"boolean"}' https://{api_host}/api/v2/vsphere/{vcHostname}/hosts/{esxiHost}