Repository Status

Top  Previous  Next

Request Example

Response Documents Structure

XML response.

JSON response.

XML Response Structure

<drweb-avdesk-api api_version="4.1.3" timestamp="1392872008" server="192.168.1.1" srv_version="10.01.0.201707130" status="true">
<repositories total="0">

<repository code="20-drwagent" modified_time="1392826497" revision="20140219161457" size="58266349" files="300">Dr.Web Agent</repository>
<repository code="10-drwspamdb" modified_time="1392854004" revision="20140219235324" size="1021767" files="14">Dr.Web AntiSpam Bases</repository>
<!-- etc. Skipped in documentation -->
<repository code="20-drwandroid" modified_time="1392869549" revision="20140220041229" size="149178" files="5">Dr.Web Agent for Android devices</repository>
</repositories></drweb-avdesk-api>

Description of XML Response Parameters

The <repository /> element contains information about a repository status.

The <repository /> element attributes:

Attribute

Description

code

Repository code

modified_time

The date of last revision update in the Unix timestamp format

revision

Revision number

size

Revision size in bytes

files

Files number in revision

JSON Response Structure

{   "head": {

      "status": true,

      "timestamp": 1395395514,

      "api": {

          "version": 40103

      },

      "server": {

          "name": "192.168.1.1",

          "version": 1000201707130,

          "uuid": "50171907-d21d-b211-b3fd-cc152f024d8c"

      }

  },

  "data": {

      "repositories": {

          "total": 0,

          "list": {

              "20-drwagent": {

                  "name": "Dr.Web Agent",

                  "revision": "20140314161953",

                  "files": 287,

                  "size": 57611445,

                  "modified_time": 1394813993

              },

              "10-drwspamdb": {

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

                  "revision": "20140314161953",

                  "files": 17,

                  "size": 1014953,

                  "modified_time": 1394813993

              },

                "20-drwandroid": {

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

                  "revision": "20000101000000",

                  "files": 5,

                  "size": 35357,

                  "modified_time": 946684800

              }

          }

      }

  }

}

Description of JSON Response Parameters

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

The repositories block elements:

Field name

Description

total

Total number of products

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

Revision number

size

Revision size in bytes

files

Files number in revision