Update Tools
Released in v7.0.0Update the properties of VMware Tools.
Request
URLURL
https://{api_host}/rest/vcenter/vm/{vm}/tools
Parameters
Parameters
string
vm
Required
Identifier of the virtual machine.
The parameter must be an identifier for the resource type: VirtualMachine.
Header Parameters
Header Parameters
string
vmware-api-session-id
Required
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id Example
b00db39f948d13ea1e59b4d6fce56389
Request Body
Request Body
VmToolsUpdateRequestBody of type application/json (required){
"spec": {
"upgrade_policy": "enum"
}
}
cURL Command
curl -X PATCH -H "vmware-api-session-id: b00db39f948d13ea1e59b4d6fce56389" -H "Content-Type: application/json" -d '{"spec":{"upgrade_policy":"enum"}}' https://{api_host}/rest/vcenter/vm/{vm}/tools
Errors
400
com.vmware.vapi.std.errors.invalid_argument : if the Tools.UpdateSpec.upgrade-policy field contains a value that is not supported by the server.
500
com.vmware.vapi.std.errors.error : if the system reports an error while responding to the request.
default
'Default' means this response is used for all HTTP codes that are not covered individually for this operation.