- Product
- Category
- _User
- _Installation
- Evidence
- Rule
- Device
- _Role
- License
- View
- Crond
- ProductTemplet
- Channel
- LogLevel
- Wechat
- Instruct
- App
- METER
- Gb26875
- System
- Log
- Project
- Group
- Data
- Notification
- TOPO
- _Session
- Menu
- Maintenance
- Timescale
- Permission
- Dict
- Decoder
- OPC
- Devicelog
- aliyun
- FFMPEG
- Article
- Basic
- Dlink
- BACnet
- UniApp
获取设备管理详情
正式环境
https://prod.iotn2n.com
正式环境
https://prod.iotn2n.com
GET
/iotapi/classes/Device/{id}
Device
请求参数
Path 参数
id
string
设备管理的ID
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://prod.iotn2n.com/iotapi/classes/Device/'
返回响应
🟢200返回设备管理数据
application/json
Body
ACL
object
可选
示例值:
{"*":{"read":true,"write":false}}
address
string
可选
basedata
object
可选
content
object
可选
createdAt
string
可选
detail
object
可选
devaddr
string
可选
deviceSecret
string
可选
ip
string
可选
isEnable
boolean
可选
lastOnlineTime
number
可选
location
string
可选
name
string
可选
objectId
string
可选
parentId
object
可选
__type
string
可选
示例值:
Pointer
className
string
可选
示例值:
Device
objectId
string
可选
product
object
可选
__type
string
可选
示例值:
Pointer
className
string
可选
示例值:
Product
objectId
string
可选
profile
object
可选
route
object
可选
status
string
可选
updatedAt
string
可选
示例
{
"ACL": {
"*": {
"read": true,
"write": false
}
},
"address": "string",
"basedata": {},
"content": {},
"createdAt": "string",
"detail": {},
"devaddr": "string",
"deviceSecret": "string",
"ip": "string",
"isEnable": true,
"lastOnlineTime": 0,
"location": "string",
"name": "string",
"objectId": "string",
"parentId": {
"__type": "Pointer",
"className": "Device",
"objectId": "string"
},
"product": {
"__type": "Pointer",
"className": "Product",
"objectId": "string"
},
"profile": {},
"route": {},
"status": "string",
"updatedAt": "string"
}
🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🟠404object not found
🔴500Server Internal error