You need to enable JavaScript to run this app.
导航

查询视图设备列表

最近更新时间2022.11.01 17:47:37

首次发布时间2022.11.01 17:47:37

查询已添加的视图设备列表。

请求方式

使用 GET 方式发起请求。

请求参数

下表仅列出了接口特有的请求参数和部分公共参数。完整的公共参数列表,参考「公共参数」。

字段
位置
类型
必填
说明

Action

Query

String

公共参数,OpenAPI 接口名称

ListStructuredViews

Version

Query

String

公共参数,OpenAPI 接口版本

2021-01-01

ViewName

Query

String

筛选条件,视图设备名称

支持模糊搜索

ViewSpaceNameQueryString筛选条件,视图空间名称支持模糊搜索

Type

Query

String

筛选条件,视图接入类型

可选枚举值:

  • 采集设备

  • 采集系统

  • 视图库

  • 应用平台

  • 分析设备

返回结果

返回参数说明

通用返回参数,请参考 ResponseMetadata 结构体说明

Result 字段包含以下参数:

字段
类型
说明
ViewListArray of objects查询到的视图设备列表,参考以下 List<ViewList> 数据结构说明

List<ViewList> 数据结构说明

字段
类型
说明
IDString视图接入 ID
ViewNameString视图接入名称

ViewType

String

视图接入类型:

  • 采集设备

  • 采集系统

  • 视图库

  • 应用平台

  • 分析设备

ViewCodeString视图接入编码
ViewSpaceIDString视图空间 ID
ViewSpaceNameString视图空间名称
ViewIPString视图视图库 IP
ViewPortInt接入端口号
ProtocolString接入协议
UsernameString视图库用户名
PasswordString密码
DescriptionString描述
LocationString设备经纬度(经度,纬度)
AdministrativeIDString安装地点行政区划代码
CreateTimestampInt创建时间,Unix 时间戳,单位:秒
UpdateTimestampInt更新时间,Unix 时间戳,单位:秒

Status

String

状态:

  • 未注册

  • 在线

  • 离线

示例

请求示例

GET https://open.volcengineapi.com?Action=ListStructuredViews
&Version=2021-01-01
&ViewName=delay
&<公共请求参数>

返回示例

{
    "ResponseMetadata": {
        "RequestId": "202210211535210101742491480305D847",
        "Action": "ListStructuredViews",
        "Version": "2021-01-01",
        "Service": "aiotvideo",
        "Region": "cn-north-1"
    },
    "Result": {
        "PageNumber": 1,
        "PageSize": 20,
        "TotalCount": 2,
        "ViewList": [
            {
                "ID": "v_52g7sjtk5oxxxxxx",
                "ViewName": "sectest'and(select+1)>0waitfor/**/delay'0:0:2",
                "ViewType": "采集设备",
                "ViewCode": "49114751421199xxxxxx",
                "ViewSpaceID": "vs_1ck3kvr4hpxxxxxx",
                "ViewSpaceName": "sec1'/**/and/**/DBMS_PIPE.RECEIVE_MESSAGE('u',2)='u",
                "ViewIP": "123.xxx.xxx.xxx",
                "ViewPort": 20020,
                "Protocol": "GA1400",
                "Username": "test",
                "Password": "test",
                "Description": "test",
                "Location": "116,29",
                "AdministrativeID": "123123",
                "CreateTimestamp": 1664457914,
                "UpdateTimestamp": 1664457917,
                "Status": "离线"
            },
            {
                "ID": "v_joai3o7if3xxxxxx",
                "ViewName": "sectest'and(select+1)>0waitfor/**/delay'0:0:0",
                "ViewType": "采集设备",
                "ViewCode": "49114751421199xxxxxx",
                "ViewSpaceID": "vs_1ck3kvr4hpxxxxxx",
                "ViewSpaceName": "sec1'/**/and/**/DBMS_PIPE.RECEIVE_MESSAGE('u',2)='u",
                "ViewIP": "123.xxx.xxx.xxx",
                "ViewPort": 20020,
                "Protocol": "GA1400",
                "Username": "test",
                "Password": "test",
                "Description": "test",
                "Location": "116,29",
                "AdministrativeID": "123123",
                "CreateTimestamp": 1664457913,
                "UpdateTimestamp": 1664457917,
                "Status": "离线"
            }
        ]
    }
}