If the system is running you can use virsh dumpxml.

Best Regards,
Strahil Nikolov

On Sep 10, 2019 16:12, Sven Achtelik <Sven.Achtelik@eps.aero> wrote:

Hi All,

 

I’m trying to build a custom solution for Backups using the python. Everything works and I can get my disk copies. The last thing is getting the VM config and I can’t find any hint on how to get this done with python. Is there a way to actually get this information out easily ? Somehting like

  • Grab the wanted vm configuration from the needed snapshot - it’ll be under initialization/configuration/data

URL = SERVER:PORT/api/vms/VM_ID/snapshots/ID Method = GET  (with All-Content:true header)

I also have to mention that I’m not a profession programmer and work with what I can find as documentation or code examples.

http://ovirt.github.io/ovirt-engine-sdk/4.1/

https://github.com/oVirt/ovirt-engine-sdk/tree/master/sdk/examples

If some experienced python programmer could give a hint where to look at that would be great.

Thank you,

Sven