使用该接口应用已设置的 MQTT 认证配置,使配置生效。
请求接口
PUT /api/device-instance/{id}/deploy
请求参数
| 名称 | 位置 | 类型 | 必选 | 说明 |
|---|---|---|---|---|
| X-Access-Token | header | string | 是 | 平台 token |
响应参数
以200 Response为例,响应参数如下:
| 名称 | 类型 | 必选 | 约束 | 说明 |
|---|---|---|---|---|
| » message | string | true | none | 返回信息 |
| » result | object | true | none | 返回结果 |
| »» total | integer | true | none | 总数 |
| »» success | boolean | true | none | 是否成功 |
| » status | integer | true | none | 响应状态码 |
| » timestamp | integer | true | none | 时间戳 |
响应状态码
| 状态码 | 状态码含义 | 说明 |
|---|---|---|
| 200 | OK | 成功 |
| 401 | Unauthorized | 登录状态已过期,token不能为空 |
| 500 | Internal Server Error | 服务器内部异常 |
返回示例
以200 Response为例:
json
{
"message": "success",
"result": {
"total": 1,
"success": true
},
"status": 200,
"timestamp": 1693553138844
}{
"message": "success",
"result": {
"total": 1,
"success": true
},
"status": 200,
"timestamp": 1693553138844
}