查询设备
GET
/api/device/get
请求参数
Query 参数
idSn
string
必需
示例值:
device000001
Header 参数
Authentication
string
可选
默认值:
{{Authentication}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'ssiot.cc/api/device/get?idSn=device000001' \
--header 'Authentication: {{Authentication}}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{
"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
}
修改于 2025-04-26 01:54:17