Request Parameter
Parameter
|
Description
|
Mandatory
|
id
|
Station ID.
Parameter can be defined in a request several times to show information on multiple stations with specified status at a time.
|
yes
|
Request Example
https://192.168.1.1:9081/api/stations/state.ds?id=1001&id=1002
|
XML and JSON response structure examples are described below.
XML Response Structure
<drweb-es-api api_version="4.3.2" timestamp="1582030327" server="192.168.1.1" srv_version="13.00.1.202310121" 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 specified in a request.
•The <state /> element contains information on a specific station.
The <state /> element attribute:
Attribute
|
Description
|
id
|
Station ID
|
The <state /> element value—station status:
▪activated—station is activated,
▪deinstalled—anti-virus software is uninstalled from station,
▪deleted—station is deleted.
▪new—a new station with no anti-virus software installed,
▪newbies—newbie station,
▪not found—station is not found,
▪offline—station is offline,
▪online—station is online,
▪unactivated—station is not activated,
▪with_update_errors—station with failed anti-virus software update.
JSON Response Structure
{ "head": {
"status": true,
"timestamp": 1587435369,
"api": {
"version": 40302,
"versionString": "4.3.2"},
"server": {
"name": "192.168.1.1",
"version": "13.00.1.202310121",
"uuid": "b35d999d-9212-481d-af8c-8551c4113383"}},
"data": {
"states": {
"1001": "online",
"1002": "offline"}}}
|
Description of JSON Response Parameters
The states block nested in the data block contains information on all stations specified in a request.
The states block elements:
Field name
|
Description
|
Station ID
|
Station status:
▪activated—station is activated,
▪deinstalled—anti-virus software is uninstalled from station,
▪deleted—station is deleted,
▪new—a new station with no anti-virus software installed,
▪newbies—newbie station,
▪not found—station is not found,
▪offline—station is offline,
▪online—station is online,
▪unactivated—station is not activated,
▪with_update_errors—station with failed anti-virus software update. |
|