[libvirt-users] Libvirt API for attaching volume to domain
Peter Krempa
pkrempa at redhat.com
Thu Aug 15 07:57:25 UTC 2019
[Please don't top-post on technical lists.]
On Wed, Aug 14, 2019 at 19:43:11 +0530, Varsha Verma wrote:
> Thanks, this is exactly what I needed.
>
> Is there some documentation where I can get how to exactly call this
> function along with the arguments?
python has builtin documentation:
import libvirt
help(libvirt)
Disk XML documentation is here:
https://libvirt.org/formatdomain.html#elementsDisks
the C api documentation is here:
https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainAttachDeviceFlags
Also for inspiration 'virsh attach-disk' supports the --print-xml
argument.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20190815/b9ebc8b8/attachment.sig>
More information about the libvirt-users
mailing list