[Users] get VM events via API?

Sander Grendelman sander at grendelman.com
Fri Jan 17 13:18:23 UTC 2014


I did a quick test with ovirt-shell:


# Query vm id:
[oVirt shell (connected)]# list vms --query "name=testvm"

id         : 8b2ad3a2-9704-47e6-99f1-f196856d7bd5
name       : plsweb02

[oVirt shell (connected)]#

# List events:

list events --kwargs "vm-id=a82874bb-152d-4efd-952b-3f3304af7bb3"

Unfortunately this uses client side filtering.

REST-API / python sdk should work similarly, AFAIK ovirt-shell uses
the REST-API too

On Fri, Jan 17, 2014 at 1:13 PM, Sven Kieske <S.Kieske at mittwald.de> wrote:
> Hi,
>
> is it possible to get the vm events via any API/CLI?
>
> I'm talking about the "events" tab which you can select
> in webadmin when you selected a vm.
>
> If this is possible, how can we get the data?
> We could even write a vdsm hook, if necessary, but
> would of course prefer REST-API.
>
> Thanks.
> --
> Mit freundlichen Grüßen / Regards
>
> Sven Kieske
>
> Systemadministrator
> Mittwald CM Service GmbH & Co. KG
> Königsberger Straße 6
> 32339 Espelkamp
> T: +49-5772-293-100
> F: +49-5772-293-333
> https://www.mittwald.de
> Geschäftsführer: Robert Meyer
> St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen
> Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad Oeynhausen
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users



More information about the Users mailing list