重置设备账号密码
消息示例
{
"header": {
"msg_id": "741aec66-99b2-4d97-aaf2-63d27f53bbc5",
"parent_msg_id": "",
"timestamp": 1550107087319,
"sync": false
},
"route": {
"source": "EdgeManager",
"group": "hardware",
"operation": "update",
"resource": "websocket/passthrough/account_modify"
},
"content": {
}
}
参数说明
content消息内容描述如下:
{
"account": account,
"new_password": new_password
}
一级资源 |
描述 |
类型 |
取值范围 |
|---|---|---|---|
account |
用户名 |
string |
取值范围:admin |
new_password |
新修改密码 |
string |
长度为8~20的字符串。
|
返回结果
{
"header":{
"msg_id":"8a44d9c0-05c9-4325-b530-fa5c4a5145f2",
"parent_msg_id": "",
"timestamp":1652269263083,
"sync": false
},
"route":{
"source":"hardware",
"group":"hub",
"operation":"update",
"resource":"websocket/config_result"
},
"content":"{"topic": "passthrough/account_modify", "percentage": "100%", "result": "success", "reason": ""}"
}
父主题: 下行消息接口