ServerMania logo

Add Backup Resource to Virtual Server

To add a backup resource to a virtual server, use the following request: 

POST /virtual_machines/:virtual_machine_id/backups/resources/:resource_id.xml
POST /virtual_machines/:virtual_machine_id/backups/resources/:resource_id.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/resources/3.xml

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/resources/3.json


Page History

v. 5.9

  • updated the following API requests: 
    • from POST /virtual_servers/:virtual_server_id/backups/resources/:resource_id.xml to POST /virtual_machines/:virtual_machine_id/backups/resources/:resource_id.xml

    • from POST /virtual_servers/:virtual_server_id/backups/resources/:resource_id.json to POST /virtual_machines/:virtual_machine_id/backups/resources/:resource_id.json