Get State of Specified Station

Request Parameters

Parameter

Description

Obligatory

id

Station identifier.

This parameter can be defined in the request several times to request information on several stations with specified state at a time.

yes

 

Request Example

http://192.168.1.1:9080/api/stations/state.ds?id=1001&id=1002

XML and JSON response structure examples are described below.

 

XML Response

<drweb-es-api api_version="4.3.0" timestamp="1558521952" server="192.168.1.1" srv_version="12.00.0.201909260" status="true">
  <states>
     <state id="1001">online</state>

     <state id="1002">offline</state>
  </states>
</drweb-es-api>

 

Description of XML Response Parameters

The <states /> element contains information on all stations with requested identifiers.

The <state /> element contains information on specific station.

The <state /> element attribute:

Attribute

Description

id

Station identifier

The <state /> element value — station status. May take the following values:

online—station is online,

offline—station is offline,

activated—station is activated,

unactivated—station is not activated,

deinstalled—antivirus software in uninstalled from station,

new—a new station with no anti-virus software installed,

newbies—newbie station,

with_update_errors—station with errors of antivirus software updates,

deleted—station is deleted.

 

JSON Response

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

    "timestamp": 1558522040,

    "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": {
    "states": {
       "1001": "online",
       "1002": "offline"}}}

 

Description of JSON Response Parameters

The states block contains information on all stations with requested identifiers.

The states block elements:

Field name

Description

Station identifier

Station status. May take the following values:

online—station is online,

offline—station is offline,

activated—station is activated,

unactivated—station is not activated,

deinstalled—antivirus software in uninstalled from station,

new—a new station with no anti-virus software installed,

newbies—newbie station,

with_update_errors—station with errors of antivirus software updates,

deleted—station is deleted.