[ovirt-users] Clone a Snapshot with REST

Jon Disterhoft jdister at ucar.edu
Fri May 8 16:41:51 UTC 2015

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 at internal:<mypass>" -H "Content-type:
application/xml" -X POST
-d '
   <vm id="e7d53832-b1ba-4f6e-8218-6116a0b4ea53"/>
      <disk id="057c80e5-701f-4dcf-a86d-a89672ff606a"/>

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20150508/d8d4e429/attachment-0001.html>

More information about the Users mailing list