Virtual Machine Set Screen Resolution
Sets the console window's resolution as specified.
Required privileges: VirtualMachine.Interact.ConsoleInteract
The unique identifier for the managed object to which the method attaches; the serialized managed object reference for a request has the form moType/moId
, in this case VirtualMachine/{moId}
.
The vSphere release schema. The current specification covers vSphere 8.0.2.0 APIs.
"SetScreenResolutionRequestType Object"
The screen width that should be set.
The screen height that should be set.
No Content
NotSupported: if the Guest Operating system does not support setting the screen resolution.
InvalidPowerState: if the power state is not poweredOn.
InvalidState: if the virtual machine is not connected.
ToolsUnavailable: if VMware Tools is not running.
"VimFault Object"
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/VirtualMachine/{moId}/SetScreenResolution