get_driver_bindings

The get_driver_bindings function is used to receive information about driver assignments and separations during a specified time interval.

Copied!
svc=resource/get_driver_bindings&params={"resourceId":<long>,
										 "unitId":<long>,
										 "driverId":<long>,
										 "timeFrom":<uint>,
										 "timeTo":<uint>}

Parameters

NameDescription
resourceIdResource ID.
unitIdUnit ID (0 — all units).
driverIdDriver ID (0 — all drivers).
timeFromThe beginning of the interval.
timeToThe end of the interval.

Returned result

Copied!
{
	"<text>":[{				/* driver ID */
				"t":<unit>,	/* time of assignment/separation */
				"u":<long>	/* unit ID in case of assignment, 0 in case of separation */
			}, 
			...],
		...
}

Possible error codes:

CodeDescription
7Failed to fetch the resource with the desired ACL (ADF_ACL_ITEM_EXECUTE_REPORTS and ADF_ACL_AVL_RES_VIEW_DRIVERS), or failed to fetch the unit with the desired ACL (ADF_ACL_ITEM_VIEW).
4Failed to fetch the list of drivers or wrong input parameters.
Download PDF file
Download Word document

See also