Device
Represents a device, a unit that runs microcode and communicates to this API.
Methods
Method | Authorization | Uri | Description |
---|---|---|---|
list | Access JSON Web Token (GetDevice) | GET /device | Gets list of devices. |
count | Access JSON Web Token (GetDevice) | GET /device/count | Gets count of devices. |
get | Access JSON Web Token (GetDevice) | GET /device/{id} | Gets information about device. |
register | Access JSON Web Token (RegisterDevice) | PUT /device/{id} | Registers or updates a device. For initial device registration, only 'name' property is required. |
delete | Access JSON Web Token (RegisterDevice) | DELETE /device/{id} | Deletes an existing device. |
Resource Representation
{
"id": {string},
"name": {string},
"data": {object},
"networkId": {integer},
"deviceTypeId": {integer},
"isBlocked": {boolean}
}
Property Name | Type | Description |
---|---|---|
id | string | Device unique identifier. |
name | string | Device display name. |
data | object | Device data, a JSON object with an arbitrary structure. |
networkId | integer | Associated network id. |
deviceTypeId | integer | Associated device type id. |
isBlocked | boolean | Indicates whether device is blocked. |
Updated almost 7 years ago