Add Backup Server to Compute Resource
To create a backup server join (assign the backup server to the compute resource), use the following request:
POST /settings/hypervisors/:hypervisor_id/backup_server_joins.xml
POST /settings/hypervisors/:hypervisor_id/backup_server_joins.json
You can add a backup server to a compute resource only if the zones to which the two entities belong are of the same type. For more information refer to Zone Types.
XML Request Example
curl -i -X POST http://onapp.test/settings/hypervisors/14/backup_server_joins.xml -d '<backup_server_id>4</backup_server_id>' -u account_email:API_key -H 'Accept: application/xml' -H 'Content-type: application/xml'
JSON request Example
curl -i -X POST http://onapp.test/settings/hypervisors/14/backup_server_joins.json -d '{"backup_server_id":"4"}' -u account_email:API_key -H 'Accept: application/json' -H 'Content-type: application/json'
Where:
backup_server_id - ID of the backup server you wish to attach
You can check the ID of the required backup server with GET method:
GET /settings/backup_servers.xml
GET /settings/backup_servers.json