Skip to main content
SnapCenter Plug-in for VMware vSphere 4.8
A newer release of this product is available.

REST API workflow to restore VMs


To perform restore operations for VM backups using the SnapCenter Plug-in for VMware vSphere REST APIs, you must follow the prescribed sequence of REST API calls.

For each REST API, add https://<server>:<port>; at the front of the REST API to form a complete endpoint.

Step REST API Comments


Go to http://<vCenter-IP>/mob

Find the VM moref from the VMware Managed Objects URL.
Note the moref for the VM that you want to restore.



Get VM Backups gets a list of backups for the specified VM.
Pass the moref from Step 1.
Note the backupId of the backup you want to restore.



Get snapshot locations gets the location of the Snapshot copy for the specified backup.
Pass the backupId from Step 2.
Note the snapshotLocationsList information.



Get available ESX Hosts gets the information for the host on which the backup is stored.
Note the availableEsxHostsList information.



Restore a VM from a backup restores the specified backup.
Pass the information from Steps 3 and 4 in the restoreLocations attribute.

Note If the VM backup is a partial backup, set the restartVM parameter to "false".
Note You cannot restore a VM that is a template.