3.11 获取报警信息列表

1. 请求地址:

base_url/openapi/v3/openapi/device/cmd/devices

2. 请求方式:

post

3. 请求参数:

参数 必选 类型 说明 示例
command 是 String 控制协议(JSON字符串)
req_id 是 String 请求id,建议唯一规则
devices_udid 是 String[] 设备devices_udid 集合

示例数据:

{
    "command":{
        "switch_status":1
    },
    "req_id":"0e55edde-5de2-469f-922d-05ac7fb887d0",
    "devices_udid":[
        "设备udid",
        "..."
    ]
}

4. 响应参数:

参数 必选 类型 说明 示例
req_id 是 String 与请求的req_id一致
status 是 Int 200全部成功, 201部分成功,400全部失败
msg 是 String 携带消息
data 是 对象数组[] 详情见以下data解释

data解释

参数 必选 类型 说明 示例
devices_udid 是 String 设备devices_udid
status 是 Int 200全部成功, 其他均为失败
msg 是 String 携带消息

5. 返回示例:

{
    "req_id": "dadadadad",
    "status": 200,
    "data": [
        {
            "devices_udid": "ade2ac8ae369a76aa99a0558935e24cf",
            "status": 200,
            "msg": "success"
        },
        {
            "devices_udid": "00f75a525645ad5e3a24300040b353dc",
            "status": 200,
            "msg": "success"
        },
        {
            "devices_udid": "61150d29f4dd35536c9e1481f26ba12e",
            "status": 200,
            "msg": "success"
        }
    ],
    "msg": "success full"
}