We are integrating our application with the Proxmox REST API to discover and manage VMs. Currently, we use the cluster/resources API to list all VMs across nodes, which works well for building the VM inventory. However, this API does not return VM UUID information ("smbios1": "uuid=048b1de0-e543-49b2-b945-37ee777cdd41"). To fetch the UUID, I need to call the VM config API (/nodes/{node}/qemu/{vmid}/config) for each individual VM.
In environments with a large number of VMs (100–500+), this results in one API call per VM, which impacts performance and user experience. The VM UUID is required for uniquely identifying VMs and for downstream operations in my application.
I’d like to know if there is any supported way to retrieve VM UUIDs in bulk (or via an extended API/parameter) without making per-VM config calls, or if the per-VM config API is the only available approach. If per-VM calls are unavoidable, are there any recommended best practices to handle this efficiently at scale?
Thanks in advance for any guidance.
In environments with a large number of VMs (100–500+), this results in one API call per VM, which impacts performance and user experience. The VM UUID is required for uniquely identifying VMs and for downstream operations in my application.
I’d like to know if there is any supported way to retrieve VM UUIDs in bulk (or via an extended API/parameter) without making per-VM config calls, or if the per-VM config API is the only available approach. If per-VM calls are unavoidable, are there any recommended best practices to handle this efficiently at scale?
Thanks in advance for any guidance.