In virt-managerwhile watching the tab "Storage" in the "Connection Information" has a column "Used", which shows the domain using each volume:

How can I determine the same information, namely the domain, using this volume using the API (python bindings)?
I looked at the API documentation and ran dir()on libvirt, libvirt.virConnect, libvirt.virStoragePool and libvirt.virStorageVol, but I still don't get it.
source
share