I try to recover each VM by folder by using request from postman.
With this request, I'm able to list each folder in my vsphere :
GET https://SERVER/rest/vcenter/folder
With this second command, I'm able to list each VM in my vpshere :
GET https://SERVER/rest/vcenter/vm
I want to know if there is a way to get a folder and each VMS inside it ?
Something like :
GET https://SERVER/rest/vcenter/folder/my_folder
With an output like :
"value": [
{
"folder": "XXX",
"VMs" : {
VM1
VM2
...
Or someting like that ?
Thanks a lot ! Protigwelders