Devices
Methods
(static) claimDevice(netId, body) → {Promise}
Claim a device
Parameters
Name | Type | Description |
---|---|---|
netId |
* | |
body |
* |
Returns
- Type
- Promise
(static) getDevice(netId, serial) → {Promise}
Return a single device in a network
Parameters
Name | Type | Description |
---|---|---|
netId |
* | |
serial |
* |
Returns
A promise holding the device object
- Type
- Promise
(static) getDevices(netId) → {Promise}
Return devices for a network
Parameters
Name | Type | Description |
---|---|---|
netId |
* |
Returns
A promise holding an array of devices
- Type
- Promise
(static) getPerfScore(netId, serial) → {Promise}
Return performance score for a single device (MX)
Parameters
Name | Type | Description |
---|---|---|
netId |
* | |
serial |
* |
Returns
A promise holding the performance score
- Type
- Promise
(static) getUplinkStatus(netId, serial) → {Promise}
Return uplink status for a device
Parameters
Name | Type | Description |
---|---|---|
netId |
* | |
serial |
* |
Returns
A promise holding the uplink status
- Type
- Promise
(static) removeDevice(netId, serial) → {Promise}
Remove a device from a network (no post body required)
Parameters
Name | Type | Description |
---|---|---|
netId |
* | |
serial |
* |
Returns
- Type
- Promise
(static) updateDevice(netId, serial, body) → {Promise}
Update the attributes of a single device
Parameters
Name | Type | Description |
---|---|---|
netId |
* | |
serial |
* | |
body |
* |
Returns
- Type
- Promise