首页 / 文档中心 / 平台接口 API / 设备信息查询

设备信息查询

平台接口 API · 第三方接入文档

简要描述:

  • 设备信息,分页查询所有或者根据id查询某个设备

请求URL:
- /product/list

请求方式:
- POST

参数:

参数名 必选 类型 说明
type 是 string 查找类型 (id, "")
value 是 string 查找值 (idValue, "")
curPage 是 string 当前页 (默认从1开始)

返回示例

  {
    "list": [
        {
            "id": "productId",
            "status": 0,
            "isDisabled": true,
            "des": "",
            "addr": "http://productId.cloud.xstrive.com:9502",
            "createTime": "2019-08-23 16:52:54",
            "trafficIn": 0,
            "trafficOut": {},
            "lastStartTime": "2020-03-27 12:53:13",
            "lastCloseTime": "2020-03-27 12:53:17",
            "updateTime": "",
        }
    ],
    "total": 1,
    "size": 10,
  }

返回参数说明

参数名 类型 说明
total int 总条数
size int 当前页最大条数
id string 设备id
status int8 设备状态 0 离线,1在线
des string 设备描述
addr string 设备远程访问地址
createTime string 设备注册时间
trafficIn string 设备入流量
trafficOut string 设备出流量
updateTime string 流量更新时间
lastStartTime string 上次开启时间
lastCloseTime string 上次关闭时间

备注

  • 查询单个设备信息,type == id, value = “设备id”; 列表查询 type,value = “”
这份文档没解决你的问题?联系我们,技术工程师直接对接。

询价咨询

填写这几项,我们 1 个工作日内回传报价与方案

点「生成询价邮件」会打开你的邮件客户端,正文已自动填好;电脑没配邮件客户端,就点「复制内容」粘到网页邮箱发送,收件人 sunshiyang@xstrive.com。