get_trailer_bindings

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

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

Parameters

Name Description
resourceId Resource ID.
unitId Unit ID (0 — all units).
trailerId Trailer ID (0 — all trailers).
timeFrom The beginning of the interval.
timeTo The end of the interval.

Returned result

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

Possible error codes:

Code Description
7 Failed to fetch the resource with the desired ACL (ADF_ACL_AVL_RES_VIEW_TRAILERS and ADF_ACL_ITEM_EXECUTE_REPORTS), or failed to fetch the unit with the desired ACL (ADF_ACL_ITEM_VIEW).
4 Failed to fetch the list of trailers or wrong input parameters.

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