Question

Restore AHV VM via API v3

  • 24 November 2021
  • 1 reply
  • 373 views

Good afternoon everyone.

During the integration with Nutanix AHV, I faced the following case -

I need to perform the operation of restoring VM to the snapshot state, my questions are:

1. how can I do this with API v3?
2. may I restore the state of one VM with the snapshot from another one?


What are recommendations and best practices exist to do this with API v3?
 

Thanks.


1 reply

Userlevel 4
Badge +5

Hi Peter,

The API you are looking for is in development process what means it is unsupported in case you want to make use of it. The URL path is 

/api/nutanix/v3/vm_recovery_points/{recovery_point_uuid}/restore

A body example would be:

{"vm_override_spec":{"name":"myVm_clone1"}}

If you are looking for an official supported way, then I suggest you use PE v2 APIs https://www.nutanix.dev/reference/prism_element/v2/api/vms/post-vms-uuid-restore-restorevm

Reply