Hey,
I need to map all of our VMs across several proxmox installations, and need to discover the vmgenid for a virtual machine.
Given that VMID 100 can exists in all our clusters, i cant really rely on that as the unique identifier for my usecase.
For now i am looping through each of the VMs, and then getting the vmgenid here - https://pve.proxmox.com/pve-docs/api-viewer/#/nodes/{node}/qemu/{vmid}/config
I had hoped i could get the ID more quickly - like with the https://pve.proxmox.com/pve-docs/api-viewer/#/cluster/resources
https://proxmox01:8006/api2/json/cluster/resources?type=vm
1. Is it possible to do a single API call for a PVE node in a cluster, and then get the vmgenid back, instead of having to loop through each host?
2. Is the vmgenid truly unique - or will it change if a snapshot is taken, etc?
I understand that if someone deletes the VM and restores it, that it MIGHT be changed - and that is fine. As long as it does NOT change for the VMs lifetime.
I need to map all of our VMs across several proxmox installations, and need to discover the vmgenid for a virtual machine.
Given that VMID 100 can exists in all our clusters, i cant really rely on that as the unique identifier for my usecase.
For now i am looping through each of the VMs, and then getting the vmgenid here - https://pve.proxmox.com/pve-docs/api-viewer/#/nodes/{node}/qemu/{vmid}/config
I had hoped i could get the ID more quickly - like with the https://pve.proxmox.com/pve-docs/api-viewer/#/cluster/resources
https://proxmox01:8006/api2/json/cluster/resources?type=vm
1. Is it possible to do a single API call for a PVE node in a cluster, and then get the vmgenid back, instead of having to loop through each host?
2. Is the vmgenid truly unique - or will it change if a snapshot is taken, etc?
I understand that if someone deletes the VM and restores it, that it MIGHT be changed - and that is fine. As long as it does NOT change for the VMs lifetime.