海康云眸 IoT API
  1. 报警主机
海康云眸 IoT API
  • 产品介绍
  • 能力概览
  • 错误码表
  • 报警类型表
  • 常见问题
  • 示例DEMO
  • 快速入门
    • 接口调用说明
    • 生成授权凭证
      POST
  • 基础服务能力
    • 设备分组管理
      • 新增组
      • 删除组
      • 更新组
      • 获得单个组详情
      • 查询所有节点列表
      • 查找组的下级节点
    • 设备管理
      • 注册设备
      • 注销设备
      • 修改设备名称
      • 获得单个设备信息
      • 获得设备列表
      • 获取设备总数
      • 查询设备状态
    • 设备确权
      • 确权流程说明
      • 下线确认
      • 上线确认
    • 通道管理
      • 查询设备下通道列表
      • 同步设备下通道
      • 修改通道名称
    • 人员管理
      • 添加人员
      • 更新人员信息
      • 删除人员信息
      • 获得单个人员详情
      • 人脸评分标准配置接口
      • 人员人脸更新
      • 人员人脸删除
  • 报警能力管理
    • 获取报警能力列表
      GET
    • 修改报警能力状态
      POST
  • 视频服务能力
    • 视频对接指南
    • 视频参数配置
      • 视频设备码流参数配置指南
      • 接口配置
        • 获取音视频单通道编码能力
        • 获取音视频单通道编码配置
        • 设置音视频单通道编码配置
    • 视频集成方案
      • web视频控件
      • UIKIT
      • 微信小程序
      • 移动端SDK
        • Android
        • IOS
        • 错误码对照表
      • 标准流预览
        • 开通标准流预览功能
        • 获取标准流预览地址
        • 获取预览/回放地址
      • 互动直播间
        • 创建直播间
        • 编辑直播间
        • 删除直播间
        • 查询直播间列表
        • 设置直播间状态
        • 账号充值
    • 设备视频加密
      • 关闭设备视频加密
      • 开启设备视频加密
    • 云台控制
      • 开始云台控制
      • 停止云台控制
      • 3D放大
    • 预置点操作
      • 添加预置点
      • 更新预置点
      • 清除预置点
      • 调用预置点
      • 加载预置点
    • 取流认证
    • 远程抓图
  • 门禁服务能力
    • 门禁对接指南
    • 卡片操作
      • 新增卡片
      • 删除卡片
      • 根据人员编号删除卡片
    • 门禁计划
      • 计划模板管理
        • 周计划模板添加/更新
        • 周计划模板获取
        • 周计划模板删除
        • 假日计划模板添加/更新
        • 假日计划模板获取
        • 假日计划模板删除
      • 门禁计划管理
        • 周计划配置
        • 周计划获取
        • 假日计划配置
        • 假日计划获取
        • 假日组计划配置
        • 假日组计划获取
        • 门禁计划配置
        • 门禁计划聚合配置
        • 门禁计划获取
        • 清空门禁计划
    • 权限分组
      • 权限组新增
      • 权限组更新
      • 权限组删除
      • 获取权限组列表
      • 权限组绑定人员
      • 权限组解绑人员
      • 权限组获取人员编号列表
      • 权限组绑定设备
      • 权限组解绑设备
      • 权限组获取设备序列号列表
      • 人员权限信息查询
    • 权限下发
      • 根据权限组下发权限
      • 查询下发失败记录
      • 下发所有失败人员
      • 清空设备本地权限
      • 获取设备能力集
      • 人员权限信息更新
    • 远程控门
      • 远程控门
      • 远程呼梯
    • 可视对讲
      • 设置可视对讲通知地址
      • 可视对讲交互事件通知
      • 获取可视对讲通知地址
    • 人员信息采集
      • 远程采集方式
        • 规则配置
        • 获取规则配置
        • 采集身份证信息
        • 采集卡信息
        • 采集指纹信息
        • 采集人脸信息
        • 获取人脸采集进度
      • 本地采集方式
        • 规则配置
        • 获取规则配置
        • 录入人员信息
        • 查询采集数据
        • 获取采集状态信息
        • 删除全部采集数据
        • 根据人员编号删除采集数据
    • 多重认证
      • 获取群组配置
      • 群组配置
      • 清除群组配置
      • 获取多重认证配置
      • 设置多重认证配置
    • 访客二维码生成
    • 设备本地事件查询
  • 边缘人脸服务能力
    • 边缘人脸对接指南
    • 人脸库管理
      • 创建人脸库
      • 删除全部人脸库
      • 删除单个人脸库
      • 获取所有人脸库基本参数
      • 批量设置人脸库基本参数
      • 获取单个人脸库基本参数
      • 设置单个人脸库基本参数
      • 查询人脸库剩余人脸数及磁盘容量
    • 人脸库人脸管理
      • 查询单个人脸库中人脸信息
      • 删除单个人脸库中人脸
    • 人脸下发入库
      • 人脸批量异步下发
      • 查询人脸异步下发任务状态
      • 查询人脸异步下发所有任务状态
      • 人脸下发底图入库状态查询
      • 人脸异步下发任务删除
    • 设置人脸比对参数配置
      • 设置人脸比对参数配置
      • 获取人脸比对参数配置
      • 设置人脸比对/陌生人比对联动配置
    • 客流统计
      • 客流统计参数配置
      • 客流统计参数配置获取
      • 查询客流数据
  • 消息通道
    • 对接指南
    • 消息类型定义
    • 消息通道API
      • 创建消费者
      • 消费消息
      • 提交偏移量
  • 其他设备能力
    • 萤石探测器
      • 获取探测器列表
      • 关联探测器
      • 设置探测器状态
      • 删除探测器
      • 获取可关联的IPC列表
      • 获取已关联的IPC列表
      • 设置探测器与IPC的关联关系
      • 修改探测器名称
      • 一键消警
    • 区域热度
      • 获取区域关注度配置
      • 区域关注度配置
      • 生成热度图
      • 获取热度图
      • 获取热度图配置
      • 设置热度图配置
    • 设备校时
      • 获取设备校时配置
      • 配置设备校时
      • 获取NTP服务器配置
      • 配置NTP服务器
      • 获取指定NTP服务器配置
      • 配置指定NTP服务器参数
    • 萤石云储存
      • 设备开通云存储
      • 开启/关闭云存储
      • 获取设备云存储信息
    • 视频安全帽
      • 设备本地开关权限控制
      • 设备录像开关
      • 设备立即上报按键触发抓图事件
      • 设备立即上报状态信息
      • 设备补光灯开关
      • 设备激光灯开关
    • 报警主机
      • 获取子系统列表
        GET
      • 获取防区列表
        GET
      • 获取主机状态
        GET
      • 获取所有防区状态
        GET
      • 子系统布防
        POST
      • 子系统撤防
        POST
    • 设备布撤防
      POST
  • 历史接口
    • 组管理
      • 新增组
      • 修改组
      • 删除组
      • 获取所有组
      • 查找组的下级节点
    • 组管理V2
      • 新增组
      • 修改组
      • 删除组
      • 获取所有组
      • 获取单个组信息
      • 查找组的下级节点
    • 设备管理
      • 注册设备
      • 注销设备
      • 获取设备列表
      • 获取单个设备信息
      • 修改设备名称
      • 获取设备总数
      • 设备布撤防
    • 通道管理
      • 查询设备下通道列表
      • 同步设备下通道
      • 修改通道名称
      • 设备抓图
    • 标准流预览
      • 关闭设备视频加密
      • 开通标准流预览功能
      • 获取标准流预览地址
      • 获取指定有效期标准流预览地址
    • 云台操作
      • 开始云台控制
      • 停止云台控制
      • 添加预置点
      • 调用预置点
      • 清除预置点
    • 门禁管理
      • 门禁管理
        • 人员下发
        • 人员更新
        • 人员查询
        • 人员删除
        • 卡下发
        • 卡更新
        • 卡查询
        • 卡删除
        • 人脸下发
        • 人脸修改
        • 人脸查询
        • 人脸删除
        • 访客二维码生成
        • 远程控门
        • 可视对讲交互事件通知
        • 可视对讲通知地址配置
      • 门禁批量管理
        • 注册人员信息
        • 批量注册人员信息
        • 更新人员信息
        • 查询人员列表
        • 删除人员信息
        • 批量下发
        • 查询任务状态
        • 查询任务详情
      • 门禁计划
        • 计划模板管理
          • 周计划模板添加/更新
          • 周计划模板获取
          • 周计划模板删除
          • 假日计划模板添加/更新
          • 假日计划模板获取
          • 假日计划模板删除
        • 门禁计划管理
          • 周计划配置
          • 周计划获取
          • 假日计划配置
          • 假日计划获取
          • 假日组计划配置
          • 假日组计划获取
          • 门禁计划配置
          • 门禁计划聚合配置
          • 门禁计划获取
          • 清空门禁计划
    • 超脑人脸管理
      • IO管理
        • 获取设备IO端口状态
        • 获取设备指定输出口信息
        • 配置设备指定输出口信息
        • IO输出
      • 人脸管理
        • 删除人脸
        • 查询人脸信息
        • 查询人脸列表
      • 人脸库管理
        • 创建人脸库
        • 查询人脸库容量
        • 删除全部人脸库
        • 删除指定人脸库
        • 查询人脸库基本参数
        • 设置人脸库基本参数
        • 查询指定人脸库基本参数
        • 设置指定人脸库基本参数
        • 查询人脸比对参数
        • 配置人脸比对参数
      • 人员信息管理
        • 注册人员信息
        • 查询人员列表
        • 注销人员信息
      • 获取磁盘基本信息
    • 下发任务管理
      • 下发人脸
      • 任务状态查询
      • 人脸下发状态查询
      • 删除任务
  • 健康码分析能力
    • 健康码识别
    • 行程码识别
    • 核酸报告识别
  • 获取access_token
    POST
  1. 报警主机

获取主机状态

GET
https://api2.hik-cloud.com/api/v1/device/isapi/alarmHost/status
功能描述
该接口用于获取报警主机状态查询
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api2.hik-cloud.com/api/v1/device/isapi/alarmHost/status?deviceSerial=12345465' \
--header 'Authorization: Bearer '
响应示例响应示例
{
  "code": 200,
  "message": "操作成功",
  "data": {
    "AlarmHostStatus": {
      "HostStatus": {
        "tamperEvident": true,
        "ACConnect": true,
        "EzvizNetwork": "wired",
        "smokeDetectorPowerSupply": "normal",
        "powerSupply": "normal",
        "deviceName": "super brain",
        "keypadStatus": "normal",
        "wiredNetworkStatus": "normal"
      },
      "ZoneList": [
        {
          "Zone": {
            "id": 1,
            "name": "test",
            "status": "notRelated",
            "reason": "short",
            "tamperEvident": true,
            "shielded": true,
            "bypassed": true,
            "armed": true,
            "isArming": true,
            "alarm": true,
            "isMasking": true,
            "charge": "normal",
            "chargeValue": 1,
            "signal": 1,
            "temperature": 1,
            "alwaysActiveEnabled": true,
            "waterDetectorAlarm": "yes",
            "smokeDetectedExceed": "yes",
            "temperatureExceed": "yes",
            "detectorType": "other",
            "model": "test",
            "subSystemNo": 1,
            "linkageSubSystem": [
              1,
              2,
              3
            ],
            "pollingOptionEnable": true,
            "stayAway": true,
            "zoneType": "Instant",
            "InputList": [
              {
                "enabled": true,
                "id": 1,
                "mode": "normalOpen",
                "inputZoneID": 1
              }
            ],
            "isViaRepeater": true,
            "repeaterName": "test",
            "workMode": "detector",
            "associateRelayCfg": [
              1,
              2,
              3
            ],
            "humidity": 20,
            "healthStatus": "normal",
            "antiMaskingEnabled": true,
            "mountingType": "wall",
            "MagnetShockCurrentStatus": {
              "magnetOpenStatus": true,
              "magnetShockStatus": true,
              "magnetTiltStatus": true
            },
            "magnetOpenStatus": true,
            "version": "test",
            "pirCamConnected": true,
            "accessModuleType": "transmitter",
            "relatedAccessModuleID": 1,
            "address": 254,
            "zoneAttrib": "wired",
            "deviceNo": 1,
            "isSupportAddType": true,
            "moduleChannel": 1,
            "abnormalOrNot": true,
            "abnormalReason": "upgradeFailed"
          }
        }
      ],
      "IPCZoneList": [
        {
          "channelID": 1,
          "name": "test",
          "chanDetectResult": "connect",
          "deviceNo": 1,
          "linkageSubSystem": [
            1,
            2,
            3
          ],
          "zoneType": "Instant",
          "alarm": true
        }
      ],
      "SubSysList": [
        {
          "SubSys": {
            "id": 1,
            "arming": "stay",
            "alarm": true,
            "enabled": true,
            "name": "test"
          }
        }
      ],
      "ExDevStatus": {
        "OutputModList": [
          {
            "OutputMod": {
              "id": 1,
              "seq": "test",
              "status": "notRelated",
              "tamperEvident": true,
              "charge": "normal",
              "chargeValue": 80,
              "signal": 1,
              "model": "DS-PM1-O8-WE",
              "temperature": 1,
              "isViaRepeater": true,
              "repeaterName": "test",
              "voltValue": 1,
              "currentValue": 1,
              "powerLoad": 1,
              "energySumVaule": 1,
              "relayList": [
                {
                  "id": 1,
                  "status": "on",
                  "name": "test",
                  "subSystem": [
                    1,
                    2,
                    3
                  ],
                  "scenarioType": [
                    "alarm"
                  ]
                }
              ],
              "voltValueV20": 1,
              "deviceNo": 1,
              "version": "test",
              "abnormalOrNot": true,
              "abnormalReason": "upgradeFailed"
            }
          }
        ],
        "OutputList": [
          {
            "Output": {
              "id": 1,
              "name": "test",
              "status": "notRelated",
              "tamperEvident": true,
              "charge": "normal",
              "chargeValue": 1,
              "linkage": "test",
              "signal": 1,
              "temperature": 1,
              "version": "test",
              "accessModuleType": "transmitter",
              "relatedAccessModuleID": 1,
              "address": 254,
              "subSystemList": [
                1,
                2,
                3
              ],
              "scenarioType": [
                "alarm"
              ],
              "relayAttrib": "wired",
              "deviceNo": 1
            }
          }
        ],
        "SirenList": [
          {
            "Siren": {
              "id": 1,
              "seq": "test",
              "name": "test",
              "status": "notRelated",
              "tamperEvident": true,
              "sirenAttrib": "wired",
              "charge": "normal",
              "chargeValue": 1,
              "signal": 1,
              "model": "DS-PS1-I-WE",
              "temperature": 1,
              "subSystemList": [
                1,
                2,
                3
              ],
              "sirenColor": "test",
              "isViaRepeater": true,
              "repeaterName": "test",
              "version": "test",
              "accessModuleType": "localSiren",
              "relatedAccessModuleID": 1,
              "address": 254,
              "deviceNo": 1,
              "mainPowerSupply": true,
              "intercomServiceEnabled": true,
              "abnormalOrNot": true,
              "abnormalReason": "upgradeFailed"
            }
          }
        ],
        "RepeaterList": [
          {
            "Repeater": {
              "id": 1,
              "seq": "test",
              "name": "test",
              "status": "notRelated",
              "tamperEvident": true,
              "charge": "normal",
              "chargeValue": 1,
              "signal": 1,
              "model": "DS-PR1-WE",
              "temperature": 1,
              "connDevNum": 1,
              "mainPowerSupply": true,
              "batteryStatus": "normal",
              "version": "test",
              "deviceNo": 1,
              "abnormalOrNot": true,
              "abnormalReason": "upgradeFailed"
            }
          }
        ],
        "alarmLampList": [
          {
            "AlarmLamp": {
              "id": 1,
              "seq": "test",
              "name": "test",
              "status": "notRelated"
            }
          }
        ],
        "electricLockList": [
          {
            "ElectricLock": {
              "id": 1,
              "name": "test",
              "status": "notRelated"
            }
          }
        ],
        "CardReaderList": [
          {
            "CardReader": {
              "id": 1,
              "seq": "test",
              "name": "test",
              "status": "notRelated",
              "tamperEvident": true,
              "charge": "normal",
              "chargeValue": 1,
              "signal": 0,
              "model": "DS-PT1-WE",
              "temperature": 1,
              "subSystemList": [
                1,
                2,
                3
              ],
              "isViaRepeater": true,
              "repeaterName": "test",
              "version": "test",
              "deviceNo": 1,
              "abnormalOrNot": true,
              "abnormalReason": "upgradeFailed"
            }
          }
        ],
        "KeypadList": [
          {
            "Keypad": {
              "id": 1,
              "seq": "test",
              "name": "test",
              "status": "notRelated",
              "tamperEvident": true,
              "keypadAttrib": "wired",
              "charge": "normal",
              "chargeValue": 1,
              "signal": 0,
              "address": 1,
              "model": "DS-PK1-E-WE",
              "temperature": 1,
              "subSystemList": [
                1,
                2,
                3
              ],
              "isViaRepeater": true,
              "repeaterName": "test",
              "version": "test",
              "ZoneList": [
                {
                  "zoneID": 1,
                  "detectorType": "other",
                  "isBypassed": true,
                  "subSystemList": [
                    1,
                    2,
                    3
                  ],
                  "zoneType": "Instant",
                  "tamperEvident": true,
                  "enterDelay": 1,
                  "exitDelay": 5,
                  "alarm": true
                }
              ],
              "OutputList": [
                {
                  "outputID": 1,
                  "subSystemList": [
                    1,
                    2,
                    3
                  ]
                }
              ],
              "isSupportAddType": true,
              "deviceNo": 1,
              "abnormalOrNot": true,
              "abnormalReason": "upgradeFailed"
            }
          }
        ],
        "RemoteList": [
          {
            "Remote": {
              "id": 1,
              "seq": "test",
              "name": "test",
              "status": "notRelated",
              "charge": "normal",
              "chargeValue": 1,
              "model": "test",
              "isViaRepeater": true,
              "repeaterName": "test",
              "SelKeyList": [
                {
                  "SelKey": {
                    "key": 1,
                    "func": "test",
                    "outputNo": 1
                  }
                }
              ],
              "CombKeyList": [
                {
                  "CombKey": {
                    "keys": "test",
                    "func": "test",
                    "outputNo": 1
                  }
                }
              ],
              "relatedNetUserName": "test",
              "userNickName": "test",
              "version": "test",
              "deviceNo": 1,
              "abnormalOrNot": true,
              "abnormalReason": "upgradeFailed"
            }
          }
        ],
        "TransmitterList": [
          {
            "Transmitter": {
              "id": 1,
              "name": "test",
              "subSystemList": [
                1,
                2,
                3
              ],
              "ZoneList": [
                {
                  "zoneID": 1,
                  "detectorType": "other",
                  "isBypassed": true,
                  "subSystemList": [
                    1,
                    2,
                    3
                  ],
                  "zoneType": "Instant",
                  "tamperEvident": true,
                  "enterDelay": 1,
                  "exitDelay": 5,
                  "alarm": true,
                  "magnetOpenStatus": true,
                  "status": "notRelated"
                }
              ],
              "OutputList": [
                {
                  "outputID": 1,
                  "outputName": "test",
                  "subSystemList": [
                    1,
                    2,
                    3
                  ],
                  "status": "on"
                }
              ],
              "seq": "test",
              "status": "online",
              "tamperEvident": true,
              "charge": "normal",
              "chargeValue": 1,
              "signal": 1,
              "model": "test",
              "temperature": 1,
              "isViaRepeater": true,
              "repeaterName": "test",
              "movedAlarmEnabled": true,
              "tamperPortEnabled": true,
              "voltageOutput": "open",
              "portCfg": "antiMasking",
              "version": "test",
              "smokeDetectorAlarm": "alarm",
              "smokeDetectorPowerSupply": "normal",
              "powerSupply": "normal",
              "mainPowerSupply": true,
              "type": "transmitter",
              "deviceNo": 1,
              "batteryStatus": "normal",
              "abnormalOrNot": true,
              "abnormalReason": "upgradeFailed"
            }
          }
        ]
      },
      "ExtensionList": [
        {
          "ExtensionModule": {
            "id": 1,
            "name": "test",
            "address": 1,
            "linkageAddress": 1,
            "type": "wiredZone",
            "detailType": "eightWiredZone",
            "status": "online",
            "tamperEvident": true,
            "moduleAttrib": "wired",
            "charge": "normal",
            "chargeValue": 1,
            "temperature": 1,
            "deviceNo": 1,
            "model": "test",
            "ZoneList": [
              {
                "zoneID": 1,
                "detectorType": "other",
                "isBypassed": true,
                "subSystemList": [
                  1,
                  2,
                  3
                ],
                "zoneType": "Instant",
                "tamperEvident": true,
                "enterDelay": 1,
                "exitDelay": 5,
                "alarm": true,
                "magnetOpenStatus": true,
                "status": "notRelated"
              }
            ],
            "OutputList": [
              {
                "outputID": 1,
                "outputName": "test",
                "subSystemList": [
                  1,
                  2,
                  3
                ],
                "status": "on"
              }
            ],
            "smokeDetectorAlarm": "alarm",
            "subSystemList": [
              1,
              2,
              3
            ]
          }
        }
      ],
      "BatteryList": [
        {
          "Battery": {
            "id": 1,
            "status": "normal",
            "percent": 20,
            "voltage": 20
          }
        }
      ],
      "CommuniStatus": {
        "connectedSIM": "SIM1",
        "wired": "normal",
        "wifi": "normal",
        "wifiSignal": 1,
        "mobile": "normal",
        "mobileSignal": 1,
        "flow": 1,
        "monFlowLimit": 100,
        "cloud": "normal",
        "averageNoise": 1,
        "ARCList": [
          {
            "id": 1,
            "status": "normal"
          }
        ],
        "wired2": "normal",
        "wifiName": "test",
        "SIMNum": "test",
        "SIMOperatorName": "test",
        "R3AverageNoise": 1,
        "RXAverageNoise": 2
      }
    }
  }
}

请求参数

Query 参数
deviceSerial
string 
设备序列号
必需
示例值:
12345465
Header 参数
Authorization
string 
可选
默认值:
Bearer {{access_token}}

返回响应

🟢200成功
application/json
Body
code
integer 
返回码
必需
message
string 
返回消息
可选
data
object 
报警主机状态
必需
AlarmHostStatus
object 
必需

【海康云眸】API开发者 微信交流群

用微信扫右侧二维码,加入【海康云眸】API开发者 交流群,互助沟通

扫码加入交流群
上一页
获取防区列表
下一页
获取所有防区状态
Built with