Reboot Station

Request Parameters

Parameter

Description

Mandatory

delay

Delay of station reboot in seconds.

If the parameter is not set, then delay is 60 seconds.

no

id

Station identifier.

This parameter can be defined in the request several times to reboot several stations at a time.

yes

message

Message to a user in a free form about the reason of reboot

yes

 

Request Example

http://192.168.1.1:9080/api/stations/reboot.ds?id=d071625c-d21d-b211-9bc4-bc02713bf843&message=reboot%20now

XML and JSON response structure examples are described below.

 

XML Response

<drweb-es-api api_version="4.3.0" timestamp="1558521953" server="192.168.1.1" srv_version="12.00.0.201909260" status="true">
  <stations total="1">
     <station id="d071625c-d21d-b211-9bc4-bc02713bf843" status="failed"/>
  </stations>
</drweb-es-api>

 

Description of XML Response Parameters

The <stations /> element contains information on all stations for which reboot has been requested.

The <stations /> element attribute:

Attribute

Description

total

Total number of stations for which reboot has been requested

The <station /> element contains information on specific stations on which reboot has been requested.

The <station /> element attributes:

Attribute

Description

id

Station identifier

status

The state of reboot process. May take the following values:

failed—attempt to reboot a station is failed,

initiated—reboot is initiated.

 

JSON Response

{ "head": {
    "status": true,

    "timestamp": 1558522041,

    "api": {
      "version": 40300,
      "versionString": 4.3.0},

    "server": {
       "name": "192.168.1.1",

      "version": "12.00.0.201909260",
      "uuid": "27671337-e0b0-4f60-aeb0-ab1f2ca47f77"}},

 "data": {
    "total": 1,

    "list": {
       "d071625c-d21d-b211-9bc4-bc02713bf843": "failed"}}}

 

Description of JSON Response Parameters

The data block contains information on all stations for which reboot has been requested.

The data block:

Field name

Description

total

Total number of stations for which reboot has been requested

The list block contains information on specific stations on which reboot has been requested.

Elements in the list block:

Field name

Description

Station identifier

The state of reboot process. May take the following values:

failed—attempt to reboot a station is failed,

initiated—reboot is initiated.