I mean all the snapshots I happen to have, of all the VMs. Not just one.

I mean, make a list containing them all.
Good, but now I'm going to follow one of these ways and adjust a script to fetch them all.

Thanks.

Em seg., 4 de abr. de 2022 às 17:31, Nir Soffer <nsoffer@redhat.com> escreveu:
On Mon, Apr 4, 2022 at 9:05 PM <jorgevisentini@gmail.com> wrote:
>
> Hello everyone!
>
> First, I would like to thank everyone involved in this wonderful project. I leave here my sincere thanks!
>
> Does anyone know if it is possible to list all snapshots automatically? It can be by ansible, python, shell... any way that helps to list them all without having to enter Domain by Domain.

I'm not sure what you mean by "all" snapshots? All snapshots of a vm?

You can try the API in a browser, for example this list all the
snapshots of one vm:

    https://engine.local/ovirt-engine/api/vms/4a964ea0-c9f8-48d4-8fc1-aa8eee04c7c7/snapshots

If you want easier to use way the python sdk can help, see:
https://github.com/oVirt/python-ovirt-engine-sdk4/blob/main/examples/list_vm_snapshots.py

Nir



--
Att,
Jorge Visentini
+55 55 98432-9868