get_backup

The get_backup function is used to get an automatic backup file for a specified element.

Copied!
svc=item/get_backup&params={"itemId":<long>,
							"fileId": <uint>}

Parameters

NameDescription
itemIdItem ID.
fileIdFile ID.

Returned result

Copied!
{
	"result": {
			"date":"<text>",		/* date */
			"t":<uint>,			/* create time */
			"unitId":<long>,	/* unit ID */
			"id":<long>,		/* file ID */
			"name":				/* file name */
			"content":			/* backup file contents */
		},
}

Possible error codes:

CodeDescription
6Undefined error.
4

Wrong input parameters or failed to fetch the item with the desired ACL:

  • Unit/Unit group  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.
Download PDF file
Download Word document

See also