Last Updated on : 2023-12-07 03:33:54download
You can query the detailed information of the device through this API, including device attributes and the latest status of the device.
GET: /v1.0/devices/{device_id}
| Parameter name | Type | IN | Required | Description |
|---|---|---|---|---|
| device_id | String | uri | true | Device ID |
| Parameter name | Type | Description |
|---|---|---|
| result | DeviceRes | Return result |
Description of result
| Parameter name | Type | Description |
|---|---|---|
| id | String | Device ID |
| uuid | String | Device Identification |
| uid | String | User ID |
| biz_type | Integer | Application Type |
| name | String | Device Name |
| time_zone | String | Time Zone |
| ip | String | Device IP |
| local_key | String | Key |
| sub | Boolean | Whether it is a sub-device:
|
| model | String | Product Model |
| create_time | Long | The time when the device was first allocated to the network |
| update_time | Long | Device status update time |
| active_time | Long | The last time the device was networked |
| status | List | Device function status |
| owner_id | String | Device Owner ID |
| product_id | String | Product ID |
| product_name | String | Product Name |
| category | String | Product Category |
| icon | String | Device Icon |
| online | Boolean | Are you online:
|
| node_id | String | Sub-device ID, when sub is true, that is, when the sub-device exists. |
Description of status
| Parameter name | Type | Description |
|---|---|---|
| code | String | Function point name |
| value | Object | The value corresponding to the function point |
GET: /v1.0/devices/60613135b121cddc294****
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback