Add Backup Resource Hourly Auto Backup Preset

To add an hourly auto backup preset, use the following request: 

POST /settings/backups/resources/:resource_id/auto_backup_presets.xml
POST /settings/backups/resources/:resource_id/auto_backup_presets.json

XML Request Example

curl -i -X POST -H 'Accept: application/xml' -H 'Content-type: application/xml' -u 'user:password' --url http://onapp.test/settings/backups/resources/3/auto_backup_presets.xml -d '<auto_backup_preset><resource_id type="integer">3</resource_id><period>hourly</period><max_recovery_points type="integer">1</max_recovery_points></auto_backup_preset>'

JSON Request Example

curl -i -X POST -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass --url http://onapp.test/settings/backups/resources/9/auto_backup_presets.json -d '{"auto_backup_preset":{"resource_id": 9,"period": "hourly","max_recovery_points": 1}}'


auto_backup_preset - the array of auto backup preset parameters

resource_id* - the ID of the backup resource for which the auto backup preset is configured

period* - the period for the auto backup preset that is hourly

max_recovery_points - the maximum number of recovery points created for VS