Repository Status

Request parameters

Requests do not contain parameters.

 

Request Examples

http://192.168.1.1:9080/api/server/repositories-state.ds

http://192.168.1.1:9080/api/server/repository-products.ds

XML and JSON response structure examples are described below.

 

XML Response

<drweb-es-api api_version="4.3.0" timestamp="1559872008" server="192.168.1.1" srv_version="12.00.0.201909260" status="true">
  <repositories total="14">
     <repository code="15-drwappcntrl" modified_time="1020211200" revision="10020020501000000" size="5502" files="6">Application Control Bases</repository>

     <repository code="80-drwnews" modified_time="1559520000" revision="12020190603000000" size="23487099" files="1929">Doctor Web News</repository>

     <repository code="10-drwbases" modified_time="1559553787" revision="12020190603092307" size="176738186" files="257">Dr.Web Virus Bases</repository>

     <repository code="20-drwandroid11" modified_time="1020211200" revision="10020020501000000" size="0" files="0">Dr.Web Agent for Android</repository>

     <repository code="70-drwextra" modified_time="1020211200" revision="10020020501000000" size="37173" files="3">Dr.Web Enterprise products</repository>

     <repository code="20-drwagent" modified_time="1559234698" revision="12020190530164458" size="98365594" files="377">Dr.Web Agent for Windows</repository>

     <repository code="40-drwproxy" modified_time="1020211200" revision="10020020501000000" size="0" files="0">Dr.Web Proxy Server</repository>

     <repository code="20-drwcs" modified_time="1559520000" revision="12020190603000000" size="413652649" files="1990">Dr.Web Server</repository>

     <repository code="70-drwutils" modified_time="1020211200" revision="10020020501000000" size="19207" files="2">Dr.Web administrative utilities</repository>

     <repository code="10-drwspamdb" modified_time="1559552909" revision="12020190603090829" size="2795129" files="17">AntiSpam Bases</repository>

     <repository code="10-drwgatedb" modified_time="1559552909" revision="12020190603090829" size="248326862" files="119">SpIDer Gate Bases</repository>

     <repository code="20-drwunix" modified_time="1020211200" revision="10020020501000000" size="0" files="0">Dr.Web Agent for UNIX</repository>

     <repository code="05-drwmeta" modified_time="1559520000" revision="12020190603000000" size="268067" files="9">Dr.Web Meta information</repository>

     <repository code="10-drwupgrade" modified_time="1559520000" revision="12020190603000000" size="24125449" files="17">Dr.Web Updater</repository>
  </repositories>
</drweb-es-api>

 

Description of XML Response Parameters

The <repositories /> element contains information on all repository products.

The <repositories /> element attribute:

Attribute

Description

total

Total number of products in the repository

The <repository /> element contains information about a specific product in the repository.

The <repository /> element attributes:

Attribute

Description

code

Repository code

modified_time

The date of last revision update in the Unix timestamp format

revision

Number of the current revision

size

Revision size in bytes

files

Files number in revision

The <repository /> element value is a product name.

 

JSON Response

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

    "timestamp": 1559737588,

    "api": {
      "version": 40300,
      "versionString": 4.3.0},

    "server": {
      "name": "192.168.1.1",

      "version": "12.00.0.201909260",
      "uuid": "76b05bc0-8691-11e9-63e5-7036cecd07fa"}},

"data": {
    "repositories": {
      "total": 14,

      "list": {
          "05-drwmeta": {
            "files": 9,

            "modified_time": 1559520000,

            "name": "Dr.Web Meta information",

            "revision": "12020190603000000",

            "size": 268067,
            "state": "normal"},

          "10-drwbases": {
            "files": 257,

            "modified_time": 1559553787,

            "name": "Dr.Web Virus Bases",

            "revision": "12020190603092307",

            "size": 176738186,
            "state": "normal"},

          "10-drwgatedb": {
            "files": 119,

            "modified_time": 1559552909,

            "name": "SpIDer Gate Bases",

            "revision": "12020190603090829",

            "size": 248326862,
            "state": "normal"},

          "10-drwspamdb": {
            "files": 17,

            "modified_time": 1559552909,

            "name": "AntiSpam Bases",

            "revision": "12020190603090829",

            "size": 2795129,
            "state": "normal"},

          "10-drwupgrade": {
            "files": 17,

            "modified_time": 1559520000,

            "name": "Dr.Web Updater",

            "revision": "12020190603000000",

            "size": 24125449,
            "state": "normal"},

          "15-drwappcntrl": {
            "files": 6,

            "modified_time": 1020211200,

            "name": "Application Control Bases",

            "revision": "10020020501000000",

            "size": 5502,
            "state": "disabled"},

          "20-drwagent": {
            "files": 377,

            "modified_time": 1559234698,

            "name": "Dr.Web Agent for Windows",

            "revision": "12020190530164458",

            "size": 98365594,
            "state": "normal"},

          "20-drwandroid11": {
            "files": 0,

            "modified_time": 1020211200,

            "name": "Dr.Web Agent for Android",

            "revision": "10020020501000000",

            "size": 0,
            "state": "normal"},

          "20-drwcs": {
            "files": 1990,

            "modified_time": 1559520000,

            "name": "Dr.Web Server",

            "revision": "12020190603000000",

            "size": 413652649,
            "state": "normal"},

          "20-drwunix": {
            "files": 0,

            "modified_time": 1020211200,

            "name": "Dr.Web Agent for UNIX",

            "revision": "10020020501000000",

            "size": 0,
            "state": "normal"},

          "40-drwproxy": {
            "files": 0,

            "modified_time": 1020211200,

            "name": "Dr.Web Proxy Server",

            "revision": "10020020501000000",

            "size": 0,
            "state": "normal"},

          "70-drwextra": {
            "files": 3,

            "modified_time": 1020211200,

            "name": "Dr.Web Enterprise products",

            "revision": "10020020501000000",

            "size": 37173,
            "state": "disabled"},

          "70-drwutils": {
            "files": 2,

            "modified_time": 1020211200,

            "name": "Dr.Web administrative utilities",

            "revision": "10020020501000000",

            "size": 19207,
          "state": "disabled"},

          "80-drwnews": {
            "files": 1929,

            "modified_time": 1559520000,

            "name": "Doctor Web News",

            "revision": "12020190603000000",

            "size": 23487099,
            "state": "normal"}}}}}

 

Description of JSON Response Parameters

The repositories block contains information on all products in the repository.

The repositories block element:

Field name

Description

total

Total number of products in the repository

The list array contains information about specific products, nested blocks names corresponding the product codes in the repository.

Elements in the list array:

Field name

Description

name

Repository name

modified_time

The date of last revision update in the Unix timestamp format

revision

Number of the current revision

size

Revision size in bytes

files

Files number in revision

state

Product update status. May take the following values:

normal—the product is updated successfully,

frozen—the product update is frozen,

disabled—the product update is disabled.