Restarting the Host System

Currently, only graceful restart is supported.

Message instance

{
    "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"
    }
}

Parameter description

content:

{
    "restart_method": "Graceful"
}

Elements are defined as follows:

Level-1 Resource

Description

Type

Value Range

restart_method

Restart mode

string

The value is Graceful.

When the system is being upgraded or imported, graceful restart cannot restart the system.

NOTE:

If you reset the system when performing an upgrade, making the upgrade take effect, or resetting the system, the system fails to be reset.

Result returned

{
    "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"}"
}