Request Parameters
Parameter
|
Description
|
Obligatory
|
id
|
Station identifier.
This parameter can be defined in the request several times to update components on several stations at a time.
|
yes
|
Request Example
http://192.168.1.1:9080/api/stations/update-components.ds?id=d071625c-d21d-b211-9bc4-bc02713bf843
|
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="initiated"/>
</stations>
</drweb-es-api>
|
Description of XML Response Parameters
The <stations /> element contains information on a result of anti-virus software updates launch at stations.
The <stations /> element attribute:
Attribute
|
Description
|
total
|
Total number of stations on which components update has been launched
|
•The <station /> element contains information on specific stations on which components update has been launched. The <station /> element attributes:
Attribute
|
Description
|
id
|
Station identifier
|
status
|
The state of update process. May take the following values:
•delayed—update is delayed, •failed—update is failed, •initiated—update 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": "initiated"}}}
|
Description of JSON Response Parameters
The data block contains information on a result of anti-virus software updates launch at stations.
The data block elements:
Field name
|
Description
|
total
|
Total number of stations on which components update has been launched
|
•The list array contains information about specific stations, where component updates were initiated. Elements in the list array:
Field name
|
Description
|
Identifier of a station on which components update has been launched
|
The state of update process. May take the following values:
•delayed—update is delayed, •failed—update is failed, •initiated—update is initiated. |
|