Request Parameters
Parameter
|
Description
|
Mandatory
|
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
Response Documents Structure
•XML response. •JSON response. XML Response Structure
<drweb-avdesk-api api_version="4.1.3" timestamp="1401280578" server="192.168.1.1" srv_version="10.00.0.201405270" status="true">
<stations total="1">
<station id="d071625c-d21d-b211-9bc4-bc02713bf843" status="initiated"/>
</stations>
</drweb-avdesk-api>
|
Description of XML Response Parameters
•The <stations /> element contains information on a result of anti-virus software updates launch at stations. ▫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 Structure
{"head": {
"status": true,
"timestamp":1392282104,
"api":{
"version":40103
},
"server":{
"name":"192.168.1.1",
"version":1000201707130,
"uuid": "a509dab1-d423-4059-971a-aa3944a2c48a"
}
},
"data":{
"results": {
"d071625c-d21d-b211-9bc4-bc02713bf843": "initiated"
}
}
}
|
Description of JSON Response Parameters
The results block contains information on a result of anti-virus software updates launch at stations.
The results block elements:
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. |
|