Syed A. Ali
2012-May-07 05:26 UTC
[libvirt-users] list storage pools and volumes using python api calls
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
Osier Yang
2012-May-07 13:23 UTC
[libvirt-users] list storage pools and volumes using python api calls
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