文档中心 > API类目 > 五道口API

alibaba.rex.skyeye.core.input.setup.device.get (查询agent子设备)

查询agent子设备

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
shop_code String 必须 9998 门店编码
access_key String 必须 39c79de4467c4ec183151646f12ef5fc key
access_sign String 必须 f84d97986f9184fe45426bd901ce7db50cde724a71dd83d65a5375d558097a99 sign
time Number 必须 1641866023443 timestamp

响应参数

名称 类型 示例值 描述
data NvrDeviceDTO [] 数据
  • └ shop_code
  • String
  • 9998
  • 门店编码
  • └ device_type
  • String
  • stream-nvr
  • 设备类型
  • └ password
  • String
  • hmnb12345WDK
  • 密码
  • └ ip
  • String
  • 192.168.1.108
  • ip地址
  • └ tenant_id
  • Number
  • 10000001
  • 租户编码
  • └ device_code
  • String
  • N-10000001-9998-1
  • 设备编码
  • └ user_name
  • String
  • admin
  • 用户名
  • ipc_list
  • IpcDeviceDTO []
  • 摄像头清单
  • └ shop_code
  • String
  • 9998
  • 门店编码
  • └ device_type
  • String
  • stream-ipc
  • 设备类型
  • └ password
  • String
  • mock
  • 密码
  • └ ip
  • String
  • 1.1.1.1
  • ip地址
  • └ tenant_id
  • Number
  • 10000001
  • 租户编码
  • └ channel
  • Number
  • 2
  • 通道号
  • └ device_code
  • String
  • I-10000001-9998-2
  • 设备名称
  • └ sn
  • String
  • x
  • 序列号
  • └ user_name
  • String
  • admin
  • 用户名
  • └ real_rtsp
  • String
  • ""
  • 实时流地址
  • └ his_rtsp
  • String
  • ""
  • 历史流地址
  • └ direct_connect
  • Boolean
  • true
  • 是否直连
  • extend
  • Extend
  • 扩展内容
  • └ cro_camera
  • Boolean
  • true
  • 是否是cro标记的摄像头
  • └ onvif_username
  • String
  • ""
  • onvif的账号
  • └ onvif_password
  • String
  • ""
  • onvif的密码
  • extend
  • Extend
  • 扩展内容
  • └ onvif_username
  • String
  • ""
  • onvif的账号
  • └ onvif_password
  • String
  • ""
  • onvif的密码
msg_code String “” 错误编码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaRexSkyeyeCoreInputSetupDeviceGetRequest req = new AlibabaRexSkyeyeCoreInputSetupDeviceGetRequest();
req.setShopCode("9998");
req.setAccessKey("39c79de4467c4ec183151646f12ef5fc");
req.setAccessSign("f84d97986f9184fe45426bd901ce7db50cde724a71dd83d65a5375d558097a99");
req.setTime(1641866023443L);
AlibabaRexSkyeyeCoreInputSetupDeviceGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_rex_skyeye_core_input_setup_device_get_response>
    <data>
        <nvr_device_d_t_o>
            <shop_code>9998</shop_code>
            <device_type>stream-nvr</device_type>
            <password>hmnb12345WDK</password>
            <ip>192.168.1.108</ip>
            <tenant_id>10000001</tenant_id>
            <device_code>N-10000001-9998-1</device_code>
            <user_name>admin</user_name>
            <ipc_list>
                <ipc_device_d_t_o>
                    <shop_code>9998</shop_code>
                    <device_type>stream-ipc</device_type>
                    <password>mock</password>
                    <ip>1.1.1.1</ip>
                    <tenant_id>10000001</tenant_id>
                    <channel>2</channel>
                    <device_code>I-10000001-9998-2</device_code>
                    <sn>x</sn>
                    <user_name>admin</user_name>
                    <real_rtsp>&quot;&quot;</real_rtsp>
                    <his_rtsp>&quot;&quot;</his_rtsp>
                    <direct_connect>true</direct_connect>
                    <extend>
                        <cro_camera>true</cro_camera>
                        <onvif_username>&quot;&quot;</onvif_username>
                        <onvif_password>&quot;&quot;</onvif_password>
                    </extend>
                </ipc_device_d_t_o>
            </ipc_list>
            <extend>
                <onvif_username>&quot;&quot;</onvif_username>
                <onvif_password>&quot;&quot;</onvif_password>
            </extend>
        </nvr_device_d_t_o>
    </data>
    <msg_code>“”</msg_code>
</alibaba_rex_skyeye_core_input_setup_device_get_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部