<div dir="ltr">Hello All,<div><br></div><div>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.</div><div><br></div><div>I've got the snapshot part working:</div><div><br></div><div><div>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 '</div><div><snapshot></div><div> <vm id="e7d53832-b1ba-4f6e-8218-6116a0b4ea53"/></div><div> <description>TEST_SNAPSHOT</description></div><div> <disks></div><div> <disk id="057c80e5-701f-4dcf-a86d-a89672ff606a"/></div><div> </disks></div><div></snapshot>'</div><div><br></div><div>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:</div><div><br></div><div><div>> To clone a VM from snapshot, POST to /api/vms :</div><div>> <vm></div><div>> ...</div><div>> <snapshots></div><div>> <snapshot id={snapshot_id}/></div><div>> </snapshots></div><div>> ...</div><div>> </vm></div></div><div><br></div><div>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?</div><div><br></div><div class="gmail_signature"><div dir="ltr"><div><br></div></div></div>
</div></div>