Get Virus Databases List

Top  Previous  Next

Request Parameters

Parameter

Description

Mandatory

id

Station identifier.

This parameter can be defined in the request several times to get the lists of virus databases for several stations at a time.

yes

Request Example

Response Documents Structure

XML response.

JSON response.

XML Response Structure

<drweb-avdesk-api api_version="4.1.3" timestamp="1401790230" server="192.168.1.1" srv_version="10.01.0.201707130" status="true">

<stations total="1">

<station id="30cc7eb2-d11d-b211-b695-b80815e63511">

<bases total="182">

<base file_name="dwf70000.vdb" version="700" created="1401789230" viruses="2"/>

<base file_name="dwp70000.vdb" version="700" created="1401789230" viruses="1"/>

<!-- etc. Skipped in documentation -->

<base file_name="drw700a0.vdb" version="700" created="1401789298" viruses="17106"/>

</bases>

</station>

</stations>

</drweb-avdesk-api>

Description of XML Response Parameters

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

The <stations /> element attributes:

Attribute

Description

total

Total number of stations information on which the replay contains

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

The <station /> element attributes:

Attribute

Description

id

Station identifier

The <bases /> element contains information about all virus databases installed on a specific station.

The <bases /> element attributes:

Attribute

Description

total

Total number of virus databases

The <base /> element contains information about a specific virus database.

The <base /> element attributes:

Attribute

Description

file_name

Virus database file name

version

Database version

created

Database creation date in the UNIX timestamp format

viruses

The number of virus records in the database

JSON Response Structure

{   "head": {
      "status": true,
      "timestamp": 1410515620,
      "api": {
          "version": 40103
      },
      "server": {
          "name": "192.168.1.1",
          "version": 1000201707130,
          "uuid": "70c5f522-aaab-4c93-a180-a442a0da9c2a"
      }
  },
  "data": {
      "total": 1,
      "list": [
          {
              "bases": [
                  {
                      "viruses": 2,
                      "created_time": 1410514994,
                      "version": "700",
                      "file_name": "dwf70000.vdb"
                  },{
                      "viruses": 1,
                      "created_time": 1410514994,
                      "version": "700",
                      "file_name": "dwp70000.vdb"
                  },

                   {
                      "viruses": 852776,
                      "created_time": 1410514994,
                      "version": "700",
                      "file_name": "drwebase.vdb"
                  }],
              "station_id": "if"
          }]
    }

}

Description of JSON Response Parameters

The data block contains information on all stations.

The data block elements:

Field name

Description

total

Total number of stations information on which the replay contains

The list array contains information on all requested stations.

Elements in the list array:

Field name

Description

station_id

Station identifier

The bases block contains information about all virus databases installed on a specific station.

Elements in the bases array:

Field name

Description

viruses

The number of virus records in the database

created_time

Database creation date in the UNIX timestamp format

version

Database version

file_name

Virus database file name