The api/db/<dbname>/backup/list Resource

The api/db/<dbname>/backup/list prints the contents of a backup file. The only supported method is GET. The response is a JSON object with only one key, "backup_list", that contains the list of the backup records in the file. (The entries in this list have the same fields as the mco_backup_info_t C AI structure.)

For an overview see page eXtremeDB Web Service Resources

With the REST server started (listening on port 8083), the following http request will return output corresponding to the backup file myfile.bkp with one record in JSON format:

 
    GET http://localhost:8083/api/db/diskdb/backup/list?file_name=myfile.bkp            
     

The response is a JSON object with only one key, "backup_list", that contains the list of the backup records in the file. For example:

 
  {
	"backup_list":
	[
		 {
			"magic": 3987782336,
			"protocol_version": 2,
			"type": "SNAPSHOT",
			"flags":
			[
			],
			"backup_no": 0,
			"timestamp": 1558223122,
			"size": 411916,
			"offset": 0,
			"crc": 784321220,
			"trans_no": 10,
			"mem_page_size": 256,
			"disk_page_size": 0,
			"n_pages_total": 79003,
			"db_name": "bkpdb",
			"label": "BKPLBL00000"
		}
	]
  }