文档中心 > API类目 > 智慧园区API

alibaba.campus.guard.controller.configsync (门禁控制器配置项同步)

门禁控制器配置项同步

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
controller_query ControllerQuery 可选 查询参数类
  • └ sn_no
  • String
  • 必须
  • 000-402002-01:00:90:90:08:09
  • 序列号

响应参数

名称 类型 示例值 描述
result PojoResult 结果对象
  • └ success
  • Boolean
  • true
  • 业务成功标识
  • └ error_code
  • String
  • 200
  • 错误code
  • content
  • ControllerDTO
  • xxx
  • 内容
  • └ sn_no
  • String
  • 000-402001-00:00:09:98:98:78
  • 序列号
  • └ device_name
  • String
  • 测试
  • 控制器名称
  • └ campus_name
  • String
  • 西溪园区
  • 园区名称
  • config_list
  • GuardConfigDTO []
  • guardConfigList
  • guardConfigList
  • guard
  • Guard
  • guard
  • └ id
  • Number
  • 12
  • 门禁点id
  • └ name
  • String
  • 测试
  • 门禁点名称
  • input_list
  • SubDeviceDTO []
  • 设备
  • └ kind
  • String
  • pad
  • 设备子类
  • └ port_type
  • String
  • input
  • 电平量信号输入
  • └ port
  • byte
  • 1
  • 端口号
  • └ sub_device_name
  • String
  • 测试
  • 子设备名称
  • └ direction
  • String
  • out
  • └ sub_device_id
  • String
  • xxx
  • xxx
  • output_list
  • SubDeviceDTO []
  • 子设备
  • └ kind
  • String
  • pad
  • 设备子类
  • └ port_type
  • String
  • input
  • 电平量信号输入
  • └ port
  • byte
  • 1
  • 端口号
  • └ sub_device_name
  • String
  • 测试
  • 子设备名称
  • └ direction
  • String
  • in
  • └ sub_device_id
  • String
  • xxx
  • xxx
  • └ open_plan_id
  • Number
  • 1240
  • 常开时间计划
  • └ block_plan_id
  • Number
  • 12
  • 封阻时间计划
  • └ device_id
  • String
  • xxx
  • 控制器设备id
  • └ error_msg
  • String
  • 参数异常
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaCampusGuardControllerConfigsyncRequest req = new AlibabaCampusGuardControllerConfigsyncRequest();
AlibabaCampusGuardControllerConfigsyncRequest.ControllerQuery obj1 = new AlibabaCampusGuardControllerConfigsyncRequest.ControllerQuery();
obj1.setSnNo("000-402002-01:00:90:90:08:09");
req.setControllerQuery(obj1);
AlibabaCampusGuardControllerConfigsyncResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_campus_guard_controller_configsync_response>
    <result>
        <success>true</success>
        <error_code>200</error_code>
        <content>
            <sn_no>000-402001-00:00:09:98:98:78</sn_no>
            <device_name>测试</device_name>
            <campus_name>西溪园区</campus_name>
            <config_list>
                <guard_config_d_t_o>
                    <guard>
                        <id>12</id>
                        <name>测试</name>
                    </guard>
                    <input_list>
                        <sub_device_d_t_o>
                            <kind>pad</kind>
                            <port_type>input</port_type>
                            <port>1</port>
                            <sub_device_name>测试</sub_device_name>
                            <direction>out</direction>
                            <sub_device_id>xxx</sub_device_id>
                        </sub_device_d_t_o>
                    </input_list>
                    <output_list>
                        <sub_device_d_t_o>
                            <kind>pad</kind>
                            <port_type>input</port_type>
                            <port>1</port>
                            <sub_device_name>测试</sub_device_name>
                            <direction>in</direction>
                            <sub_device_id>xxx</sub_device_id>
                        </sub_device_d_t_o>
                    </output_list>
                    <open_plan_id>1240</open_plan_id>
                    <block_plan_id>12</block_plan_id>
                </guard_config_d_t_o>
            </config_list>
            <device_id>xxx</device_id>
        </content>
        <error_msg>参数异常</error_msg>
    </result>
</alibaba_campus_guard_controller_configsync_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

返回
顶部