Clone Virtual Server

You can clone virtual servers that run on Xen and KVM compute resources, including virtual servers built from OVA and ISO templates.

To clone a virtual server, run the following request: 

POST /virtual_machines/:virtual_machine_id/clone.xml
POST /virtual_machines/:virtual_machine_id/clone.json

XML Request Example

curl -i -X POST -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:password --url http://onapp.test/virtual_machines/12/clone.xml

JSON Request Example

curl -i -X POST -H 'Accept: application/json' -H 'Content-type: application/json' -u user:password --url http://onapp.test/virtual_machines/12/clone.json