Hi! I’m interested in working with Proxmox through API calls.
I have a cluster with three hosts, and I perform various actions on VMs such as cloning, resizing, setting configurations, and starting/stopping them.
While sending requests to a specific host works successfully, I encounter issues when making requests to different hosts for the same VM, which are routed via a load balancer.
For example, I sent a change configurations request for a specific VM to “Host1” using “POST /api2/json/nodes/{node}/qemu/{vmid}/config” - and it worked correctly.
Then, I sent another request to “Host2” using “GET /api2/json/cluster/resources” to search for the newly created VM by its new name, but unfortunately, I couldn't find it in the list of returning VMs.
To resolve this issue, I wonder if I need to reconfigure my cluster settings or introduce more time intervals between API calls.
Additionally, I'm curious to know if there’s a way to determine which host sent me the response for a specific request.
Thanks!
I have a cluster with three hosts, and I perform various actions on VMs such as cloning, resizing, setting configurations, and starting/stopping them.
While sending requests to a specific host works successfully, I encounter issues when making requests to different hosts for the same VM, which are routed via a load balancer.
For example, I sent a change configurations request for a specific VM to “Host1” using “POST /api2/json/nodes/{node}/qemu/{vmid}/config” - and it worked correctly.
Then, I sent another request to “Host2” using “GET /api2/json/cluster/resources” to search for the newly created VM by its new name, but unfortunately, I couldn't find it in the list of returning VMs.
To resolve this issue, I wonder if I need to reconfigure my cluster settings or introduce more time intervals between API calls.
Additionally, I'm curious to know if there’s a way to determine which host sent me the response for a specific request.
Thanks!