ServerMania logo

Get List of File Entries for Recovery Point

The get the list of file entries for a recovery point, use the following request: 

GET /virtual_machines/:virtual_machine_id/backups/recovery_points/:recovery_point_id/file_entries.xml
GET /virtual_machines/:virtual_machine_id/backups/recovery_points/:recovery_point_id/file_entries.json 

XML Request Example

curl -i -X GET -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:userpass --url http://test/virtual_machines/12/backups/recovery_points/3/file_entries.xml

JSON Request Example

curl -i -X GET -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass --url http://test/virtual_machines/12/backups/recovery_points/3/file_entries.json 

XML Output Example

<file_entries type="array">
  <file_entry>
	<path>home</path>
	<file_name>home</file_name>
	<dir type="boolean">true</dir>
	<last_modified type="dateTime">2018-08-06T17:50:29+03:00</last_modified>
	<size nil="true"/>
  </file_entry>
  <file_entry>...</file_entry>
</file_entries>

Where:

file_entries - the array of the file entries

file_entry - the array of the file entry parameters

path - the path to the file entry

file_name - the name of the file entry

dir - true if the entry is a directory and false if the entry is a file

last_modified - the date when the file entry was last modified in the [YYYY][MM][DD]T[hh][mm][ss] format

size - the size of the entry in bytes that is available only for files and not for directories