Hi,
this seems to work, but as far as I see
I just get the events from the last start of the vm
until now?
Can the time range or the number of reported events
be influenced in some way?
Additionally I didn't find this function in REST-API
yet. Maybe I'm looking in the wrong direction..
Am 17.01.2014 14:18, schrieb Sander Grendelman:
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(a)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(a)ovirt.org
>
http://lists.ovirt.org/mailman/listinfo/users
--
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