In Red Hat Virtualization 4.1, it is now possible to perform a 'partial' import of a virtual machine via the REST API, whereby a virtual machine can be imported even if its disks are not all available. The 'StorageDomainVm' section of the REST API Guide must be updated to include this new option. See the following for an example of the whole command - POST /api/storagedomains/xxxxxxx-xxxx-xxxx-xxxxxx/vms/xxxxxxx-xxxx-xxxx-xxxxxx/register HTTP/1.1 Accept: application/xml Content-type: application/xml <action> <cluster id='bf5a9e9e-5b52-4b0d-aeba-4ee4493f1072'></cluster> <allow_partial_import>true</allow_partial_import> </action>
Looks like this has been covered in the in-code REST API documentation, and is published here: https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.1/html/rest_api_guide/services#services-storage_domain_vm-methods-register Although there is no explicit example included, the description is fairly explanatory, so I'm moving this one to CLOSED.