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.3.0 APIs.
{
"width": 0,
"height": 0
}
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.
{
"_typeName": "string",
"faultCause": "MethodFault Object",
"faultMessage": [
{
"_typeName": "string",
"key": "string",
"arg": [
{
"_typeName": "string",
"key": "string",
"value": {
"_typeName": "string"
}
}
],
"message": "string"
}
]
}