Hello All, I'm trying to create VM backups through the REST API using curl. My understanding of this flow is to create a snapshot, clone the snapshot, then export the clone machine.
I've got the snapshot part working: curl -v --insecure -u "admin@internal:<mypass>" -H "Content-type: application/xml" -X POST https://<myserver>/api/vms/e7d53832-b1ba-4f6e-8218-6116a0b4ea53/snapshots -d ' <snapshot> <vm id="e7d53832-b1ba-4f6e-8218-6116a0b4ea53"/> <description>TEST_SNAPSHOT</description> <disks> <disk id="057c80e5-701f-4dcf-a86d-a89672ff606a"/> </disks> </snapshot>' However, I can't figure out how to get the clone portion working. I've found a reference to it, but am unable to make it work: > To clone a VM from snapshot, POST to /api/vms : > <vm> > ... > <snapshots> > <snapshot id={snapshot_id}/> > </snapshots> > ... > </vm> So the question is, how do you clone a snapshot with the REST API? Also, is there a complete listing anywhere of all features/action supported by the REST API?
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users