Hi Eugène

can't you use ansible add-hoc commands ?


for a common cli to (libvirt, KubeVirt, oVirt, OpenStack, VMware vSphere, GCP 
and AWS) you could try kcli 
https://github.com/karmab/kcli/blob/master/doc/index.md ( although I haven't 
tried it yet).

Regards,
                  Paul S.

________________________________
From: Eugène Ngontang <sympav...@gmail.com>
Sent: 27 February 2020 09:53
To: Yedidyah Bar David <d...@redhat.com>
Cc: users <users@ovirt.org>
Subject: [ovirt-users] Re: Ovirt API and CLI


Caution External Mail: Do not click any links or open any attachments unless 
you trust the sender and know that the content is safe.

Yes Ansible ovirt_vms module is useful, I use it for provisioning/deployment, 
but once my VM created, I'd like to administrate/interact with them, I don't 
think I should write playbooks for that.

But I'll find a solution.

Le jeu. 27 févr. 2020 à 10:47, Yedidyah Bar David 
<d...@redhat.com<mailto:d...@redhat.com>> a écrit :
On Thu, Feb 27, 2020 at 11:45 AM Eugène Ngontang 
<sympav...@gmail.com<mailto:sympav...@gmail.com>> wrote:
>
> Hi,
>
> I'm trying to find out there a sort of API or ovirt CLI/SDK in order to be 
> able to interact with my ovirt VMS and associated resources.
>
> In my architecture, I have an Ovirt virtualization host, with a self-hosted 
> engine VM to manage VMs.
>
> From the host I have the virsh command to list VMs status, but this doesn't 
> really let me get into VMs management actions like : create, delete, get, 
> reboot, get VMs wide informations (IPs, name, disks.....)
> So each time I have to login to the hosted engine web admin page to explore 
> VM, but I'd really like to play with my Ovirt resources from my command line 
> or programatically.
>
> The ovirt API documentation I've found is really poor, I don't know if 
> someone here has already got the same need and had a good solution.

Did you try one of the SDKs?

Also the ansible modules are useful for many cases.

Good luck and best regards,
--
Didi



--
LesCDN<https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Flescdn.com%2F&data=02%7C01%7Cp.staniforth%40leedsbeckett.ac.uk%7C0b0f31ff2bb44fe75bd708d7bb6b6779%7Cd79a81124fbe417aa112cd0fb490d85c%7C0%7C0%7C637183942289183463&sdata=LqmC35AITCJSJAweJmLffgT2Ztn8IHj8BBQmK3BjVKo%3D&reserved=0>
engont...@lescdn.com<mailto:engont...@lescdn.com>
------------------------------------------------------------
Aux hommes il faut un chef, et au chef il faut des hommes!
L'habit ne fait pas le moine, mais lorsqu'on te voit on te juge!
To view the terms under which this email is distributed, please go to:-
http://leedsbeckett.ac.uk/disclaimer/email/
_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/RGNTCKAMCE4NXQSN5D6QX5Z5446KFH2T/

Reply via email to