<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"><<a href="mailto:jhernand@redhat.com" target="_blank">jhernand@redhat.com</a>></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>
> Hi All,<br>
><br>
> It is found that there is a function like guest reboot (<br>
> <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>
> function for doing this guest reboot ? currently i found only one<br>
> function for reboot (/api/vms/id/reboot). We are currently using the<br>
> Ovirt 3.4.3 version<br>
><br>
<br>
</div></div>Yes:<br>
<br>
#!/bin/sh -ex<br>
<br>
url="<a href="https://ovirt.example.com/ovirt-engine/api" target="_blank">https://ovirt.example.com/ovirt-engine/api</a>"<br>
user="admin@internal"<br>
password="******"<br>
<br>
curl \<br>
--insecure \<br>
--request POST \<br>
--header "Accept: application/xml" \<br>
--header "Content-Type: application/xml" \<br>
--user "${user}:${password}" \<br>
--data "<action/>" \<br>
"${url}/vms/dc7076ee-9ae7-4a14-bec6-7936f76b4375/reboot"<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>