Docs
Консоль

Коллектор: Репозитории пакетов

GET
/api/v1/assets/{device}/collectors/repositories/{version}

Авторизация

oauth2 devices:get
headerAuthorizationBearer <token>

Scope: devices:get

Параметры пути

device*string

Идентификатор актива

Форматuuid
version*string

Тело ответа

application/json
  1. response
data?array<>
Пример запроса
curl -X GET 'https://example.com/api/v1/assets/497f6eca-6276-4993-bfeb-53cbbbba6f08/collectors/repositories/string'
Пример ответа
{  "data": [    {      "id": "apt:download.astralinux.ru/astra/stable/1.7_x86-64/repository-base:1.7_x86-64",      "type": "apt",      "name": "sources.list",      "uri": "https://download.astralinux.ru/astra/stable/1.7_x86-64/repository-base/",      "suite": "1.7_x86-64",      "components": [        "main",        "contrib",        "non-free"      ],      "enabled": true,      "origin": "",      "label": "",      "codename": "",      "gpgKeyIds": [],      "gpgKeyOwner": "",      "source": "etc/apt/sources.list"    }  ]}