I'd like to query the amount of hard disk space used on the server (or remaining) via the web API. I see I can query the total size of the hard disks via:
/nodes/{node}/disks/list
(There is a 'size' field in there). How can I query the size used or remaining, of the total size of the disk? It shows up in the webUI, but Im not able to find the rest API to query that information.
I'd like to be able to do this because it seems that proxmox VMs go unstable if the disk usage goes to 100%; it seems to allow additional clones but most of the VMs effectively crash at 100% disk consumption (my vm images are on a separate partition, so the server itself is fine).
/nodes/{node}/disks/list
(There is a 'size' field in there). How can I query the size used or remaining, of the total size of the disk? It shows up in the webUI, but Im not able to find the rest API to query that information.
I'd like to be able to do this because it seems that proxmox VMs go unstable if the disk usage goes to 100%; it seems to allow additional clones but most of the VMs effectively crash at 100% disk consumption (my vm images are on a separate partition, so the server itself is fine).