list_backups

The list_backups function is used to see all the automatic backup files.

Copied!
svc=item/list_backups&params={"itemId":<long>}

Parameters

Name Description
itemId Item ID.

Returned result

Copied!
{
	"result": [
		{
			"date":"<text>",		/* date */
			"t":<uint>,			/* creation time */
			"unitId":<long>,	/* unit ID */
			"id":<long>,		/* file ID */
			"name":				/* file name */
		},
		...
	]
}

Possible error codes:

Code Description
7 Failed to fetch the item with the desired ACL:
  • Unit/Unit proup — ADF_ACL_ITEM_DELETE, ADF_ACL_ITEM_EDIT_AFIELDS, ADF_ACL_ITEM_EDIT_CFIELDS, ADF_ACL_ITEM_EDIT_FILE, ADF_ACL_ITEM_EDIT_IMAGE, ADF_ACL_ITEM_EDIT_NAME, ADF_ACL_ITEM_EDIT_OTHER, ADF_ACL_AVL_UNIT_EDIT_CMD_ALIASES, ADF_ACL_AVL_UNIT_EDIT_COUNTERS, ADF_ACL_AVL_UNIT_EDIT_HW, ADF_ACL_AVL_UNIT_REG_EVENTS, ADF_ACL_AVL_UNIT_EDIT_REPORT_SETTINGS, ADF_ACL_AVL_UNIT_EDIT_SENSORS, ADF_ACL_AVL_UNIT_EDIT_MAINTENANCE;
  • Resource — ADF_ACL_ITEM_DELETE, ADF_ACL_ITEM_EDIT_FILE, ADF_ACL_AVL_RES_EDIT_DRIVERS, ADF_ACL_AVL_RES_EDIT_JOBS, ADF_ACL_AVL_RES_EDIT_NF, ADF_ACL_AVL_RES_EDIT_POI, ADF_ACL_AVL_RES_EDIT_REPORTS, ADF_ACL_AVL_RES_EDIT_TRAILERS, ADF_ACL_AVL_RES_EDIT_ZONES;
  • User — ADF_ACL_ITEM_DELETE, ADF_ACL_USER_SET_ITEMS_ACCESS, ADF_ACL_USER_OPERATE_AS, ADF_ACL_USER_EDIT_FLAGS;
  • Route — ADF_ACL_ITEM_DELETE, ADF_ACL_AVL_ROUTE_EDIT_SETTINGS;
  • Retranslator — ADF_ACL_ITEM_DELETE, ADF_ACL_AVL_RETR_EDIT_SETTINGS, ADF_ACL_AVL_RETR_EDIT_UNITS;
  • Other — ADF_ACL_ITEM_DELETE, ADF_ACL_ITEM_EDIT_NAME, ADF_ACL_ITEM_EDIT_CFIELDS, ADF_ACL_ITEM_EDIT_OTHER, ADF_ACL_ITEM_EDIT_SUB_ITEMS, ADF_ACL_ITEM_EDIT_AFIELDS, ADF_ACL_ITEM_EDIT_FILE, ADF_ACL_AVL_UNIT_EDIT_HW, ADF_ACL_AVL_UNIT_EDIT_SENSORS, ADF_ACL_AVL_UNIT_EDIT_COUNTERS, ADF_ACL_AVL_UNIT_EDIT_MAINTENANCE, ADF_ACL_AVL_UNIT_EDIT_CMD_ALIASES, ADF_ACL_AVL_UNIT_EDIT_REPORT_SETTINGS.
6 Undefined error.
4 Wrong input parameters.

If you find a mistake in the text, please select it and press Ctrl+Enter.