设备模板详情查询
本地
本地
GET
http://127.0.0.1:9999/api/v1/device_config/{id}
请求参数
Path 参数
id
string
设备配置id
Header 参数
x-token
string
可选
默认值:
{{x-token}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://127.0.0.1:9999/api/v1/device_config/' \
--header 'x-token: {{x-token}}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
object
必需
id
string
必需
name
string
必需
device_template_id
null
必需
device_type
string
必需
protocol_type
string
必需
voucher_type
string
必需
protocol_config
string
必需
device_conn_type
null
必需
additional_info
string
必需
description
string
必需
tenant_id
string
必需
created_at
string
必需
updated_at
string
必需
remark
null
必需
示例
{
"code": 200,
"message": "SUCCESS",
"data": {
"id": "989bdfbd-af4c-8d83-4c3f-ac8b6e1a45b0",
"name": "xxxx",
"device_template_id": null,
"device_type": "1",
"protocol_type": "MQTT",
"voucher_type": "xxxx",
"protocol_config": "{\"aa\":1}",
"device_conn_type": null,
"additional_info": "{}",
"description": "xxxxxxxxxxxxxxxxxx",
"tenant_id": "2f4306df",
"created_at": "2024-03-25T11:40:29.48744Z",
"updated_at": "2024-03-25T11:40:29.48744Z",
"remark": null
}
}
修改于 2025-03-24 08:04:00