Virtual Machine Provisioning Checker Check Instant Clone Task
Tests the feasibility of a proposed InstantClone_Task operation.
Required privileges: System.View
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 VirtualMachineProvisioningChecker/{moId}
.
The vSphere release schema. The current specification covers vSphere 9.0.0.0 APIs.
"CheckInstantCloneRequestType Object"
The virtual machine we propose to instant clone.
Specifies how to instant clone the virtual machine.
The set of tests to run. If this argument is not set, all tests will be run. See CheckTestTypeEnum for possible values.
InvalidArgument: in the following cases:
- The destination host does not support Instant Clone.
- The source and destination host are not the same.
- The relocate spec in the Instant Clone spec has Datastore set.
- The relocate spec in the Instant Clone spec has host set.
- The Instant clone spec does not have name set.
- The source VM is a template.
- The source VM is not powered on.
- The source VM has PMEM devices/disks configured.
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.
"InvalidState Object"
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/VirtualMachineProvisioningChecker/{moId}/CheckInstantClone_Task