Ovf Manager Create Import Spec
Validate the OVF descriptor against the hardware supported by the host system.
If the validation succeeds, return a result containing:
- An ImportSpec to use when importing the entity.
- A list of items to upload (for example disk backing files, ISO images etc.)
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 OvfManager/{moId}
.
The vSphere release schema. The current specification covers vSphere 9.0.0.0 APIs.
"CreateImportSpecRequestType Object"
The OVF descriptor of the entity.
The resource pool to import the entity to. May be a vApp.
Required privileges: VApp.Import
The datastore on which to create the inventory objects of the entity, for example "storage1". The privilege Datastore.AllocateSpace is required on the datastore.
Required privileges: Datastore.AllocateSpace
Additional parameters to the method, bundled in an instance of CreateImportSpecParams.
OK
"OvfCreateImportSpecResult Object"
The ImportSpec contains information about which VirtualMachines and VirtualApps are present in the entity and how they relate to each other.
The files that must be uploaded by the caller as part of importing the entity.
The files must be uploaded in order, because some of them may be delta files that patch already-uploaded files.
Non-fatal warnings from the processing.
The ImportSpec will be valid, but the user may choose to reject it based on these warnings.
Errors that happened during processing.
Something will be wrong with the ImportSpec, or it is not present.
TaskInProgress: if a required managed entity is busy.
VmConfigFault: if a configuration issue prevents the operation from succeeding. Typically, a more specific subclass is thrown.
ConcurrentAccess: if a concurrency issue prevents the operation from succeeding.
FileFault: if there is a generic file error
InvalidState: if the operation failed due to the current state of the system.
"VimFault Object"
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/OvfManager/{moId}/CreateImportSpec