设备模板分页查询
本地
本地
GET
http://127.0.0.1:9999/api/v1/device_config
设备配置
请求参数
Query 参数
device_template_id
string
设备模板id
device_type
string
设备类型
page
integer
页码
page_size
integer
每页数量
protocol_type
string
协议类型
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?device_template_id=&device_type=&page=&page_size=&protocol_type=' \
--header 'x-token: {{x-token}}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
object
必需
list
array [object {15}]
必需
total
integer
必需
示例
{
"code": 200,
"message": "Get deviceconfig list successfully",
"data": {
"list": [
{
"id": "00db6263-082b-a38d-e8b9-624abff9c5b2",
"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-07T15:16:50.696544Z",
"updated_at": "2024-03-07T15:16:50.696544Z",
"remark": null,
"device_count": 0
},
{
"id": "4a26a8da-b9d2-fc1c-18bb-90958b9aa273",
"name": "xxxx",
"device_template_id": null,
"device_type": "1",
"protocol_type": "MQTT",
"voucher_type": "xxxx",
"protocol_config": "{}",
"device_conn_type": null,
"additional_info": "{}",
"description": "xxxxxxxxxxxxxxxxxx",
"tenant_id": "2f4306df",
"created_at": "2024-03-07T15:37:08.142856Z",
"updated_at": "2024-03-07T15:37:08.142856Z",
"remark": null,
"device_count": 0
}
],
"total": 2
}
}
修改于 2025-03-24 08:04:36