<div dir="ltr">Hi Juan,<br><br>This is the normal reboot of the vm, right ?<br></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><span>-- <br></span>Regards
<br>Shanil
</div></div>
<br><br><div class="gmail_quote">On Fri, Aug 29, 2014 at 4:03 PM, Juan Hernandez <span dir="ltr">&lt;<a href="mailto:jhernand@redhat.com" target="_blank">jhernand@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On 08/29/2014 12:09 PM, Shanil S wrote:<br>
&gt; Hi All,<br>
&gt;<br>
&gt; It is found that there is a function like guest reboot (<br>
&gt; <a href="http://www.ovirt.org/Features/Guest_Reboot" target="_blank">http://www.ovirt.org/Features/Guest_Reboot</a> ) Is there any rest api<br>
&gt; function for doing this guest reboot ? currently i found only one<br>
&gt; function for reboot (/api/vms/id/reboot). We are currently using the<br>
&gt; Ovirt 3.4.3 version<br>
&gt;<br>
<br>
</div></div>Yes:<br>
<br>
#!/bin/sh -ex<br>
<br>
url=&quot;<a href="https://ovirt.example.com/ovirt-engine/api" target="_blank">https://ovirt.example.com/ovirt-engine/api</a>&quot;<br>
user=&quot;admin@internal&quot;<br>
password=&quot;******&quot;<br>
<br>
curl \<br>
--insecure \<br>
--request POST \<br>
--header &quot;Accept: application/xml&quot; \<br>
--header &quot;Content-Type: application/xml&quot; \<br>
--user &quot;${user}:${password}&quot; \<br>
--data &quot;&lt;action/&gt;&quot; \<br>
&quot;${url}/vms/dc7076ee-9ae7-4a14-bec6-7936f76b4375/reboot&quot;<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta<br>
3ºD, 28016 Madrid, Spain<br>
Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.<br>
</font></span></blockquote></div><br></div>