Virtual Machine Create Screenshot Task
Create a screen shot of a virtual machine.
Required privileges: VirtualMachine.Interact.CreateScreenshot
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.
TaskInProgress: if the virtual machine is busy.
FileFault: if there is a problem with creating or accessing one or more files needed for this operation.
InvalidPowerState: if the virtual machine is not powered on.
InvalidState: if the virtual machine is not ready to respond to such requests.
"VimFault Object"
curl -X POST -H 'Authorization: <value>' https://{api_host}/sdk/vim25/{release}/VirtualMachine/{moId}/CreateScreenshot_Task