When interacting with the Proxmox VE API, some users have found that using <span>localhost</span> instead of a specific node name makes their API requests work more reliably. This raises the question: should Proxmox users always default to localhost in API requests, or are there potential downsides?
Working Request:
https://192.168.108.219:8006/api2/json/nodes/localhost/qemu/
https://192.168.108.219:8006/api2/json/nodes/pve219/qemu/
We invite feedback from PVE members to clarify whether relying on localhost is a valid workaround or if it's better to resolve node name issues directly. Let's discuss!
Observations from Users
Many have reported that using localhost in API requests works flawlessly when we hit the API request from the local machine. For example:Working Request:
https://192.168.108.219:8006/api2/json/nodes/localhost/qemu/
https://192.168.108.219:8006/api2/json/nodes/pve219/qemu/
Call for Discussion
To the Proxmox VE community, should using [localhost] be the recommended best practice in API requests? Are there any potential downsides we haven't considered?We invite feedback from PVE members to clarify whether relying on localhost is a valid workaround or if it's better to resolve node name issues directly. Let's discuss!
Last edited: