该接口支持查询MQTT密钥。
请求接口
POST /api/device/product/{productId}/query-secureKey
请求参数
| 名称 | 位置 | 类型 | 必选 | 说明 |
|---|---|---|---|---|
| X-Access-Token | header | string | 是 | 平台token |
| productId | path | string | 是 | 产品ID |
响应参数
以200 Response为例,响应参数如下:
| 名称 | 类型 | 必选 | 约束 | 说明 |
|---|---|---|---|---|
| » message | string | true | none | 返回信息 |
| » result | object | true | none | 返回结果 |
| »» secureId | string | true | none | 密钥ID |
| »» secureKey | string | true | none | 密钥Key |
| » status | integer | true | none | 响应状态码 |
| » timestamp | integer | true | none | 时间戳 |
响应状态码
| 状态码 | 状态码含义 | 说明 |
|---|---|---|
| 200 | OK | 成功 |
| 401 | Unauthorized | 登录状态已过期,token不能为空 |
| 500 | Internal Server Error | 服务器内部异常 |
返回示例
以200 Response为例:
json
{
"message": "success",
"result": {
"secureId": "111",
"secureKey": "1111"
},
"status": 200,
"timestamp": 1690861210620
}{
"message": "success",
"result": {
"secureId": "111",
"secureKey": "1111"
},
"status": 200,
"timestamp": 1690861210620
}