Hello!
I'm playing a bit with the proxmox API, and I can't understand the results that I'm seeing. I can successfully get all nodes in the cluster:
But changing the type param to `vm` returns no results
The CLI tool correctly sees my vms:
I started with a readonly scoped token (which should work here) but also kicked it up to a full admin access token with no change in the results.
Any idea what I'm missing? This is version 8.2.4
I'm playing a bit with the proxmox API, and I can't understand the results that I'm seeing. I can successfully get all nodes in the cluster:
❯ curl -s -H 'Authorization: PVEAPIToken=$MY_TOKEN_HERE' 'https://$PROXMOX_HOST/api2/json/cluster/resources?type=node'
{"data":[{"level":"","id":"node/proxmox02","type":"node","cgroup-mode":2,"node":"proxmox02","status":"online"},{"level":"","id":"node/proxmox03","node":"proxmox03","cgroup-mode":2,"type":"node","status":"online"},{"status":"online","id":"node/proxmox01","type":"node","cgroup-mode":2,"node":"proxmox01","level":""}]}%
But changing the type param to `vm` returns no results
❯ curl -s -H 'Authorization: PVEAPIToken=$MY_TOKEN_HERE' 'https://$PROXMOX_HOST/api2/json/cluster/resources?type=vm'
{"data":[]}%
The CLI tool correctly sees my vms:
root@proxmox01:/var/log/pveproxy# pvesh get /cluster/resources --type vm | grep qemu | wc -l
34
I started with a readonly scoped token (which should work here) but also kicked it up to a full admin access token with no change in the results.
Any idea what I'm missing? This is version 8.2.4