Hikvision ISAPI:DeepinMind 背后的 287 个 URI 与 340 条报文

附录 E 在 415 张方法表中索引 287 个 URI,附录 F 定义 340 条报文。一半以 JSON 应答,另有 58 条从未被任何 URI 调用。

两个附录,一条查找路径

SDK 归档中的通用指南附有四个参考附录。前面关于下载内容包含什么的页面已说明每个附录的用途。本页是其中两个附录的索引,因为它们只有成对使用才有意义:附录 E 说明该调用哪个 URI、进出的是哪条报文,附录 F 说明该报文内部各字段是什么。

按这个顺序阅读。一个任务始于一句话,比如读取存储能力,它变成附录 E 中的一个 URI,该 URI 指明一条报文,而该报文在附录 F 中是一份字段列表。两个附录彼此闭合:415 张方法表中提到的每条报文都在附录 F 中定义,287 节中没有任何悬空引用。在你构建客户端之前,这种闭合性值得了解,因为它意味着归档对通用协议是自足的。这条路径上不需要第二份文档。

下面的数字均逐章节、逐表统计自 PDF,并非抽样。

415 张方法表覆盖 287 个 URI

附录 E 不是 287 行的清单。每个 URI 各占一节,节内每个 HTTP 方法一张表,从 Table C-1 编到 Table C-415,既不跳号也不重复。因此一个 URI 贡献一到四张表。

方法 表
GET 245
PUT 126
POST 23
DELETE 20
GET 或 POST,一张表 1

最后一行不是笔误。Table C-21 覆盖资源搜索端点,其方法行写的是 GET 或 POST,而正文记录的是单一一组查询参数。它是 415 张表中唯一列出两种方法的表,这也是为什么按方法词朴素计数会得到 416,而表的数量仍是 415。

分布比总数更重要。读与写接近平衡,245 对 169,因此这是一个带有可观查询面的配置协议,而不是纯命令集。20 张 DELETE 表是最小的一组,它们做的是记录删除而非配置重置:用户、事件触发、GPS 校验点、IOT 通道、SNMP trap 接收方、隐私遮挡区域。这二十张表全部位于五个根路径之下,其中十张仅在 System 根下,那里是大多数可删除子对象所在之处。

从 89 变成 142

协议有一半以 JSON 应答,但确切数量很容易算错,而算错的方式值得用一段来说明,因为你在解析同一份 PDF 时也会遇到。

每节的标题都完整带出 URI,长 URI 在问号处换行。有些章节把 URI 打印在一行,另一些在问号后断行,把 format=json 打印在下一行。因此只读标题行的解析器会在 53 个章节上漏掉 JSON 标志,并报告 287 个中有 89 个 JSON URI。正确数字是从表头统计得出的——那里 URI 打印在一行——即 142 个 JSON 章节和 145 个 XML 章节。

分组 URIs
URI 带 ?format=json 的章节 142
URI 不带该标志的章节 145
JSON 章节中的方法表 189
XML 章节中的方法表 226

JSON 的占比并不均匀。它跟随较新的子系统。

根路径 URIs 其中 JSON
/ISAPI/System 129 79
/ISAPI/ContentMgmt 42 19
/ISAPI/Security 33 16
/ISAPI/Event 24 8
/ISAPI/Image 20 3
/ISAPI/PTZCtrl 14 6
/ISAPI/MasterSlaveTracking 9 2
/ISAPI/SDT 5 5
/ISAPI/Streaming 4 2
/ISAPI/Thermal 3 2
/ISAPI/AUXInfo 2 0
/ISAPI/Intelligent 1 0
/ISAPI/Traffic 1 0

有一个根路径全程是 JSON:五个 SDT URI,即事件搜索调用及其能力调用。有三个全程是 XML:AUXInfo、Intelligent 和 Traffic,合计四个 URI。以 XML 为主的路径是较旧的设备配置类,包括图像设置、取流和辅助信息。SDT 这个例外与 AI Open Platform 一致,后者同样以 JSON 应答,两者合起来说明产品的搜索与分析侧从一开始就按 JSON 接口构建,而设备配置侧则保持原有编码。

查询串与请求体

415 张方法表中,209 张记录了至少一个查询参数,140 张记录了请求体。其余为请求为空的读取。

槽位 填充该值的表 留空该字段的表
查询 209 206
请求体 140 275
响应,分为成功与失败 210 205

415 张表中有 205 张返回单一响应报文,210 张分别列出成功与失败,因此这一分布是均衡的,而非某一种模式占主导。格式标志在这里表现得最清楚:JSON 章节中两侧都是 JSON,XML 章节中两侧都是 XML,只有一个例外,见下文。

415 张表中另有 114 张带 Remarks 块。这些是值得读两遍的表,因为文档把字段列表无法表达的内容放在备注里,比如标识符指的是哪个通道号,或者调用前必须先启用哪个能力。

附录 F 的 340 条报文

附录 F 共定义 340 条报文,158 条 JSON、182 条 XML,分属 339 个不同名称:有一个名称出现两次。每条给出报文名、一行描述、包含全部字段的完整骨架、每个字段的注释,有时还有 Remarks 块。340 条中有 19 条带备注。

注释数量是衡量该附录做了多少工作的有效尺度。

格式 报文 必填 可选 条件 只写 注释总数
JSON 158 693 828 25 0 1546
XML 182 2135 850 97 6 3088

340 条报文共 4634 条字段注释,是一份真正的字段参考,也是这个附录值得这么多页的原因。但覆盖并不均匀。45 条报文完全没有注释,只有骨架。它们大多是 XML,且大多是极短的状态报文或大型嵌套结构,后者的含义在元素名中。另有两条 JSON 报文处于同样情况。如果你需要的报文是这 45 条之一,骨架告诉你形状,但不告诉你哪些字段必填,唯一剩下的来源就是设备本身。

最重的条目都是 XML。音视频压缩能力报文带有 720 条注释,几乎全是必填,因为它逐一列举所有支持的组合。摄像机参数报文带有 394 条。JSON 一侧最重的条目是智能搜索结果报文,140 条注释,其次是其条件报文,92 条。这种不均衡公允地反映了产品复杂性实际所在:搜索侧是协议中参数最多的部分,也是最可能需要在现场调优的部分。

两种注释语法,一个陷阱

158 条 JSON 报文与 182 条 XML 报文使用的注释语法不同,这一差别并非表面文章。

Format   Required            Optional            Dependent              Write only
JSON     /*required, ...*/   /*optional, ...*/   /*dependent, ...*/     not used
XML      <!--req, ...-->     <!--opt, ...-->     <!--dependent, ...-->   <!--wo, ...-->

陷阱是 XML 阵营里的 opt 一词。元素内的 opt 属性并不是在说明该字段是否可选。它是值域,即一串以逗号分隔的可接受字符串,因此像布尔开关这样的元素会打印 opt="true,false",同时仍然是必填的。可选性只由注释说明。把 opt 属性当作可选性的解析器会把每个枚举字段都变成可选,并漏掉最关键字段的校验。

只写是第二个陷阱。整个附录中有六个字段被标记为只写,且全在 XML 中:三个在用户报文中,一个在 FTP 通知报文中,一个在其能力对应报文中,一个在从摄像机报文中。这些是密码和凭据字段。只写字段可以发送,但永远不会返回,因此把配置读回再原样写回的客户端会把凭据清空。这是一个只在往返之后才出现的数据丢失缺陷,这也是它能躲过测试的原因。

五种报文名同时存在于两种格式

JSON 与 XML 并不是同一组报文的两种编码。339 个不同名称中,只有五个同时出现在两种格式里:状态报文、用户报文、用户列表、用户权限报文和用户权限能力报文。其余都只存在于一种格式中。

这带来一个与常见假设相矛盾的现实后果。格式标志并不是把整个协议从 XML 变成 JSON 的全局开关。它是逐 URI 的属性,由编写该章节的人固定下来,287 个 URI 中有 145 个无论你在请求后追加什么,都永远不会返回 JSON。假设相反的客户端,第一天就会纳闷为什么解析器在存储调用上正常、在图像调用上失败。

当你构建报文注册表时,这五个共用名称也是一个有用的健全性检查。它们是同一份文档中同一逻辑资源拥有两份字段列表的唯一条目,而这两份列表在字段覆盖上并不相同。在假定存在单一模型之前,请把两份都读一遍。

两个模板代表数十种

有两个条目根本不是报文,而是通配。JSON 事件配置报文及其能力对应报文以字面名称 XX 定义,备注说明 XX 会被具体事件类型替换。请求人形识别的配置时,返回的节点是 HumanRecognition;请求其能力时,节点是 HumanRecognitionCap。

这就是为什么 340 这个数字低估了协议。每个没有专用报文的事件类型都可以通过这一对报文配置,而事件类型列表远长于报文列表。当下面的索引把你送到通配条目时,要用的字段名就是骨架中打印的、替换类型后的那些,而首先应做能力查询的是事件触发能力,它返回设备支持哪些类型。

58 条没有 URI 调用的报文

共定义 339 条报文,其中 281 条在 URI 表中被提及。其余 58 条虽已定义,却从未被任何 URI 章节引用,这听起来像是不一致,而大多并非如此,因为这些报文根本不是请求体或响应体。

类型 数量 示例
报警与事件推送 10 九个 JSON 事件通知告警与 XML 报警事件信息
事件订阅 2 订阅事件请求及其响应
事件触发通知 2 触发通知及其能力类型
能力集 14 计划、MAC 过滤、无线服务、项目列表、隐藏信息
能力报文 8 录像、POS、jpeg 抓图、网络应用、用户
能力描述 7 这些能力报文的描述性伴随报文
配置与状态 15 默认参数、摄像机参数、IP 过滤地址、时间任务列表、本地与远程权限

前三行是报警路径。报警投递是设备向客户端发起的 POST,或客户端在事件通道上开启的订阅,因此没有任何请求 URI 能描述它。附录仍然定义了这些负载,这是正确的设计。归档中的 AI Open Platform 部分出于同样的原因也这样做。

另外四行才是需要了解的部分。44 条报文描述的能力集和能力摘要,附录 E 中没有任何 URI 会返回。它们之所以被定义,是因为其他产品线或后续固件会用到,而通用附录是为覆盖共用接口面而非某一台录像机而写的。如果你在找某个看似缺失的能力,报文很可能存在而 URI 可能没有,解决办法是读设备实际返回的能力报文,而不是照着定义去开发。

四处需要绕开的缺陷

该附录足以支撑开发,但它并不干净。有四处缺陷可以从 PDF 本身验证。

第一处是一张没有 URI 的表。Table C-123 是温度范围章节的能力表,它只打印了方法,而其他每张表都打印方法和 URI。其上方的章节标题仍然带 URI,所以信息没有丢失,但这张表无法单独使用。

第二处是混合格式的响应。日志存储扩展能力调用是一个不带格式标志的 XML 章节,其成功报文是 XML,但失败报文却是 JSON 状态报文。文档中其他所有 JSON 状态引用都位于 JSON 章节。在失败分支切换解析器的客户端,恰恰会在它已经在处理错误时出错。

第三处是两个表头中被截断的 URI。OSD 语言章节以完整路径作标题,而它下面的两张表打印的同一路径缺少最后一个字母。标题中的 URI 才是可用的那个。

第四处是重复定义。隐私遮挡区域报文在 F.266 和 F.281 各定义了一次,内容完全相同:只有一个 regionCoordinates 节点,且没有任何字段注释。读哪一个都无关紧要,但一套数到 340 却只对应 339 个名称的编号方案,会让你据此构建的任何索引产生混乱。

第五处缺陷不在这两个附录中,但影响你引用它们的方式:URI 附录按 C 系列给表编号,从 C-1 到 C-415,而同一文档的附录 C 是日志类型列表。编号本身自洽,却属于另一个附录。因此仅写 Table C-12 时,无法区分它是 ISAPI 方法表还是日志类型表。

怎么按任务查

下面的索引是按查阅而非通读编排的。四步即可从一项需求走到可用的请求。

第一步,找根路径。13 个根路径稳定且语义明确:/ISAPI/System 用于设备与通道配置,/ISAPI/ContentMgmt 用于存储、录像与检索,/ISAPI/Security 用于用户与证书,/ISAPI/Event 用于触发器与通知,/ISAPI/Image 用于图像与 OSD 设置,/ISAPI/PTZCtrl 用于云台运动,/ISAPI/MasterSlaveTracking 用于多机联动,/ISAPI/SDT 用于智能检索,/ISAPI/Streaming 用于取流代理,/ISAPI/Thermal 用于热成像通道,/ISAPI/AUXInfo 用于辅助信息,/ISAPI/Intelligent 用于屏蔽区域,/ISAPI/Traffic 用于交通场景。

第二,在附录 E 中查阅该 URI 的方法表。它给出查询参数、请求报文和响应报文,以及失败路径是否使用同一报文。

第三,在附录 F 中查阅该报文。检查它是否属于那 45 条没有注释的报文,因为那些不会告诉你哪些字段是必填的。

第四,询问设备。协议中每个能力集都有对应的能力 URI,能力报文是该设备支持什么的唯一权威说明。这一步不可省略,它也就是下一节。

索引答不了什么

附录 E 并未说明哪些型号支持哪些 URI。它是一套通用的录像机接口面,为整个产品线统一编写,其中没有任何一节附带型号列表。因此这 287 节描述的是固件能做什么,而不是你的设备实际做什么。

弥补这一差距的唯一可靠办法是询问设备,而协议提供了手段。设备能力调用返回顶层 XML 能力文档,其中列出该设备对外暴露的子系统。在其下,每个子系统都有自己的能力 URI,附录 F 为其中大多数提供了能力报文:340 个名称中有 114 个在某处带有 Cap 字样,其中 45 个在 JSON 一侧。在界面中提供某项功能之前先检查能力报文的构建,无需型号表就能与设备匹配。

这也回答了一个常见问题:某台录像机是否支持某项分析功能。AI Open Platform 路径对此有单独的一个开关,前面的指南中已有说明。通用路径没有单一开关,替代办法就是能力文档。

URI 索引

下面按根路径列出这 287 节,顺序与附录呈现的一致。每个块先给出该路径下的 URI 数量,然后按表头的原始打印形式逐一列出每个 URI,含格式标志,最后是该节定义的方法。接受多种方法的 URI 只出现一次,并列出全部方法。

/ISAPI/System

# 129 URIs
/ISAPI/System/accessDevice/associatedChannel?format=json                GET
/ISAPI/System/algorithmsVersion                                         GET
/ISAPI/System/autoMaintenance/capabilities?format=json                  GET
/ISAPI/System/autoMaintenance?format=json                               GET, PUT
/ISAPI/System/autoSwitch/capabilities?format=json                       GET
/ISAPI/System/autoSwitch?format=json                                    GET, PUT
/ISAPI/System/BVCorrect/channels/<ID>/capabilities?format=json          GET
/ISAPI/System/BVCorrect/channels/<ID>?format=json                       GET, PUT
/ISAPI/System/capabilities                                              GET
/ISAPI/System/channels/<ID>/vibrationDetection/capabilities?format=json GET
/ISAPI/System/channels/<ID>/vibrationDetection?format=json              GET, PUT
/ISAPI/System/deviceInfo                                                GET, PUT
/ISAPI/System/deviceInfo/capabilities                                   GET
/ISAPI/System/deviceInfo/characteristicCode?format=json                 GET
/ISAPI/System/DeviceLanguage                                            GET, PUT
/ISAPI/System/DeviceLanguage/capabilities                               GET
/ISAPI/System/diagnosedData/parameter                                   GET, PUT
/ISAPI/System/diagnosedData/parameter/capabilities                      GET
/ISAPI/System/diagnosedData/server?format=json                          GET, PUT
/ISAPI/System/diagnosedData/server/capabilities?format=json             GET
/ISAPI/System/diagnosedData/server/test?format=json                     POST
/ISAPI/System/externalDevice/capabilities                               GET
/ISAPI/System/factoryReset?mode=                                        PUT
/ISAPI/System/GPSCalibratation/channels/<ID>/capabilities?format=json   GET
/ISAPI/System/GPSCalibratation/channels/<ID>/points/<PID>?format=json   GET, PUT, DELETE
/ISAPI/System/GPSCalibratation/channels/<ID>/points?format=json         GET, PUT, DELETE
/ISAPI/System/GPSPTZCalibratation/channels/<ID>/calibratation?format=json
  PUT
/ISAPI/System/GPSVerification/channels/<ID>/display?format=json         GET, PUT
/ISAPI/System/GPSVerification/channels/<ID>/points/<ID>?format=json     GET, PUT, DELETE
/ISAPI/System/GPSVerification/channels/<ID>/points/capabilities?format=json
  GET
/ISAPI/System/GPSVerification/channels/<ID>/points/resultInfo?format=json
  GET
/ISAPI/System/GPSVerification/channels/<ID>/points?format=json          GET, PUT, DELETE, POST
/ISAPI/System/guideConfig/<guideEvent>/capabilities?format=json         GET
/ISAPI/System/guideConfig/<guideEvent>?format=json                      GET
/ISAPI/System/installationAngleCalibration/channels/<ID>/capabilities?format=json
  GET
/ISAPI/System/installationAngleCalibration/channels/<ID>?format=json    GET, PUT
/ISAPI/System/IOT/channelConfig?format=json                             GET, PUT
/ISAPI/System/IOT/channels/<ID>/<EventType>/capabilities?format=json    GET
/ISAPI/System/IOT/channels/<ID>/<EventType>?format=json                 GET, PUT
/ISAPI/System/IOT/channels/<ID>/alarmStatistics?format=json             GET
/ISAPI/System/IOT/channels/<ID>/all?format=json                         DELETE
/ISAPI/System/IOT/channels/<ID>/basicParam?format=json                  PUT
/ISAPI/System/IOT/channels/<ID>/OSD/capabilities?format=json            GET
/ISAPI/System/IOT/channels/<ID>/OSD?format=json                         GET, PUT
/ISAPI/System/IOT/channels/<ID>/status?format=json                      GET
/ISAPI/System/IOT/channels/<ID>?format=json                             GET, PUT, DELETE
/ISAPI/System/IOT/channels/status?format=json                           GET
/ISAPI/System/IOT/channels/status?format=json&deviceInductiveType=      GET
/ISAPI/System/IOT/channels?format=json                                  GET, POST
/ISAPI/System/IOT/channels?format=json&deviceInductiveType=             GET
/ISAPI/System/IOT/linkageChannels?format=json                           POST
/ISAPI/System/IOT/search?format=json                                    GET
/ISAPI/System/IOT/sourceCapabilities?format=json                        GET
/ISAPI/System/IOT/sourceSupport/capabilities?format=json                GET
/ISAPI/System/laserOpticalAxis/capabilities?format=json                 GET
/ISAPI/System/laserOpticalAxis/goto?format=json                         PUT
/ISAPI/System/laserOpticalAxis?format=json                              GET, PUT
/ISAPI/System/logServer                                                 GET, PUT
/ISAPI/System/logServer/capabilities                                    GET
/ISAPI/System/Network/capabilities                                      GET
/ISAPI/System/Network/Ehome/<ISUPID>                                    GET, PUT
/ISAPI/System/Network/Ehome/capabilities                                GET
/ISAPI/System/Network/EhomeList?centerID=                               GET
/ISAPI/System/Network/extension                                         GET, PUT
/ISAPI/System/Network/EZVIZ                                             GET, PUT
/ISAPI/System/Network/EZVIZ/capabilities                                GET
/ISAPI/System/Network/EZVIZ/QRCode                                      GET
/ISAPI/System/Network/EZVIZ/QRCode?format=json                          GET
/ISAPI/System/Network/EZVIZ/secretKey?format=json                       PUT
/ISAPI/System/Network/ftp/<ID>                                          GET, PUT
/ISAPI/System/Network/ftp/capabilities                                  GET
/ISAPI/System/Network/Integrate                                         GET, PUT
/ISAPI/System/Network/Integrate/capabilities                            GET
/ISAPI/System/Network/ipFilter                                          GET, PUT
/ISAPI/System/Network/ipFilter/capabilities                             GET
/ISAPI/System/Network/resourceStatistics?format=json                    GET
/ISAPI/System/Network/SNMP                                              GET, PUT
/ISAPI/System/Network/SNMP/advanced                                     GET, PUT
/ISAPI/System/Network/SNMP/advanced/trapReceivers                       GET, PUT, DELETE, POST
/ISAPI/System/Network/SNMP/advanced/trapReceivers/<ID>                  GET, PUT, DELETE
/ISAPI/System/Network/socketIP                                          GET
/ISAPI/System/Network/verificationCodeCheck                             POST
/ISAPI/System/Network/WirelessDial/Interfaces                           GET, PUT
/ISAPI/System/Network/WirelessDial/Interfaces/<ID>                      GET, PUT
/ISAPI/System/Network/WirelessDial/Interfaces/<ID>/dial                 GET, PUT
/ISAPI/System/Network/WirelessDial/Interfaces/<ID>/dial/capabilities    GET
/ISAPI/System/Network/WirelessDial/Interfaces/<ID>/keepAlive/capabilities?format=json
  GET
/ISAPI/System/Network/WirelessDial/Interfaces/<ID>/keepAlive/test?format=json
  POST
/ISAPI/System/Network/WirelessDial/Interfaces/<ID>/keepAlive?format=jsonPUT
/ISAPI/System/Network/WirelessDial/Interfaces/<ID>/schedule             GET, PUT
/ISAPI/System/Network/WirelessDial/Interfaces/<ID>/trafficMonitor/capabilities?format=json
  GET
/ISAPI/System/Network/WirelessDial/Interfaces/<ID>/trafficMonitor/status?format=json
  GET
/ISAPI/System/Network/WirelessDial/Interfaces/<ID>/trafficMonitor?format=json
  GET, PUT
/ISAPI/System/onlineUpgrade/deviceParameter?format=json                 GET, PUT
/ISAPI/System/onlineUpgrade/downloadPackage/pause?format=json           PUT
/ISAPI/System/onlineUpgrade/downloadPackage/resume?format=json          PUT
/ISAPI/System/onlineUpgrade/downloadPackage/status?format=json          GET
/ISAPI/System/onlineUpgrade/downloadPackage?format=json                 PUT, DELETE
/ISAPI/System/onlineUpgrade/status                                      GET
/ISAPI/System/onlineUpgrade/upgradeWithoutDownload?format=json          PUT
/ISAPI/System/Serial/authentication/capabilities?format=json            GET
/ISAPI/System/Serial/authentication?format=json                         GET, PUT
/ISAPI/System/Serial/capabilities                                       GET
/ISAPI/System/Software/channels/<ID>                                    GET, PUT
/ISAPI/System/Software/channels/<ID>/capabilities                       GET
/ISAPI/System/SSDFileSystem/capacity?format=json                        GET
/ISAPI/System/SSDFileSystem/format/status?format=json                   GET
/ISAPI/System/SSDFileSystem/format?format=json                          PUT
/ISAPI/System/SSDFileSystem/upgrade/status?format=json                  GET
/ISAPI/System/SSDFileSystem/upgrade?format=json                         GET, PUT
/ISAPI/System/status                                                    GET
/ISAPI/System/time/capabilities                                         GET
/ISAPI/System/TwoWayAudio/channels                                      GET
/ISAPI/System/TwoWayAudio/channels/<ID>                                 GET, PUT
/ISAPI/System/unitConfig/capabilities?format=json                       GET
/ISAPI/System/unitConfig?format=json                                    GET, PUT
/ISAPI/System/usb?format=json                                           GET, PUT
/ISAPI/System/usb/capabilities?format=json                              GET
/ISAPI/System/Video/capabilities                                        GET
/ISAPI/System/Video/inputs/channels/<ID>/privacyMask/regions/<ID>       GET, PUT, DELETE
/ISAPI/System/Video/inputs/channels/<ID>/VCAResource                    GET, PUT
/ISAPI/System/Video/inputs/channels/<ID>/VCAResource/capabilities       GET
/ISAPI/System/Video/inputs/channels/counting/collection/capabilities?format=json
  GET
/ISAPI/System/Video/inputs/channels/counting/collection?format=json     POST
/ISAPI/System/Video/inputs/channels/heatMap/collection/capabilities?format=json
  GET
/ISAPI/System/Video/inputs/channels/heatMap/collection?format=json      POST
/ISAPI/System/Video/inputs/OSDLanguage                                  GET, PUT
/ISAPI/System/workingstatus?format=json                                 GET
/ISAPI/System/zeroBiasCalibration/channels/<ID>?format=json             PUT

/ISAPI/ContentMgmt

# 42 URIs
/ISAPI/ContentMgmt/capabilities                                         GET
/ISAPI/ContentMgmt/download                                             POST
/ISAPI/ContentMgmt/download/capabilities                                GET
/ISAPI/ContentMgmt/InputProxy/channels/<ID>                             GET, PUT, DELETE
/ISAPI/ContentMgmt/logSearch?format=json                                POST
/ISAPI/ContentMgmt/record/control/locks/capabilities                    GET
/ISAPI/ContentMgmt/record/control/locks/name                            PUT
/ISAPI/ContentMgmt/record/control/remark/capabilities?format=json       GET
/ISAPI/ContentMgmt/record/control/remark?format=json                    PUT
/ISAPI/ContentMgmt/record/tracks                                        GET, PUT, POST
/ISAPI/ContentMgmt/record/tracks/<ID>                                   GET, PUT, DELETE
/ISAPI/ContentMgmt/record/tracks/<ID>/capabilities                      GET
/ISAPI/ContentMgmt/search                                               GET
/ISAPI/ContentMgmt/search/profile                                       GET
/ISAPI/ContentMgmt/storage                                              GET, PUT
/ISAPI/ContentMgmt/Storage/capabilities                                 GET
/ISAPI/ContentMgmt/Storage/dataReconstruction/progress?format=json      GET
/ISAPI/ContentMgmt/Storage/dataReconstruction?format=json               PUT
/ISAPI/ContentMgmt/Storage/extension                                    GET, PUT
/ISAPI/ContentMgmt/Storage/extension/capabilities                       GET
/ISAPI/ContentMgmt/Storage/hdd                                          GET
/ISAPI/ContentMgmt/Storage/hdd/<ID>                                     GET, PUT
/ISAPI/ContentMgmt/Storage/hdd/<ID>/encryptFormat?format=json           PUT
/ISAPI/ContentMgmt/Storage/hdd/<ID>/encryptVerfy?format=json            PUT
/ISAPI/ContentMgmt/Storage/hdd/<ID>/logProTest?format=json              PUT
/ISAPI/ContentMgmt/Storage/hdd/<ID>/syncStatus?format=json              GET
/ISAPI/ContentMgmt/Storage/hdd/capabilities                             GET
/ISAPI/ContentMgmt/storage/hdd/clearingSpace/capabilities?format=json   GET
/ISAPI/ContentMgmt/storage/hdd/clearingSpace?format=json                GET, PUT
/ISAPI/ContentMgmt/Storage/hdd/specifyHddFormat?format=json             PUT
/ISAPI/ContentMgmt/Storage/ssd                                          GET
/ISAPI/ContentMgmt/Storage/ssd/<ID>                                     GET
/ISAPI/ContentMgmt/Storage/ssd/<ID>/capabilities?format=json            GET
/ISAPI/ContentMgmt/Storage/ssd/<ID>/SMARTTest/start                     PUT
/ISAPI/ContentMgmt/Storage/ssd/<ID>/SMARTTest/status                    GET
/ISAPI/ContentMgmt/Storage/ssd/<ID>/upgrade/status?format=json          GET
/ISAPI/ContentMgmt/Storage/ssd/<ID>/upgrade?format=json                 POST
/ISAPI/ContentMgmt/StreamingProxy/channels/<ID>/capabilities            GET
/ISAPI/ContentMgmt/StreamingProxy/channels/<ID>/PictureByUrl/capabilities?format=json
  GET
/ISAPI/ContentMgmt/StreamingProxy/channels/<ID>/PictureByUrl?format=jsonPOST
/ISAPI/ContentMgmt/time/search/capabilities?format=json                 GET
/ISAPI/ContentMgmt/time/search?format=json                              POST

/ISAPI/Security

# 33 URIs
/ISAPI/Security/adminAccesses                                           GET, PUT
/ISAPI/Security/adminAccesses/capabilities                              GET
/ISAPI/Security/adminAccesses/<ID>                                      GET, PUT
/ISAPI/Security/capabilities                                            GET
/ISAPI/Security/CloudUserManage/users/<ID>?format=json                  GET, PUT, DELETE
/ISAPI/Security/CloudUserManage/users/byType?format=json                POST
/ISAPI/Security/CloudUserManage/users/capabilities?format=json          GET
/ISAPI/Security/CloudUserManage/users?format=json                       GET, POST
/ISAPI/Security/deviceCertificate/certificateRevocation/capabilities?format=json
  GET
/ISAPI/Security/deviceCertificate/certificateRevocation?format=json     GET, PUT
/ISAPI/Security/doubleVerification/users/<ID>?format=json               GET, PUT, DELETE
/ISAPI/Security/doubleVerification/users/capabilities?format=json       GET
/ISAPI/Security/doubleVerification/users?format=json                    GET, POST
/ISAPI/Security/doubleVerification/UsersPermission/<ID>?format=json     GET, PUT
/ISAPI/Security/doubleVerification/UsersPermission/capabilities?format=json
  GET
/ISAPI/Security/doubleVerification?format=json                          GET, PUT
/ISAPI/Security/email/parameter/capabilities?format=json                GET
/ISAPI/Security/email/parameter?format=json                             GET, PUT
/ISAPI/Security/email/qrCode?format=json                                GET
/ISAPI/Security/emailCertification?format=json                          PUT
/ISAPI/Security/extern/capabilities                                     GET
/ISAPI/Security/illegalLoginLock                                        GET, PUT
/ISAPI/Security/questionConfiguration                                   GET, PUT
/ISAPI/Security/RTSPCertificate                                         GET, PUT
/ISAPI/Security/RTSPCertificate/capabilities                            GET
/ISAPI/Security/UserPermission                                          GET, PUT
/ISAPI/Security/UserPermission/adminCap                                 GET
/ISAPI/Security/UserPermission/capabilities                             GET
/ISAPI/Security/UserPermission/<ID>                                     GET, PUT
/ISAPI/Security/users                                                   GET, PUT, DELETE, POST
/ISAPI/Security/users/<ID>                                              GET, PUT, DELETE
/ISAPI/Security/users/<ID>/capabilities                                 GET
/ISAPI/Security/webCertificate                                          GET, PUT

/ISAPI/Event

# 24 URIs
/ISAPI/Event/capabilities                                               GET
/ISAPI/Event/channels/<ID>/capabilities                                 GET
/ISAPI/Event/channels/capabilities                                      GET
/ISAPI/Event/IOT/channels/<ID>/capabilities?format=json                 GET
/ISAPI/Event/notification/subscribeEventCap                             GET
/ISAPI/Event/schedules/vibrationDetection/<ID>                          GET, PUT
/ISAPI/Event/schedules/<EventType>/<ID>                                 GET, PUT
/ISAPI/Event/triggers/hdBadBlock                                        GET, PUT
/ISAPI/Event/triggers/hdImpact                                          GET, PUT
/ISAPI/Event/triggers/highHDTemperature                                 GET, PUT
/ISAPI/Event/triggers/lowHDTemperature                                  GET, PUT
/ISAPI/Event/triggers/severeHDFailure                                   GET, PUT
/ISAPI/Event/triggers/<eventType>-<channelID>                           GET, PUT, DELETE
/ISAPI/Event/triggers/<eventType>-<channelID>/notifications             GET, PUT, DELETE
/ISAPI/Event/triggers/<ID>/zone/<ID>                                    GET, PUT, DELETE
/ISAPI/Event/triggers/notifications/AudioAlarm/capabilities?format=json GET
/ISAPI/Event/triggers/notifications/AudioAlarm?format=json              GET, PUT
/ISAPI/Event/triggers/notifications/AudioAlarm/customAudio?format=json  POST
/ISAPI/Event/triggers/notifications/AudioAlarm/customAudioInfo?format=json
  GET
/ISAPI/Event/triggers/notifications/AudioAlarm/customAudioTypeInfo/channels?format=json
  GET
/ISAPI/Event/triggers/notifications/whiteLightAlarm/capabilities?format=json
  GET
/ISAPI/Event/triggers/notifications/whiteLightAlarm?format=json         GET, PUT
/ISAPI/Event/triggersCap                                                GET
/ISAPI/Event/triggersCap/IOT                                            GET

/ISAPI/Image

# 20 URIs
/ISAPI/Image/channels/<ID>                                              GET, PUT
/ISAPI/Image/channels/<ID>/capabilities                                 GET
/ISAPI/Image/channels/<ID>/color                                        GET, PUT
/ISAPI/Image/channels/<ID>/color/capabilities                           GET
/ISAPI/Image/channels/<ID>/EPTZ                                         GET, PUT
/ISAPI/Image/channels/<ID>/EPTZ/mode/capabilities?format=json           GET
/ISAPI/Image/channels/<ID>/EPTZ/mode?format=json                        GET, PUT
/ISAPI/Image/channels/<ID>/focusConfiguration                           GET, PUT
/ISAPI/Image/channels/<ID>/focusConfiguration/capabilities              GET
/ISAPI/Image/channels/<ID>/focusConfiguration/status?format=json        GET
/ISAPI/Image/channels/<ID>/lensDistortionCorrection                     GET, PUT
/ISAPI/Image/channels/<ID>/lensDistortionCorrection/capabilities        GET
/ISAPI/Image/channels/<ID>/mountingScenario                             GET, PUT
/ISAPI/Image/channels/<ID>/mountingScenario/capabilities                GET
/ISAPI/Image/channels/<ID>/supplementLight                              GET, PUT
/ISAPI/Image/channels/<ID>/supplementLight/capabilities                 GET
/ISAPI/Image/channels/<ID>/targetEnhancement                            GET, PUT
/ISAPI/Image/channels/<ID>/targetEnhancement/capabilities               GET
/ISAPI/Image/channels/<ID>/tempRange                                    GET, PUT
/ISAPI/Image/channels/<ID>/tempRange/capabilities                       GET

/ISAPI/PTZCtrl

# 14 URIs
/ISAPI/PTZCtrl/channels/<ID>                                            GET, PUT
/ISAPI/PTZCtrl/channels/<ID>/auxcontrols/<ID>                           GET, PUT
/ISAPI/PTZCtrl/channels/<ID>/capabilities                               GET
/ISAPI/PTZCtrl/channels/<ID>/EagleFocusing/auto/capabilities?format=jsonGET
/ISAPI/PTZCtrl/channels/<ID>/EagleFocusing/auto?format=json             GET
/ISAPI/PTZCtrl/channels/<ID>/EagleFocusing/capabilities                 GET
/ISAPI/PTZCtrl/channels/<ID>/GPS?format=json                            PUT
/ISAPI/PTZCtrl/channels/<ID>/gyroVerify/capabilities?format=json        GET
/ISAPI/PTZCtrl/channels/<ID>/gyroVerify?format=json                     PUT
/ISAPI/PTZCtrl/channels/<ID>/maxelevation                               GET, PUT
/ISAPI/PTZCtrl/channels/<ID>/maxelevation/capabilities                  GET
/ISAPI/PTZCtrl/channels/<ID>/moveAutoTracking?format=json               GET, PUT
/ISAPI/PTZCtrl/channels/<ID>/PTZOSDDisplay                              GET, PUT
/ISAPI/PTZCtrl/channels/<ID>/zoomFocus                                  GET, PUT

/ISAPI/MasterSlaveTracking

# 9 URIs
/ISAPI/MasterSlaveTracking/capabilities                                 GET
/ISAPI/MasterSlaveTracking/channels/<ID>/slaveCamera/<ID>               GET, PUT
/ISAPI/MasterSlaveTracking/channels/<ID>/slaveCamera/<ID>/tracking      GET, PUT
/ISAPI/MasterSlaveTracking/channels/<ID>/slaveCamera/<ID>/trackingRatio PUT
/ISAPI/MasterSlaveTracking/channels/<ID>/slaveCamera/capabilities       GET
/ISAPI/MasterSlaveTracking/channels/<ID>/slaveCameraStatus              GET
/ISAPI/MasterSlaveTracking/channels/<ID>/tracking/capabilities          GET
/ISAPI/MasterSlaveTracking/linkedTracking/capabilities?format=json      GET
/ISAPI/MasterSlaveTracking/linkedTracking?format=json                   GET, PUT

/ISAPI/SDT

# 5 URIs
/ISAPI/SDT/Management/capabilities?format=json                          GET
/ISAPI/SDT/Management/EventSearch?format=json                           POST
/ISAPI/SDT/Management/EventSearch/capabilities?format=json              GET
/ISAPI/SDT/Management/IntelligentSearch/capabilities?format=json        GET
/ISAPI/SDT/Management/IntelligentSearch?format=json                     POST

/ISAPI/Streaming

# 4 URIs
/ISAPI/Streaming/channels/<ID>                                          GET, PUT, DELETE
/ISAPI/Streaming/channels/<ID>/capabilities                             GET
/ISAPI/Streaming/channels/<ID>/smartOverlap/capabilities?format=json    GET
/ISAPI/Streaming/channels/<ID>/smartOverlap?format=json                 GET, PUT

/ISAPI/Thermal

# 3 URIs
/ISAPI/Thermal/capabilities                                             GET
/ISAPI/Thermal/temperature/collection/capabilities?format=json          GET
/ISAPI/Thermal/temperature/collection?format=json                       GET

/ISAPI/AUXInfo

# 2 URIs
/ISAPI/AUXInfo/attributes/Channels                                      GET
/ISAPI/AUXInfo/attributes/Channels/<ID>                                 GET

/ISAPI/Intelligent

# 1 URIs
/ISAPI/Intelligent/channels/<ID>/Shield/EventType                       GET, PUT

/ISAPI/Traffic

# 1 URIs
/ISAPI/Traffic/ContentMgmt/InputProxy/channels/<ID>/ocrScene/capabilities
  GET

本指南没有覆盖的内容

按产品线划分的端点仍然无法获取。人脸比对、周界防护、结构化与 AcuSearch 各有自己的 ISAPI 文档,而该文档按许可协议发布,本站尚未签署。上文的 287 个 URI 是通用接口面,不能替代按产品线划分的端点,需要这些产品线报警与搜索调用的项目仍然需要那份许可文档。

该附录也没有说明同一 URI 在不同固件版本间的行为。本索引所依据的版本是 SDK 归档中随附的那一版,而 340 个报文模式在各版本间已有变化。在把解析器定型之前,请核对你要部署的那个版本的报文列表。