Get List of Backup Resource Auto Backup Presets

To get the list of backup resource auto backup presets, follow the next steps: 

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

XML Request Example

curl -i -X GET -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:userpass --url http://onapp.test/settings/backups/resources/:resource_id/auto_backup_presets.xml

JSON Request Example

curl -i -X GET -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass --url http://onapp.test/settings/backups/resources/:resource_id/auto_backup_presets.json

XML Output Example

<auto_backup_presets type="array">
  <auto_backup_preset>
    <created_at type="dateTime">2018-04-19T17:15:10+03:00</created_at>
    <day_to_run_on nil="true"/>
	<days_to_run_on type="array"/>
	<enabled type="boolean">true</enabled>
	<frequency type="integer">1</frequency>
	<id type="integer">14</id>
	<max_recovery_points type="integer">5</max_recovery_points>
	<period>hourly</period>
	<resource_id type="integer">5</resource_id>
	<start_time type="dateTime">2000-01-01T11:48:00Z</start_time>
	<updated_at type="dateTime">2018-04-20T11:48:40+03:00</updated_at>
	<week_to_run_on nil="true"/>
   </auto_backup_preset>
  <auto_backup_preset>...</auto_backup_preset>
</auto_backup_presets>

Where: 

auto_backup_presets - the array of auto backup presets

auto_backup_preset - the array of auto backup preset parameters

created_at - the date when the auto backup preset was created in the [YYYY][MM][DD]T[hh][mm][ss] format

day_to_run_on - the day when the auto backup preset is run. The parameter is applicable to the monthly periodFor example, set 0 to run the auto backup preset on Sunday, 1 - Monday, 2 - Tuesday, 3 - Wednesday, 4 - Thursday, 5 - Friday, or 6 - Saturday.

days_to_run_on - the array of days when the auto backup preset is run. The parameter is applicable to the weekly periodFor example, set 0 to run the auto backup preset on Sunday, 1 - Monday, 2 - Tuesday, 3 - Wednesday, 4 - Thursday, 5 - Friday, or 6 - Saturday.

enabled - true if the auto backup preset is enabled, otherwise, false 

frequency - the frequency of how often the auto backup preset is run. The parameter is applicable to the daily periodFor example, set 1 to run the auto backup preset every day, 2 - every second day, 3 - every third day, etc. 

id - the ID of the auto backup preset

max_recovery_points - the maximum number of recovery points created for VS

period - the period for which the auto backup preset is configured that can be the following: 

  • hourly
  • daily 
  • weekly
  • monthly
  • yearly

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

start_time - the start time for running the auto backup preset in the [YYYY][MM][DD]T[hh][mm][ss] format. The parameter is applicable to the daily, weekly and monthly periods. 

updated_at - the date when the auto backup preset was updated in the [YYYY][MM][DD]T[hh][mm][ss] format

week_to_run_on - the week when the auto backup preset is run. The parameter is applicable to the monthly period. For example, set 0 to run the auto backup preset on the first week of the month, 1 - the second week, 2 - the third week, or 3 - the fourth week.