ServerMania logo

Create Recovery Point

To create a recovery point, use the following request: 

POST /virtual_machines/:virtual_machine_id/backups/recovery_points.xml
POST /virtual_machines/:virtual_machine_id/backups/recovery_points.json

XML Request Example

curl -i -X POST -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:userpass --url http://test/virtual_machines/12/backups/recovery_points.xml -d '<recovery_point><resource_id>37</resource_id></recovery_point>'

JSON Request Example

curl -i -X POST -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass --url http://test/virtual_machines/12/backups/recovery_points.json -d '{"resource_id":35}'

Where: 

resource_id - an ID of a backup resource that will be used to create a recovery point

If the request is run successfully, the 204 No Content status is returned.