<div dir="ltr">Thanks, this is exactly what I needed.<div><br></div><div>Is there some documentation where I can get how to exactly call this function along with the arguments? <br><br><br><br></div><img width="0" height="0" class="mailtrack-img" alt="" style="display:flex" src="https://mailtrack.io/trace/mail/b4da449352945c61d774dbc0d780ba53a7aefee8.png?u=1670425"></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 14, 2019 at 6:48 PM Peter Krempa <<a href="mailto:pkrempa@redhat.com">pkrempa@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, Aug 14, 2019 at 18:23:30 +0530, Varsha Verma wrote:<br>
> Hi,<br>
> <br>
> I wanted to know if there is any Python API exposed for libvirt using which<br>
> I can attach a libvirt volume to a libvirt domain/VM.<br>
> <br>
> I intend to do something similar to the `attach-disk` command of virsh<br>
> using python.<br>
<br>
virsh uses the virDomainAttachDeviceFlags API in the 'attach-disk'<br>
command wrapper. the python bindings expose it as 'attachDeviceFlags'<br>
method of the virDomain class.<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div><div><i><span style="background-color:rgb(153,153,153)"></span><span style="color:rgb(153,153,153)">Regards,<br></span></i></div><span style="color:rgb(153,153,153)"><i>Varsha Verma<br></i></span></div><div><span style="color:rgb(153,153,153)"><i>Third Year Undergraduate<br></i></span></div><span style="color:rgb(153,153,153)"><i>Department of Electrical Engineering<br></i></span></div><i><font color="#999999">IIT-BHU, Varanasi<br></font></i></div></div>