复位主机系统
复位主机系统,当前支持平滑复位一种方式。
消息实例
{
"header": {
"msg_id": "741aec66-99b2-4d97-aaf2-63d27f53bbc5",
"parent_msg_id": "",
"timestamp": 1550107087319,
"sync": false
},
"route": {
"source": "EdgeManager",
"group": "hardware",
"operation": "update",
"resource": "websocket/restart"
},
"content": {
"restart_method": "Graceful"
}
}
参数说明
content:
{
"restart_method": "Graceful"
}
元素定义如下:
一级资源 |
描述 |
类型 |
取值范围 |
|---|---|---|---|
restart_method |
复位方式 |
string |
取值为Graceful,表示平滑复位。 当系统进行升级和配置导入等动作时,如果下发Graceful进行复位,复位系统会失败。 说明:
在执行升级、升级生效、系统复位和恢复出厂操作时,再执行系统复位操作,系统复位操作会执行失败。 |
返回结果
{
"header":{
"msg_id":"14885400-5b70-4539-99c1-56c0a4404aa7",
"parent_msg_id": "",
"timestamp":1652278452956,
"sync": false
},
"route":{
"source":"hardware",
"group":"hub",
"operation":"update",
"resource":"websocket/restart_result"
},
"content":"{"restartable": "true", "reason": "System is restartable"}"
}
父主题: 下行消息接口