Get device details

Last Updated on : 2023-06-20 14:34:18download

You can query the detailed information of the device through this API, including device attributes and the latest status of the device.

API address

GET: /v1.0/devices/{device_id}

Request parameter

Parameter nameTypeINRequiredDescription
device_idStringuritrueDevice ID

Return parameter

Parameter nameTypeDescription
resultDeviceResReturn result

Description of result

Parameter nameTypeDescription
idStringDevice ID
uuidStringDevice Identification
uidStringUser ID
biz_typeIntegerApplication Type
nameStringDevice Name
time_zoneStringTime Zone
ipStringDevice IP
subBooleanWhether it is a sub-device:
  • true: yes
  • false: no
modelStringProduct Model
create_timeLongThe time when the device was first allocated to the network
update_timeLongDevice status update time
active_timeLongThe last time the device was networked
statusListDevice function status
owner_idStringDevice Owner ID
product_idStringProduct ID
product_nameStringProduct Name
categoryStringProduct Category
iconStringDevice Icon
onlineBooleanAre you online:
  • true: online
  • false: not online
node_idStringSub-device ID, when sub is true, that is, when the sub-device exists.

Description of status

Parameter nameTypeDescription
codeStringFunction point name
valueObjectThe value corresponding to the function point

Request example

GET: /v1.0/devices/60613135b121cddc294****

Error code

For more information, see error code.