You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
Find the VM moref from the VMware Managed Objects URL.
Note the moref for the VM that you want to restore.
2
/4.1/vm/{moref}/backups
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.
3
/4.1/vm/backups/{backupId}/
snapshotlocations
Get snapshot locations gets the location of the Snapshot copy for the specified backup.
Pass the backupId from Step 2.
Note the snapshotLocationsList information.
4
/4.1/vm/{moref}/backups/
availableesxhosts
Get available ESX Hosts gets the information for the host on which the backup is stored.
Note the availableEsxHostsList information.
5
/4.1/vm/{moref}/backups/
{backupId}/restore
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".