Hi.
I'm trying to write a script to calculate the sizes of the VM's disks in order to create an automated report of vm consumption (with cpu/ram/disk). With /api2/json/cluster/resources I only get the boot disk size which is not enough.
The idea is to get the data from API and insert it into a mysql database, and use the aggregated data in the sql db to create a report.
I can connect to API and extract data, all fine, but when I use a user with PVEauditor role, I cannot see content images in the /api2/json/nodes/{node}/storage/{storage}/content. I only get the content types iso and zst. However, when I connect with root account (for testing only), it shows fine.
Which permissions do I need to extract the content images from that API call? Any "safe" permissions instead of full admin?
Thanks in advance
--
Markus
I'm trying to write a script to calculate the sizes of the VM's disks in order to create an automated report of vm consumption (with cpu/ram/disk). With /api2/json/cluster/resources I only get the boot disk size which is not enough.
The idea is to get the data from API and insert it into a mysql database, and use the aggregated data in the sql db to create a report.
I can connect to API and extract data, all fine, but when I use a user with PVEauditor role, I cannot see content images in the /api2/json/nodes/{node}/storage/{storage}/content. I only get the content types iso and zst. However, when I connect with root account (for testing only), it shows fine.
Which permissions do I need to extract the content images from that API call? Any "safe" permissions instead of full admin?
Thanks in advance
--
Markus
Last edited: