开始使用
  • English
  • 简体中文
前往官网
开始使用
  • English
  • 简体中文
前往官网
  • 开始使用
  • 核心概念
  • 开发指南
  • 设备能力与事件参考
  • API 参考
    • 公共约定
    • HTTP 开发规范
    • accessToken(管理员 Token)
    • API 请求示例
    • 错误码
    • 接口调用限额
    • 账号与授权
    • 设备接口
    • 直播地址
    • 推送配置
    • 云存储
    • 资源池额度管理
    • 旧版接口(不再维护)
      • 门锁(遗留)
      • 告警消息(遗留)
      • 设备查询(已弃用)
        • checkDeviceBindOrNot(查询设备绑定状态)
        • deviceOnline(获取设备在线状态)
        • listDeviceDetailsByIds(批量查询设备详情)
        • listDeviceDetailsByPage(分页查询设备详情)
        • unBindDeviceInfo(获取未绑定设备信息)
        • upgradeProcessDevice(获取设备升级状态与进度)
        • bindDeviceChannelInfo(获取单个设备通道详情)
        • bindDeviceInfo(单个设备信息获取)
        • bindDeviceList(批量设备信息获取)
        • deviceBaseDetailList(批量获取 easy4ip 应用设备详情)
        • deviceBaseList(分页获取 easy4ip 应用设备通道基础信息)
        • deviceList(获取设备列表)
        • deviceOpenDetailList(批量获取开放平台设备详情)
        • deviceOpenList(分页获取开放平台设备通道基础信息)
        • deviceVersionList(获取设备版本与可升级信息)
        • listDeviceAbility(批量获取设备能力集)
        • queryBaseDeviceChannelInfo(获取 easy4ip 应用设备基础通道信息)
        • queryOpenDeviceChannelInfo(获取开放平台设备基础通道信息)
        • shareDeviceList(分页获取 easy4ip 应用分享设备列表)
      • 设备维护(遗留)
      • 设备操作(遗留)
      • 设备使能(遗留)
      • 动检配置(遗留)
      • 收藏点(遗留)
      • 定时巡航(遗留)
      • 本地录像配置(遗留)
      • 音量(遗留)
      • 存储(遗留)
      • 图像与视频(遗留)
      • 时区(遗留)
      • Wi-Fi(遗留)
      • 本地录像查询(遗留)
  • SDK 与工具
  • 方案
  • 平台与支持
本页目录
功能说明
请求地址
请求格式
请求参数
请求示例
返回 data 字段
响应示例
错误码
相关参考

listDeviceDetailsByPage(分页查询设备详情)

listDeviceDetailsByPage:分页查询设备详情

已弃用: 新接入请使用 分页设备详情(device.detail.page)。本页仅供存量 HTTP 对接查阅。

功能说明

分页获取账号下设备通道信息。

请求地址

https://openapi-[DataCenter].easy4ip.com/openapi/listDeviceDetailsByPage

请求格式

POST JSON 请求体见 请求约定;签名见 签名。

请求参数

参数名参数类型是否必填默认值合法取值参数说明
pageSizeint是每页条数,范围 1–50
pagelong是页码,从 1 开始
tokenString是管理员或子账号 accessToken
sourceStringbindAndSharebind:仅绑定设备
share:仅分享设备
bindAndShare:绑定与分享设备
关系类型;传入子账号 token 时本参数无效

请求示例

{
 "system": {
 "ver": "1.0",
 "appId": "lcdxxxxxxxxx",
 "sign": "xxxxxxxxxxxxxx",
 "time": 1603370757,
 "nonce": "1a411d5a-e88b-45ee-b590-53da98375edd"
 },
 "id": "beb24691-d173-473a-8d3d-92db3aee0027",
 "params": {
 "token": "xxxxxxxxxxxxxxxxxxxxxxxxx",
 "page": 1,
 "pageSize": 10,
 "source": "bindAndShare"
 }
}

返回 data 字段

字段名字段类型字段说明
countInteger本次查询命中的设备数量
deviceList.upgradeInfo.versionString最新版本号
deviceList.upgradeInfo.attentionString升级说明
deviceList.upgradeInfo.packageUrlString下载地址
deviceList.deviceIdString设备序列号
deviceList.productIdString产品唯一 ID
deviceList.canBeUpgradeBoolean设备程序是否可升级
deviceList.accessTypeString设备接入类型:空 表示开放平台程序接入;Lechange 表示乐橙/Imou 常规接入设备;Easy4IP 表示 Easy4IP 程序设备;P2P 表示 P2P 程序设备
deviceList.deviceVersionString设备版本号
deviceList.playTokenString设备播放码,供 OpenSDK 使用
deviceList.brandString设备品牌:lechange 为 Imou 设备,general 为通用设备
deviceList.encryptModeString设备加密模式:0 设备默认加密,1 用户自定义加密
deviceList.lastOffLineTimeString设备上次离线时间
deviceList.deviceNameString设备名称
deviceList.deviceStatusString设备状态:online 在线 / offline 离线 / sleep 休眠 / upgrading 升级中
deviceList.deviceModelString设备型号
deviceList.catalogString设备品类:NVR/DVR/HCVR/IPC/SD/IHG/ARC
deviceList.deviceAbilityString设备能力集,逗号分隔
deviceList.channelNumInteger设备支持接入的最大通道数
deviceList.sourceString权限类型:bind 绑定 / share 分享
deviceList.isSubDeviceBoolean是否为子设备
deviceList.parentDeviceIdString所属父设备序列号
deviceList.parentProductIdString所属父设备 productId
deviceList.channelList.channelPicUrlString通道封面图 URL
deviceList.channelList.csStatusString云存储状态:notExist 未开通套餐,using 已开通且未过期,expired 套餐已过期
deviceList.channelList.shareFunctionsString分享权限下的权限字符串,逗号分隔
deviceList.channelList.cameraStatusString镜头遮蔽:on 开启,off 关闭
deviceList.channelList.channelIdString通道号
deviceList.channelList.channelNameString通道名称
deviceList.channelList.channelAbilityString通道能力集,逗号分隔
deviceList.channelList.channelStatusString通道状态:online 在线 / offline 离线 / sleep 休眠 / upgrading 升级中
deviceList.channelList.lastOffLineTimeString通道上次离线时间
deviceList.channelList.resolutions.nameString客户端展示的分辨率名称
deviceList.channelList.resolutions.imageSizeInteger分辨率枚举值
deviceList.channelList.resolutions.streamTypeInteger码流类型:0 主码流,1 辅码流
deviceList.subDeviceList.subDeviceProductIdString子设备产品 ID
deviceList.subDeviceList.subDeviceIdString子设备序列号
deviceList.subDeviceList.subDeviceNameString子设备名称
deviceList.subDeviceList.subDeviceModelString子设备型号
deviceList.subDeviceList.subDeviceStatusString子设备状态:online 在线 / offline 离线
deviceList.aplist.apIdString配件 ID
deviceList.aplist.apNameString配件名称
deviceList.aplist.apTypeString配件类型

响应示例

{
 "result": {
 "msg": "操作成功.",
 "code": "0",
 "data": {
 "count": 1,
 "deviceList": [
 {
 "catalog": "IPC",
 "source": "bind",
 "deviceId": "TESTQWERXXXX",
 "deviceName": "TP7-XXXX",
 "wifiTransferMode": "2.4Ghz",
 "deviceStatus": "online",
 "accessType": "",
 "channelList": [
 {
 "csStatus": "using",
 "shareFunctions": "",
 "cameraStatus": "off",
 "lastOffLineTime": "20230921T212756Z",
 "channelName": "TP7-XXXX",
 "channelStatus": "online",
 "resolutions": [
 {
 "streamType": 0,
 "name": "1080P",
 "imageSize": 18
 },
 {
 "streamType": 1,
 "name": "480P",
 "imageSize": 5
 }
 ],
 "channelAbility": "CloseCamera,other,NVM,PT,WideDynamic",
 "channelId": 0,
 "channelPicUrl": ""
 }
					],
 "encryptMode": "0",
 "tlsPrivatePort": "37778",
 "brand": "lechange",
 "devicePassword": "xxxxxxxxxxxx",
 "playToken": "",
 "deviceUsername": "xxxxxxxx==",
 "salt": "xxxxxxxxxxxx",
 "upgradeInfo": {
 "packageUrl": "xxxxxxxxxxxxx",
 "attention": "Improve device performance and reinforce safety",
 "appForced": false,
 "isAppForced": false,
 "version": "V2.680.0000000.28.R.210911"
 },
 "httpPort": "80",
 "rtspPort": "554",
 "channelNum": 1,
 "deviceVersion": "xxxxxxxxxxx",
 "sdcardStatus": "normal",
 "subDeviceList":[],
 "aplist": [],
 "deviceAbility": "WLAN,Auth,HSEncrypt,BreathingLight,CloudStorage,LocalStorage",
 "lastOffLineTime": "20220926T164059Z",
 "deviceModel": "TP7",
 "canBeUpgrade": true
 }
 ]
 }
 },
 "id": "20tboni0x9z"
}

错误码

本接口可能返回下列码;完整分组见 错误码 与 能力错误码。

网关与鉴权(SN / TK / OP)

错误码错误码说明下一步
SN1001签名校验异常按 HTTP 开发规范 核对 sign
TK1002token 无效或过期重新获取 accessToken
OP1002缺少必填参数补必填字段
OP1003参数不合法按本页参数表核对
OP1009权限不足核对 token 与设备绑定/分享权限
OP1013接口总次数超限降低调用频率
OP1014接口日限额超限见 接口调用限额
DV1007设备离线等设备上线

更多见 错误码 · OP/SN/TK。

子账号(SUB)

错误码错误码说明下一步
SUB1001–SUB1002子账号无接口权限在 addPolicy 中补策略
SUB1005子账号 token 过期重新 subAccountToken
SUB1006子账号与设备无授权核对 Resource 与设备序列号
SUB1008子账号未绑定应用先创建并绑定子账号

更多见 错误码 · SUB。

设备访问与通道(DV10xx)

错误码错误码说明下一步
DV1007设备离线或超时等设备上线
DV1009设备正忙稍后重试
DV1012分享/授权设备权限不足核对子账号 Permission / Resource
DV1019能力集不支持确认型号与能力列表
DV1020通道离线检查通道状态
DV1026不支持此功能换接口或升级固件
DV1028未绑定或通道不存在核对 deviceId / channelId

更多见 错误码 · DV。

相关参考

  • 开发规范
  • 公共约定
  • 分页设备详情
  • 本模块索引
listDeviceDetailsByIds(批量查询设备详情)
unBindDeviceInfo(获取未绑定设备信息)