Question

Some questions about V3 api (post /data/changed_regions).

  • 14 January 2022
  • 2 replies
  • 94 views

Badge +1

If I want to call this api for a vm, I must add this vm into a protection domain, and take a snapshot for this protection domain.  Then, I can get the vm’s disks’ snapshot file path , like this :  /<storage_container_name>/.snapshot/<number>/<id>/.acropolis/vmdisk/<vm_disk_id>

I can use this file path to call this api successfully.

But, a protection domain maybe contain many vms, if I take a snapshot for a protection domain, all vms in it will take a snapshot,  I just want to take a snapshot for one vm of them.


 

if I take a snapshot for a vm directly, I will get the vm’s disks’ snapshot file path, like this:  /<storage_container_name>/.acropolis/snapshot/<snapshot_id>/vmdisk/<vm_disk_id>.

But this filepath is invalid for this api. like this question:

https://next.nutanix.com/discussion-forum-14/get-error-code-400-when-use-v3-api-post-data-changed-regions-40363

 


 

I want to take a snapshot for one vm, and don’t affect other vms, and I can use this snapshot file to call this api succesffuly.

Is there any solution? Thanks.


2 replies

Userlevel 6
Badge +16

Have you looked through documentation on this site: https://www.nutanix.dev/reference/prism_central/v3/

Badge +1

Have you looked through documentation on this site: https://www.nutanix.dev/reference/prism_central/v3/

This document doesn’t have this api.

I can only see it in my prism element.

https://cvmip:9440/api/nutanix/v3/api_explorer

 

Reply