凭证类型选择器
本地
本地
GET
http://127.0.0.1:9999/api/v1/device_config/connect
设备配置
请求参数
Query 参数
device_id
string
设备 id
示例值:
5fd9b168-9e2a-d91c-a7c3-9c1f4d4b5137
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/connect?device_id=5fd9b168-9e2a-d91c-a7c3-9c1f4d4b5137' \
--header 'x-token: {{x-token}}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
object
必需
AccessToken接入
string
必需
Basic
string
必需
示例
{
"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-25 01:40:23