[SOLVED] Proxmox API: how to find/search for VMID's node?

hvisage

Renowned Member
May 21, 2013
278
26
93
Good day,

I am busy with extending and enhancing Ansible playbooks to also do destroy-clone-config_changes, and I'm a tad stuck with a direct method to find the node (and perhaps the type, ie. LXC vs QEMU) a VMID resides on.. ditto for finding it's pool(id)
I see queries to get node lists, and storage lists but not QEMU/LXC lists across the cluster, only on the specific node, so it means I'll have to drop out of Ansible (or to write a traversing Ansible module) to find the location of any specifc VMID.

Am I missing an API path?

Are there a beter place to ask API related questions than this forum?
 
  • Like
Reactions: hvisage

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!