Clone vCenter VS

To clone a virtual server, use 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