I missed that you also had sort:
export mypool="pool1";pvesh get /cluster/resources --type vm --output-format json |jq -r 'sort_by(.vmid)|.[]|select(.pool == env.mypool)| [.vmid, .name, .node]|@tsv'
100 vm100 pve7demo1
202 Copy-of-VM-vm200 pve7demo1
2000 vm2000 pve7demo1
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.