[ovirt-users] Guest reboot feature using REST API

Shanil S xielesshanil at gmail.com
Fri Aug 29 10:42:01 UTC 2014


Hi Juan,

This is the normal reboot of the vm, right ?

-- 
Regards
Shanil


On Fri, Aug 29, 2014 at 4:03 PM, Juan Hernandez <jhernand at redhat.com> wrote:

> On 08/29/2014 12:09 PM, Shanil S wrote:
> > Hi All,
> >
> > It is found that there is a function like guest reboot (
> > http://www.ovirt.org/Features/Guest_Reboot ) Is there any rest api
> > function for doing this guest reboot ? currently i found only one
> > function for reboot (/api/vms/id/reboot). We are currently using the
> > Ovirt 3.4.3 version
> >
>
> Yes:
>
> #!/bin/sh -ex
>
> url="https://ovirt.example.com/ovirt-engine/api"
> user="admin at internal"
> password="******"
>
> curl \
> --insecure \
> --request POST \
> --header "Accept: application/xml" \
> --header "Content-Type: application/xml" \
> --user "${user}:${password}" \
> --data "<action/>" \
> "${url}/vms/dc7076ee-9ae7-4a14-bec6-7936f76b4375/reboot"
>
> --
> Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta
> 3ºD, 28016 Madrid, Spain
> Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20140829/9d975e5c/attachment-0001.html>


More information about the Users mailing list