Get Backup Resource Details

To get the backup resource details, use the following request: 

GET /settings/backups/resources/:resource_id.xml
GET /settings/backups/resources/:resource_id.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.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.json

XML Output Example

<resources type="array">
  <resource>
	<advanced_options>
	  <option_1>9</option_1>
	  <option_2>8</option_2>
	</advanced_options>
	<resource_zone_id type="integer">3</backup_resource_zone_id>
	<created_at type="dateTime">2018-04-04T12:01:31+03:00</created_at>
	<enabled type="boolean">true</enabled>
	<id type="integer">4</id>
	<label>backup_resource</label>
	<password>password</password>
	<plugin>r1soft</plugin>
	<primary_host>http://69.169.247.107:9080</primary_host>
	<secondary_host>http://69.168.257.106:9080</secondary_host>
	<updated_at type="dateTime">2018-04-04T12:17:27+03:00</updated_at>
	<username>username</username>
  </resource>
</resources>

Where: 

resource - the array of parameters for the backup resource

advanced_options - the array of advanced options for the backup resource

resource_zone_id - the ID of the backup resource zone to which the backup resource is assigned

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

enabled - the status that indicates whether the backup resource is enabled (true) or not (false

id - the ID of the backup resource

label - the label of the backup resource

password - the password used to connect to the third-party backup system

plugin - the label of the backup plugin 

primary_host - the primary address (either hostname or IP address) used to connect to the third-party backup system

secondary_host - the secondary address (either hostname or IP address) used to connect to the third-party backup system

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

username - the username used to connect to the third-party backup system