Skip to main content
GET
/
api
/
device
/
get
查询设备
curl --request GET \
  --url https://api.example.com/api/device/get \
  --header 'Authentication: <authentication>'
{
  "code": 200,
  "message": "操作成功",
  "result": {
    "id": "bfe679893c12411e9f220eba290da404",
    "sn": "0638633006916920",
    "name": "zliu的测试设备",
    "deptId": "78e2374b-8ca0-48eb-9ad9-2546b79bacdb",
    "onlineStatus": "online",
    "type": "device",
    "productModel": "",
    "gatewaySn": "wh_gw001",
    "alarmStatus": true,
    "location": {
      "lat": 34.152405,
      "lng": 87.202442,
      "address": "西藏自治区那曲市双湖县措折强玛乡云霄湖"
    },
    "view": null,
    "createTime": "2023-05-08 13:57:18",
    "updateTime": "2023-05-17 11:34:48",
    "lastLiveTime": "2023-05-16 19:01:23",
    "registerTime": null,
    "logoutTime": "2023-05-12 16:54:51",
    "deptName": "hd",
    "svcInfo": null
  },
  "success": true,
  "timestamp": 1684823798374
}

Headers

Authentication
string
required

Query Parameters

idSn
string
required

Response

200 - application/json

The response is of type object.