How to get list of vm's in pool?

michabbs

Active Member
May 5, 2020
134
19
38
In command line I want to see list of vm's (both qemu and lxc) belonging to given pool.
Any hints? :-)
 
You can use our API (and according client), e.g.:

Code:
pvesh get /pools/<poolname> --output-format json | jq '.members'
 
the /cluster/resources API endpoint gives you that information (it contains a "pool" field for each VM/CT).
 

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!