From: Osier Yang <jyang@redhat.com>
To: Syed A. Ali <syed_a_ali@yahoo.com>
Cc: "libvirt-users@redhat.com" <libvirt-users@redhat.com>
Sent: Monday, May 7, 2012 6:23 AM
Subject: Re: [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
_______________________________________________
libvirt-users mailing list
libvirt-users@redhat.comhttps://www.redhat.com/mailman/listinfo/libvirt-users