批量获取设备镜像

POST /api/Shadows/devices/shadows

请求参数

参数名 类型 必填 描述 限制
deviceList JSONArray 设备ID列表,需要传入jsonarray类型

请求样例

POST /api/Shadows/devices/shadows HTTP/1.1
Host: zl.glodon.com
Authorization: Bearer xxx-xxxx-xxx
Cache-Control: no-cache

["146b3c23-55c7-4f24-bcb1-2c46cbae8370"]

响应样例

{
  "returnCode": 0,
  "result": [
    {
      "createdBy": "admin@glodon.fei",
      "createdTime": 1573011112328,
      "tenantId": "b0d9addd-4221-4a7e-a49f-4615891d533f",
      "id": "146b3c23-55c7-4f24-bcb1-2c46cbae8370",
      "status": {
        "deviceId": "146b3c23-55c7-4f24-bcb1-2c46cbae8370",
        "status": "active"
      },
      "attributeMap": {
        "atmosphere": {
          "name": "气压",
          "code": "atmosphere",
          "dataType": "Float",
          "channel": "m",
          "value": 1,
          "timestamp": 1573803579671
        },
        "temp": {
          "name": "温度",
          "code": "temp",
          "dataType": "Float",
          "channel": "m",
          "value": 2,
          "timestamp": 1573803579671
        },
        "windPower": {
          "name": "风力",
          "code": "windPower",
          "dataType": "String",
          "channel": "m",
          "value": "3",
          "timestamp": 1573803579671
        },
        "pm10": {
          "name": "PM10",
          "code": "pm10",
          "dataType": "Float",
          "channel": "m",
          "value": 11,
          "timestamp": 1573011142915
        },
        "condText": {
          "name": "天气状况描述",
          "code": "condText",
          "dataType": "String",
          "channel": "m",
          "value": "11",
          "timestamp": 1573011142915
        }
      },
      "metadataMap": {},
      "deleted": false
    }
  ]
}