Virtual Machine Snapshot Export Snapshot
Obtains an export lease on this snapshot.
The export lease contains a list of URLs for the virtual disks for this snapshot, as well as a ticket giving access to the URLs.
See HttpNfcLease for information on how to use the lease.
Required privileges: VApp.Export
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 VirtualMachineSnapshot/{moId}
.
The vSphere release schema. The current specification covers vSphere 8.0.2.0 APIs.
The export lease on this VirtualMachineSnapshot. The export task continues running until the lease is completed by the caller.
"MoRefHttpNfcLease Object"
TaskInProgress: if the virtual machine is busy.
InvalidState: if the operation cannot be performed because of the virtual machine's current state. For example, if the virtual machine configuration information is not available.
FileFault: if there is an error accessing the virtual machine files.
"VimFault Object"
curl -X POST -H 'Authorization: <value>' https://{api_host}/sdk/vim25/{release}/VirtualMachineSnapshot/{moId}/ExportSnapshot