Hello,
I'm trying to get the machine details from the API from my Proxmox 7.0-11.
The machine has 2 disks (first one is 60GB, the second 40GB).
Via pvesh I execute the following command. But only one disk is reported (the second one). Do I make a mistake in querying hardware details? Or how do I find the total amount of assigned storage for a VM?
# pvesh get /pools/TestPool --output-format json | python -m json.tool
{
"cpu": 0.0351813858713055,
"disk": 0,
"diskread": 307923615744,
"diskwrite": 932530951168,
"id": "qemu/134",
"maxcpu": 2,
"maxdisk": 42949672960,
"maxmem": 4294967296,
"mem": 1578446848,
"name": "VM003",
"netin": 24739015965,
"netout": 948083298,
"node": "pm02",
"status": "running",
"template": 0,
"type": "qemu",
"uptime": 4378494,
"vmid": 134
},
When I lookup the vmid via cluster resources (pvesh get /cluster/resources), it is even reported as 0 bytes, although the storage pools are reported correctly.
Is this a bug?
I'm trying to get the machine details from the API from my Proxmox 7.0-11.
The machine has 2 disks (first one is 60GB, the second 40GB).
Via pvesh I execute the following command. But only one disk is reported (the second one). Do I make a mistake in querying hardware details? Or how do I find the total amount of assigned storage for a VM?
# pvesh get /pools/TestPool --output-format json | python -m json.tool
{
"cpu": 0.0351813858713055,
"disk": 0,
"diskread": 307923615744,
"diskwrite": 932530951168,
"id": "qemu/134",
"maxcpu": 2,
"maxdisk": 42949672960,
"maxmem": 4294967296,
"mem": 1578446848,
"name": "VM003",
"netin": 24739015965,
"netout": 948083298,
"node": "pm02",
"status": "running",
"template": 0,
"type": "qemu",
"uptime": 4378494,
"vmid": 134
},
When I lookup the vmid via cluster resources (pvesh get /cluster/resources), it is even reported as 0 bytes, although the storage pools are reported correctly.
Is this a bug?