- 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
trace操作
正式环境
https://prod.iotn2n.com
正式环境
https://prod.iotn2n.com
POST
/iotapi/trace
System
请求参数
Body 参数application/json
action
string
操作类型
示例值:
start
deviceid
string
设备id
示例值:
c1e5fe9676
handle
string
handle
示例值:
c1e5fe9676
level
string
日志等级
示例值:
info
order
排序
示例值:
1
tracetype
string
可选
示例值:
clientid
示例
{
"action": "start",
"deviceid": "c1e5fe9676",
"handle": "c1e5fe9676",
"level": "info",
"order": 1,
"tracetype": "clientid"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://prod.iotn2n.com/iotapi/trace' \
--header 'Content-Type: application/json' \
--data-raw '{
"action": "start",
"deviceid": "c1e5fe9676",
"handle": "c1e5fe9676",
"level": "info",
"order": 1,
"tracetype": "clientid"
}'
返回响应
🟢200Returns operation status
application/json
Body
object {0}
示例
{}
🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🔴500Server Internal error