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

alibaba.rex.skyeye.core.setup.all.device.get (查询门店IPC和NVR设备)

查询门店IPC和NVR设备

公共参数

请求参数

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

响应参数

名称 类型 示例值 描述
data DeviceInfoResponse 设备信息
  • ipc_list
  • IpcInfoDTO []
  • ""
  • ipc信息
  • └ tenant_id
  • Number
  • 10000001
  • 租户编码
  • └ shop_code
  • String
  • 9998
  • 门店编码
  • └ device_code
  • String
  • ipc_001
  • 摄像头编码
  • └ device_name
  • String
  • 门口
  • 摄像头名称
  • └ device_type
  • String
  • stream-ipc
  • 设备类型
  • └ state
  • Number
  • 1
  • 0:离线,1:在线
  • └ sn
  • String
  • xxxx
  • SN
  • └ ip
  • String
  • 1.2.3.4
  • IP地址
  • └ user_name
  • String
  • admin
  • 用户名
  • └ password
  • String
  • mock
  • 密码
  • └ channel
  • Number
  • 1
  • 通道号
  • └ direct_connect
  • Boolean
  • true
  • 直连
  • extend
  • Json
  • “”
  • 扩展字段
  • └ bound_nvr_id
  • String
  • xxxx001
  • 绑定的NVR
  • └ onvif_password
  • String
  • admin
  • onvif密码
  • └ video_encoding
  • String
  • H264
  • 编码格式
  • └ onvif_username
  • String
  • admin
  • onvif用户名
  • └ http_forward_port
  • String
  • xx
  • http转发端口
  • └ rtsp_forward_port
  • String
  • xx
  • rtsp转发端口
  • └ pos_device_id
  • String
  • xx
  • pos设备id
  • └ ipc_port
  • String
  • xx
  • 摄像头直播端口
  • └ onvif_port
  • String
  • xx
  • 摄像头onvif端口
  • └ audio_encoding
  • String
  • xx
  • 音频编码
  • └ real_rtsp
  • String
  • rtsp:xxx@sss:sdsd
  • 直播流地址
  • nvr_list
  • NvrInfoDTO []
  • ""
  • nvr信息
  • └ tenant_id
  • Number
  • 10000001
  • 租户id
  • └ shop_code
  • String
  • 9998
  • 门店编码
  • └ device_code
  • String
  • ipc_001
  • 设备编码
  • └ device_type
  • String
  • stream-nvr
  • 设备类型
  • └ ip
  • String
  • 1.1.1.1
  • IP地址
  • └ user_name
  • String
  • admin
  • 用户名
  • └ password
  • String
  • psss
  • 密码
  • └ manufacture
  • String
  • xx
  • 厂商
  • └ model
  • String
  • xx
  • 型号
  • └ state
  • Number
  • 1
  • 状态
  • extend
  • Json
  • ""
  • 扩展字段
  • └ onvif_password
  • String
  • pass
  • 密码
  • └ onvif_username
  • String
  • admin
  • 账号
iot_success Boolean true 是否成功
msg_info String “” 错误信息
msg_code String “” 错误编码

请求示例

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

响应示例

  • XML示例
  • JSON示例
<alibaba_rex_skyeye_core_setup_all_device_get_response>
    <data>
        <ipc_list>
            <ipc_info_d_t_o>
                <tenant_id>10000001</tenant_id>
                <shop_code>9998</shop_code>
                <device_code>ipc_001</device_code>
                <device_name>门口</device_name>
                <device_type>stream-ipc</device_type>
                <state>1</state>
                <sn>xxxx</sn>
                <ip>1.2.3.4</ip>
                <user_name>admin</user_name>
                <password>mock</password>
                <channel>1</channel>
                <direct_connect>true</direct_connect>
                <extend>
                    <bound_nvr_id>xxxx001</bound_nvr_id>
                    <onvif_password>admin</onvif_password>
                    <video_encoding>H264</video_encoding>
                    <onvif_username>admin</onvif_username>
                    <http_forward_port>xx</http_forward_port>
                    <rtsp_forward_port>xx</rtsp_forward_port>
                    <pos_device_id>xx</pos_device_id>
                    <ipc_port>xx</ipc_port>
                    <onvif_port>xx</onvif_port>
                    <audio_encoding>xx</audio_encoding>
                </extend>
                <real_rtsp>rtsp:xxx@sss:sdsd</real_rtsp>
            </ipc_info_d_t_o>
        </ipc_list>
        <nvr_list>
            <nvr_info_d_t_o>
                <tenant_id>10000001</tenant_id>
                <shop_code>9998</shop_code>
                <device_code>ipc_001</device_code>
                <device_type>stream-nvr</device_type>
                <ip>1.1.1.1</ip>
                <user_name>admin</user_name>
                <password>psss</password>
                <manufacture>xx</manufacture>
                <model>xx</model>
                <state>1</state>
                <extend>
                    <onvif_password>pass</onvif_password>
                    <onvif_username>admin</onvif_username>
                </extend>
            </nvr_info_d_t_o>
        </nvr_list>
    </data>
    <iot_success>true</iot_success>
    <msg_info>“”</msg_info>
    <msg_code>“”</msg_code>
</alibaba_rex_skyeye_core_setup_all_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

返回
顶部