[Engine-devel] Storage allocation/usage
Juan Hernandez
jhernand at redhat.com
Mon Feb 24 17:43:48 UTC 2014
On 02/24/2014 07:42 AM, Vikas Kokare wrote:
> We are trying to query the rhevm/oVirt engine for the storage
> allocation/actual usage numbers for
>
> 1. Host
> 2. Virtual Machine (we can have allocation size from virtual disks
> associated with VM, but not the actual usage)
> 3. Cluster
>
> Is there a ReST API that can fetch this information?
>
The basic information is available in the disk resource:
/api/disks/{disk:id}
/api/vms/{vm:id}/disks/{disk:id}
There you will find three values:
<size>...</size>
<provisioned_size>...</provisioned_size>
<actual_size>...</actual_size>
I think that the <actual_size> is what you are looking for.
For a particular storage domain you can also see some aggregated
information, in tue /api/storagedomains/{storagedomain:id} resource:
<available>...</available>
<used>...</used>
<committed>...</committed>
--
Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta
3ºD, 28016 Madrid, Spain
Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.
More information about the Devel
mailing list