Drivers: bind/unbind
To bind a driver to a unit or unbind a driver from a unit, use the command resource/bind_unit_driver:
svc=resource/bind_unit_driver¶ms={"resourceId":<long>,
"itemId":<long>,
"driverId":<long>,
"time":<uint>}
Parameters
Name | Description |
resourceId | resource ID |
itemId | unit ID |
driverId | driver ID (0 - unbinding) |
time | time (0 - current time) |
Response
{} /* empty object if execution successful, if not - error code */
Errors
Code | Value |
1 | invalid session |
2 | invalid service name |
3 | invalid result |
4 | invalid format or value of parameters |
6 | - driver with current ID doesn't exist
- error binding driver |
7 | access denied |