Overview of all resources in the cluster:
# pvesh get /cluster/resources
Status for all KVM VMs on a specific node:
# pvesh get /nodes/<NODENAME>/qemu
or a single VM:
# pvesh get /nodes/<NODENAME>/qemu/<VMID>/status/current
Would the nodes/<NODENAME>/qemu return an array of whatever /nodes/<NODENAME>/qemu/<VMID>/status/current would return?
https://host:port/api2/json/cluster/resources?type=vm works for me.I tried using
curl -XGET -k -H $(cat token) -b $(cat cookie) https://host:port/api2/json/cluster/resources -type vm
but it returns all the resources rather than just the VMs.
pvesh get /cluster/resources --type vm
We use essential cookies to make this site work, and optional cookies to enhance your experience.