Получение информации о состоянии репозитория

Параметры запросов

Запросы не имеют параметров.

 

Пример запроса

https://192.168.1.1:9081/api/server/repository-products.ds

Ниже представлены примеры ответов в формате XML и в формате JSON.

 

Ответ в формате XML

<drweb-es-api api_version="4.3.2" timestamp="1587080888" server="192.168.1.1" srv_version="13.00.0.202005090" status="true">
  <repositories total="15">

     <repository code="05-drwmeta" modified_time="1586736000" revision="13020200413000000" size="279704" files="14" last_update_endtime="1587129960" last_update_src="Launched by Task Scheduler" last_update_rc="Requested product not found on GUS servers" last_update_rc_code="106">Dr.Web Meta information</repository>

     <repository code="10-drwbases" modified_time="1587126959" revision="13020200417123559" size="205489514" files="237" last_update_endtime="1587130889" last_update_src="Launched from the Control Center" last_update_rc="Update completed successfully" last_update_rc_code="2">Dr.Web Virus Bases</repository>

     <repository code="10-drwspamdb" modified_time="1587112494" revision="13020200417083454" size="12063766" files="17" last_update_endtime="1587130891" last_update_src="Launched from the Control Center" last_update_rc="Update completed successfully" last_update_rc_code="2">AntiSpam Bases</repository>

     <repository code="10-drwupgrade" modified_time="1586964560" revision="13020200415152920" size="44354429" files="17" last_update_endtime="1587130898" last_update_src="Launched from the Control Center" last_update_rc="Update completed successfully" last_update_rc_code="2">Dr.Web Updater</repository>

     <repository code="10-drwgatedb" modified_time="1587129057" revision="13020200417131057" size="139102392" files="123" last_update_endtime="1587130890" last_update_src="Launched from the Control Center" last_update_rc="Update completed successfully" last_update_rc_code="2">SpIDer Gate Bases</repository>

     <repository code="15-drwappcntrl" modified_time="1020211200" revision="10020020501000000" size="0" files="5" last_update_endtime="" last_update_src="" last_update_rc="" last_update_rc_code="">Application Control Bases</repository>

     <repository code="20-drwandroid11" modified_time="1587130094" revision="13020200417132814" size="7613845" files="14" last_update_endtime="1587130904" last_update_src="Launched from the Control Center" last_update_rc="Update completed successfully" last_update_rc_code="2">Dr.Web Agent for Android</repository>

     <repository code="20-drwunix" modified_time="1020211200" revision="10020020501000000" size="0" files="0" last_update_endtime="1587131760" last_update_src="Launched by Task Scheduler" last_update_rc="Update disabled" last_update_rc_code="4">Dr.Web Agent for UNIX</repository>

     <repository code="20-drwagent" modified_time="1586964540" revision="13020200415152900" size="117264117" files="416" last_update_endtime="1587130903" last_update_src="Launched from the Control Center" last_update_rc="Update completed successfully" last_update_rc_code="2">Dr.Web Agent for Windows</repository>

     <repository code="20-drwcs" modified_time="1586736000" revision="13020200413000000" size="290535878" files="613" last_update_endtime="1587130906" last_update_src="Launched from the Control Center" last_update_rc="Update completed successfully" last_update_rc_code="2">Dr.Web Server</repository>

     <repository code="25-drwcsdoc" modified_time="1586736000" revision="13020200413000000" size="140980717" files="20" last_update_endtime="1587130915" last_update_src="Launched from the Control Center" last_update_rc="Update completed successfully" last_update_rc_code="2">Dr.Web documentation</repository>

     <repository code="40-drwproxy" modified_time="1020211200" revision="10020020501000000" size="0" files="0" last_update_endtime="1587131760" last_update_src="Launched by Task Scheduler" last_update_rc="Update disabled" last_update_rc_code="4">Dr.Web Proxy Server</repository>

     <repository code="70-drwutils" modified_time="1586736000" revision="13020200413000000" size="160780634" files="42" last_update_endtime="1587131069" last_update_src="Launched from the Control Center" last_update_rc="Update completed successfully" last_update_rc_code="2">Dr.Web administrative utilities</repository>

     <repository code="70-drwextra" modified_time="1586736000" revision="13020200413000000" size="2252817195" files="19" last_update_endtime="1587131052" last_update_src="Launched from the Control Center" last_update_rc="Update completed successfully" last_update_rc_code="2">Dr.Web Enterprise products</repository>

     <repository code="80-drwnews" modified_time="1587092725" revision="13020200417030525" size="21958741" files="1622" last_update_endtime="1587131081" last_update_src="Launched from the Control Center" last_update_rc="Update completed successfully" last_update_rc_code="2">Doctor Web News</repository>
  </repositories>
</drweb-es-api>

 

Описание параметров ответного XML

Элемент <repositories /> содержит информацию обо всех продуктах в репозитории.

Атрибут элемента <repositories />:

Атрибут

Описание

total

Общее количество продуктов в репозитории

Элемент <repository /> содержит информацию о конкретном продукте в репозитории.

Атрибуты элемента <repository />:

Атрибут

Описание

code

Код репозитория

modified_time

Дата последнего обновления ревизии

revision

Номер текущей ревизии

size

Размер ревизии (в байтах)

files

Количество файлов в ревизии

last_update_endtime

Время завершения последнего обновления

last_update_src

Инициатор обновления

last_update_rc

Результат обновления (см. Приложение Д. Возвращаемые коды обновления)

last_update_rc_code

Код результата обновления (см. Приложение Д. Возвращаемые коды обновления)

Значением элемента <repository /> является название продукта.

 

Ответ в формате JSON

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

    "timestamp": 1587080871,

    "api": {
      "version": 40302,
      "versionString": "4.3.2"},

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

      "version": "13.00.0.202005090",
      "uuid": "b35d999d-9212-481d-af8c-8551c4113383"}},

"data": {
    "repositories": {
      "list": {
          "05-drwmeta": {
            "files": 14,

            "last_update_endtime": 1587129960,

            "last_update_rc": "Requested product not found on GUS servers",

            "last_update_rc_code": "106",

            "last_update_src": "Launched by Task Scheduler",

            "modified_time": 1586736000,

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

            "revision": "13020200416000000",

            "size": 279704,
            "state": "normal"},

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

            "last_update_endtime": 1587137164,

            "last_update_rc": "Update completed successfully",

            "last_update_rc_code": "2",

            "last_update_src": "Launched by Task Scheduler",

            "modified_time": 1587135311,

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

            "revision": "13020200417145511",

            "size": 205506089,
            "state": "normal"},

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

            "last_update_endtime": 1587137166,

            "last_update_rc": "Update completed successfully",

            "last_update_rc_code": "2",

            "last_update_src": "Launched by Task Scheduler",

            "modified_time": 1587136264,

            "name": "SpIDer Gate Bases",

            "revision": "13020200417151104",

            "size": 139115732,
            "state": "normal"},

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

            "last_update_endtime": 1587137166,

            "last_update_rc": "Update completed successfully",

            "last_update_rc_code": "2",

            "last_update_src": "Launched from the Control Center",

            "modified_time": 1587112494,

            "name": "AntiSpam Bases",

            "revision": "13020200417083454",

            "size": 12063766,
            "state": "normal"},

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

            "last_update_endtime": 1587130898,

            "last_update_rc": "Update completed successfully",

            "last_update_rc_code": "2",

            "last_update_src": "Launched from the Control Center",

            "modified_time": 1586964560,

            "name": "Dr.Web Updater",

            "revision": "13020200415152920",

            "size": 44354429,
            "state": "normal"},

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

            "modified_time": 1020211200,

            "name": "Application Control Bases",

            "revision": "10020020501000000",

            "size": 0,
            "state": "disabled"},

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

            "last_update_endtime": 1587130903,

            "last_update_rc": "Update completed successfully",

            "last_update_rc_code": "2",

            "last_update_src": "Launched from the Control Center",

            "modified_time": 1586964540,

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

            "revision": "13020200415152900",

            "size": 117264117,
            "state": "normal"},

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

            "last_update_endtime": 1587138964,

            "last_update_rc": "Update completed successfully",

            "last_update_rc_code": "2",

            "last_update_src": "Launched by Task Scheduler",

            "modified_time": 1587137872,

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

            "revision": "13020200417153752",

            "size": 7614135,
            "state": "normal"},

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

            "last_update_endtime": 1587138974,

            "last_update_rc": "Update completed successfully",

            "last_update_rc_code": "2",

            "last_update_src": "Launched by Task Scheduler",

            "modified_time": 1586995200,

            "name": "Dr.Web Server",

            "revision": "13020200416000000",

            "size": 290672475,
            "state": "normal"},

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

            "last_update_endtime": 1587138974,

            "last_update_rc": "Update disabled",

            "last_update_rc_code": "4",

            "last_update_src": "Launched by Task Scheduler",

            "modified_time": 1020211200,

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

            "revision": "10020020501000000",

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

          "25-drwcsdoc": {
            "files": 20,

            "last_update_endtime": 1587138980,

            "last_update_rc": "Update completed successfully",

            "last_update_rc_code": "2",

            "last_update_src": "Launched by Task Scheduler",

            "modified_time": 1586995200,

            "name": "Dr.Web documentation",

            "revision": "13020200416000000",

            "size": 128786940,
            "state": "normal"},

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

            "last_update_endtime": 1587138980,

            "last_update_rc": "Update disabled",

            "last_update_rc_code": "4",

            "last_update_src": "Launched by Task Scheduler",

            "modified_time": 1020211200,

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

            "revision": "10020020501000000",

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

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

            "last_update_endtime": 1587135396,

            "last_update_rc": "Update completed successfully",

            "last_update_rc_code": "2",

            "last_update_src": "Launched by Task Scheduler",

            "modified_time": 1586995200,

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

            "revision": "13020200416000000",

            "size": 2252852293,
            "state": "normal"},

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

            "last_update_endtime": 1587139007,

            "last_update_rc": "Update completed successfully",

            "last_update_rc_code": "2",

            "last_update_src": "Launched by Task Scheduler",

            "modified_time": 1586995200,

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

            "revision": "13020200416000000",

            "size": 160788239,
          "state": "normal"},

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

            "last_update_endtime": 1587131081,

            "last_update_rc": "Update completed successfully",

            "last_update_rc_code": "2",

            "last_update_src": "Launched by Task Scheduler",

            "modified_time": 1587092725,

            "name": "Doctor Web News",

            "revision": "13020200417030525",

            "size": 21958741,
            "state": "normal"},
      "total": 15}}}

 

Описание параметров ответного JSON

Блок repositories содержит информацию обо всех продуктах в репозитории.

Элемент блока repositories:

Название поля

Описание

total

Общее количество продуктов в репозитории

list

Блок параметров для каждого продукта.

Блок list состоит из вложенных блоков.

Каждый вложенный блок содержит параметры конкретного продукта. Название вложенного блока соответствует коду продукта в репозитории.

Элементы вложенных блоков в блоке list:

Название поля

Описание

files

Количество файлов в ревизии

last_update_endtime

Время завершения последнего обновления

last_update_src

Инициатор обновления

last_update_rc

Результат обновления (см. Приложение Д. Возвращаемые коды обновления)

last_update_rc_code

Код результата обновления (см. Приложение Д. Возвращаемые коды обновления)

modified_time

Дата последнего обновления ревизии

name

Название репозитория

revision

Номер текущей ревизии

size

Размер ревизии (в байтах)

state

Состояние обновления продукта:

normal — продукт успешно обновляется,

frozen — продукт заморожен,

disabled — обновление продукта отключено.