查询设备详情
接口地址:/v2/devicemgr/r3/openapi/device/detail
请求方式:GET
请求数据类型:application/x-www-form-urlencoded
响应数据类型:*/*
接口描述:
设备详情查询
请求参数:
参数名称 | 参数说明 | 请求类型 | 是否必须 | 数据类型 | schema |
---|---|---|---|---|---|
deviceKey | 设备deviceKey | query | true | string | |
productKey | 产品productKey | query | true | string |
响应状态:
状态码 | 说明 | schema |
---|---|---|
200 | OK | ActionResultOf设备详情 |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | |
50000 | service exception | |
50005 | param check error | |
70000 | Hub 服务不可用 | |
70089 | You have limited permission to operate this project or product or device. | |
70130 | Non existent device. | |
91001 | token not exists | |
91004 | token incorrect | |
91005 | doesn't have permission | |
91006 | user not exist ip white list reference. | |
91007 | please open API permission. |
响应参数:
参数名称 | 参数说明 | 类型 | schema |
---|---|---|---|
code | 返回码 | object | |
data | 对象 | 设备详情 | 设备详情 |
activedTime | 设备激活时间 | integer(int64) | |
authMode | 认证方式,0-动态认证 1-静态认证 2-X509,默认0 | integer(int32) | |
createTime | 创建时间 | integer(int64) | |
dataFmt | 数据格式:0 透传 ,3物模型 | integer(int32) | |
deviceKey | 设备DK | string | |
deviceName | 设备名称 | string | |
deviceStatus | 设备状态 1在线,0离线 | integer(int32) | |
firstConnTime | 首次连接时间 | integer(int64) | |
isActived | 是否激活 0-未激活 1-激活 | integer(int32) | |
isVerified | 二次认证 0-未认证 1-已认证 | integer(int32) | |
isVirtual | 是否虚拟设备 0-真实 1虚拟 | integer(int32) | |
lastConnTime | 最后一次上线时间 | integer(int64) | |
lastOfflineTime | 最后一次离线时间 | integer(int64) | |
productKey | 产品PK | string | |
sn | 设备SN | string | |
updateTime | 更新时间 | integer(int64) | |
exp1 | string | ||
msg | 提示信息 | object | |
pageNum | 当前页数 | object | |
pageSize | 每页数量 | object | |
pages | 总页数 | object | |
total | 总数 | object |
响应示例:
javascript
{
"code": {},
"data": {
"activedTime": 0,
"authMode": 0,
"createTime": 0,
"dataFmt": 0,
"deviceKey": "",
"deviceName": "",
"deviceStatus": 0,
"firstConnTime": 0,
"isActived": 0,
"isVerified": 0,
"isVirtual": 0,
"lastConnTime": 0,
"lastOfflineTime": 0,
"productKey": "",
"sn": "",
"updateTime": 0
},
"exp1": "",
"msg": {},
"pageNum": {},
"pageSize": {},
"pages": {},
"total": {}
}