How to get list of vm's in pool?

michabbs

Well-Known Member
May 5, 2020
141
20
58
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).