<div dir="ltr">before people go writing yet another api client wouldn't it make sense to just define the api client in terms of some thing like swagger ? <a href="http://swagger.io/">http://swagger.io/</a><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 28 April 2017 at 18:57, Alexander Wels <span dir="ltr"><<a href="mailto:awels@redhat.com" target="_blank">awels@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Friday, April 28, 2017 11:41:03 AM EDT Ben De Luca wrote:<br>
> does ovirt have a restful api?<br>
><br>
<br>
</span>Yes,<br>
<br>
Its available at https://<engine_url>/ovirt-<wbr>engine/api<br>
<br>
In fact the python/java/ruby sdk are just wrappers to calling this api.<br>
<div class="HOEnZb"><div class="h5"><br>
> On 28 April 2017 at 13:43, Fabrice Bacchella <<a href="mailto:fabrice.bacchella@orange.fr">fabrice.bacchella@orange.fr</a>><br>
><br>
> wrote:<br>
> > I have started to write a custom sdk/cli in python for Ovirt 4. It<br>
> > provides helpers and wrapper for the rather raw level sdk4 provided.<br>
> ><br>
> > It's still a work in progress, but a big improvement from my previous<br>
> > version, made for ovirt 3.<br>
> ><br>
> > It allows to write simple commands on shell :<br>
> ><br>
> > $ ./ovcmd host -n hostname maintenance<br>
> > $ ./ovcmd host -n hostname activate<br>
> ><br>
> > It also allows to do fine exports:<br>
> ><br>
> > $ ./ovcmd vm -n vmname export os type<br>
> > rhel_6x64<br>
> ><br>
> > $ ./ovcmd capabilities -n 4.1 export cpu_types name<br>
> > Intel Conroe Family<br>
> > Intel Penryn Family<br>
> > Intel Nehalem Family<br>
> > Intel Westmere Family<br>
> > Intel SandyBridge Family<br>
> > Intel Haswell-noTSX Family<br>
> > Intel Haswell Family<br>
> > Intel Broadwell-noTSX Family<br>
> > Intel Broadwell Family<br>
> > Intel Skylake Family<br>
> > AMD Opteron G1<br>
> > AMD Opteron G2<br>
> > AMD Opteron G3<br>
> > AMD Opteron G4<br>
> > AMD Opteron G5<br>
> > IBM POWER8<br>
> ><br>
> > Or to get a display console on a mac os:<br>
> ><br>
> > $open $(./ovcmd vm -n vmname console )<br>
> ><br>
> ><br>
> > It can be found at <a href="https://github.com/fbacchella/ovirtcmd/tree/sdk4" rel="noreferrer" target="_blank">https://github.com/fbacchella/<wbr>ovirtcmd/tree/sdk4</a><br>
> > It's still works in progress, I need to finish to remove sdk3 code.<br>
> ><br>
> > Some example of object written to sdk4 can be found at:<br>
> ><br>
> > <a href="https://github.com/fbacchella/ovirtcmd/blob/sdk4/ovlib/vms/__init__.py" rel="noreferrer" target="_blank">https://github.com/fbacchella/<wbr>ovirtcmd/blob/sdk4/ovlib/vms/_<wbr>_init__.py</a><br>
> ><br>
> > ______________________________<wbr>_________________<br>
> > Users mailing list<br>
> > <a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
> > <a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
<br>
<br>
</div></div></blockquote></div><br></div>