API2: How to get the node a VM is in without using /api2/json/cluster/resources

PedroPastore

New Member
Feb 28, 2023
22
0
1
I was wandering if there is a way in which i can get that information using only the vm id without having to access the /api2/json/cluster/resources endpoint. This endpoint returns the info about all VMs and nodes and i wanted a more efficient way to request the information of a single VM.
 

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!