Can someone explain the correct way to update an existing disk with the API? I have a VM and would like to increase the disk size. It works great through the UI, but I am not sure of the correct way to do it through the API. In the REST explorer I see a PUT operation on /PrismGateway/services/rest/v1/vdisks. I also see a PUT operation on /PrismGateway/services/rest/v1/virtual_disks. Or should I be doing a PUT on /api/nutanix/v0.8/vms/ with the vmDisks passed in? I have not gotten any to work yet, but if someone can point me to the correct API call, I can try again and provide more details. Thanks in advance.
Best answer by artvandelay
I did not find any documentation for the post bodies of these requests, but I was able to get examples by doing it in the UI and watching the requests in the chrome developer console. Anyway, here is what I used and this worked for me.
Add a new disk to a VM:
Update/resize a disk in a VM:
Thanks for the assistance.