- things
- device
- auth
- auth5
- gateway
- info
- interact
- msg
- profile
- module
- schema
- edge
- group
- group
- ota
- product
- protocol
- rule
- schema
- slot
- user
获取设备列表
POST
/api/v1/things/device/info/index
things/device/infothingsDeviceInfo
请求参数
Header 参数
Ithings-Project-Id
string
可选
默认值:
{{Ithings-Project-Id}}
Ithings-Token
string
可选
默认值:
{{iThings-token}}
app-code
string
可选
默认值:
{{appCode}}
device-id
string
可选
Body 参数application/json
page
object (PageInfo)
可选
page
integer <int64>
页码
size
integer <int64>
每页大小
orders
array[object (OrderBy) {2}]
排序
tenantCode
string
可选
productID
string
可选
productIDs
array[string]
可选
deviceName
string
可选
deviceNames
array[string]
可选
expTime
object (CompareInt64)
可选
cmpType
string
必需
"=":相等 "!=":不相等 ">":大于">=":大于等于"<":小于"<=":小于等于 "like":模糊查询
value
string
必需
ratedPower
object (CompareInt64)
可选
rssi
object (CompareInt64)
可选
deviceAlias
string
可选
deviceTypes
array[integer <int64>]
可选
position
object (Point)
可选
longitude
number <double>
经度
<= 180
latitude
number <double>
纬度
<= 90
range
integer <int64>
可选
tags
array[object (Tag) {2}]
可选
key
string
必需
value
string
必需
withProperties
array[string]
可选
withProfiles
array[string]
可选
areaIDs
array[string]
项目区域ids
areaIDPath
string
区域路径过滤
isOnline
integer <int64>
可选
<= 2
productCategoryID
integer <int64>
可选
productCategoryIDs
array[integer <int64>]
可选
withShared
integer <int64>
可选
<= 2
withCollect
integer <int64>
可选
<= 2
versions
array[string]
可选
notVersion
string
可选
gateway
object (DeviceCore)
可选
productID
string
产品ID
productName
string
可选
deviceName
string
设备名称
groupID
string
可选
notGroupID
string
可选
parentGroupID
string
可选
groupPurpose
string
可选
groupName
string
可选
notAreaID
string
可选
devices
array[object (DeviceCore) {3}]
可选
productID
string
产品ID
productName
string
可选
deviceName
string
设备名称
status
integer <int64>
可选
statuses
array[integer <int64>]
可选
withOwner
boolean
可选
withGateway
boolean
可选
hasOwner
integer <int64>
可选
userID
string
可选
netType
integer <int64>
可选
<= 8
withArea
boolean
同时返回区域信息
isOnlyCore
boolean
只返回核心信息
iccid
string
SIM卡卡号
withGroups
array[string]
可选
示例
{
"page": {
"page": 0,
"size": 0,
"orders": [
{
"field": "string",
"sort": 0
}
]
},
"tenantCode": "string",
"productID": "string",
"productIDs": [
"string"
],
"deviceName": "string",
"deviceNames": [
"string"
],
"expTime": {
"cmpType": "string",
"value": "string"
},
"ratedPower": {
"cmpType": "string",
"value": "string"
},
"rssi": {
"cmpType": "string",
"value": "string"
},
"deviceAlias": "string",
"deviceTypes": [
0
],
"position": {
"longitude": 180,
"latitude": 90
},
"range": 0,
"tags": [
{
"key": "string",
"value": "string"
}
],
"withProperties": [
"string"
],
"withProfiles": [
"string"
],
"areaIDs": [
"string"
],
"areaIDPath": "string",
"isOnline": 2,
"productCategoryID": 0,
"productCategoryIDs": [
0
],
"withShared": 2,
"withCollect": 2,
"versions": [
"string"
],
"notVersion": "string",
"gateway": {
"productID": "string",
"productName": "string",
"deviceName": "string"
},
"groupID": "string",
"notGroupID": "string",
"parentGroupID": "string",
"groupPurpose": "string",
"groupName": "string",
"notAreaID": "string",
"devices": [
{
"productID": "string",
"productName": "string",
"deviceName": "string"
}
],
"status": 0,
"statuses": [
0
],
"withOwner": true,
"withGateway": true,
"hasOwner": 0,
"userID": "string",
"netType": 8,
"withArea": true,
"isOnlyCore": true,
"iccid": "string",
"withGroups": [
"string"
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v1/things/device/info/index' \
--header 'Ithings-Project-Id: {{Ithings-Project-Id}}' \
--header 'Ithings-Token: {{iThings-token}}' \
--header 'app-code: {{appCode}}' \
--header 'device-id;' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
code
integer
返回code
默认值:
200
msg
string
返回的消息
data
object (DeviceInfoIndexResp)
可选
list
array[object (DeviceInfo) {53}]
设备信息
page
integer <int64>
页码
pageSize
integer <int64>
每页大小
total
integer <int64>
可选
示例
{
"code": "200",
"msg": "string",
"data": {
"list": [
{
"id": 0,
"tenantCode": "string",
"productID": "string",
"projectID": "string",
"productName": "string",
"deviceType": 0,
"productImg": "string",
"areaID": "string",
"deviceName": "string",
"deviceAlias": "string",
"secret": "string",
"cert": "string",
"imei": "string",
"mac": "string",
"categoryID": 0,
"version": "string",
"hardInfo": "string",
"softInfo": "string",
"mobileOperator": 10,
"phone": "string",
"iccid": "string",
"position": {
"longitude": 180,
"latitude": 90
},
"address": "string",
"adcode": "string",
"tags": [
{
"key": "string",
"value": "string"
}
],
"schemaAlias": {},
"isOnline": 2,
"firstLogin": "string",
"firstBind": "string",
"lastBind": "string",
"lastLogin": "string",
"expTime": "string",
"logLevel": 5,
"rssi": 0,
"createdTime": "string",
"status": 0,
"isEnable": 0,
"withProperties": {},
"protocolConf": [
{
"key": "string",
"value": "string"
}
],
"subProtocolConf": [
{
"key": "string",
"value": "string"
}
],
"profiles": {},
"owner": {
"userID": "string",
"userName": "string",
"email": "string",
"phone": "string",
"lastIP": "string",
"regIP": "string",
"nickName": "string",
"headImg": "string",
"createdTime": "string"
},
"ratedPower": 0,
"netType": 10,
"needConfirmVersion": "string",
"userID": "string",
"lastIp": "string",
"sort": 0,
"desc": "string",
"distributor": {
"id": 0,
"idPath": "string"
},
"gateway": {},
"area": {
"projectID": "string",
"areaID": "string",
"areaName": "string"
},
"groups": [
{
"id": 0,
"parentID": 0,
"name": "string",
"purpose": "string"
}
]
}
],
"page": 0,
"pageSize": 0,
"total": 0
}
}
修改于 2025-03-25 08:05:06