Skip to main content
Question

VM Restore using "attach disk to VM" - EQUIVALENT API

  • June 27, 2025
  • 2 replies
  • 54 views

Forum|alt.badge.img+1

Hi, I am trying to restore a vmdk and attach it to the VM. Was able to do it successfully on the web console.  I also downloaded the EQUIVALENT API. 

 

How do I use the “EQUIVALENT API” for future restores  without using the web console ?

I (preferably) want to use REST, but I couldn’t find the endpoint to run this restore. Does anybody know what the endpoint is ? Thanks in adavance!

2 replies

sbhatia
Vaulter
Forum|alt.badge.img+9
  • Vaulter
  • June 27, 2025

You can automate VMDK restore and attach using Commvault’s REST API with the following steps:
1. Get the VM’s client GUID (if you don’t have it) via the GET VM API.
2. Use this REST endpoint to start the restore:
POST <webservice>/v2/vsa/vm/{vmClientGUID}/recover

 

https://documentation.commvault.com/11.20/rest_api_post_vm_restore.html

Hope this helps!


Forum|alt.badge.img+1

Hi sbhatia, 

 

Thanks for the pointers, I tried these two endpoint formats already with no luck. both gives 404

 

https://<webservice>/v2/vsa/vm/{vmClientGUID}/recover

'https://CommandCenterHostName/commandcenter/api/V4/VM/:vmGuid/restore' 

 

I was able to pull the uuid of the vm with this endpoint below, so I know the REST api works, but I am not hitting the right endpoint for the restores

'https://CommandCenterHostName/commandcenter/api/V4/VirtualMachines’