[libvirt-users] list storage pools and volumes using python api calls

Osier Yang jyang at redhat.com
Mon May 7 13:23:35 UTC 2012


On 2012年05月07日 13:26, Syed A. Ali wrote:
> how do i list storage pools and volumes using the python bindings?
> basically the python api calls for virsh pool-list and virsh vol-list
> thanks
>
>

# python
 >>> import libvirt
 >>> help(libvirt)

You will find "listStoragePools" in class "virConnect",
and "listVolumes" in class "virStoragePool".

Regards,
Osier




More information about the libvirt-users mailing list