GET /katello/api/repositories
Список активных репозиториев

GET /katello/api/content_views/:id/repositories
Список репозиториев для представления

GET /katello/api/organizations/:organization_id/repositories
List of repositories in an organization

GET /katello/api/organizations/:organization_id/environments/:environment_id/repositories
List repositories in the environment

GET /katello/api/products/:product_id/repositories
List of repositories for a product

GET /katello/api/environments/:environment_id/products/:product_id/repositories
List of repositories belonging to a product in an environment

Параметры

Имя параметра Описание
organization_id
необязательно

Идентификатор организации для получения списка репозиториев

Validations:

  • Must be a number.

product_id
необязательно

Идентификатор продукта для получения списка репозиториев

Validations:

  • Must be a number.

environment_id
необязательно

Идентификатор окружения для получения списка репозиториев

Validations:

  • Must be a number.

content_view_id
необязательно

Идентификатор представления для репозиториев

Validations:

  • Must be a number.

content_view_version_id
необязательно

Идентификатор версии представления для просмотра репозиториев

Validations:

  • Must be a number.

deb_id
необязательно

Id of a deb package to find repositories that contain the deb

Validations:

  • String

erratum_id
необязательно

Id of an erratum to find repositories that contain the erratum

Validations:

  • String

rpm_id
необязательно

Id of a rpm package to find repositories that contain the rpm

Validations:

  • String

file_id
необязательно

Id of a file to find repositories that contain the file

Validations:

  • String

ostree_branch_id
необязательно

Id of an ostree branch to find repositories that contain that branch

Validations:

  • String

library
необязательно

показать репозитории Library и в текущем представлении

Validations:

  • Must be one of: true, false, 1, 0

content_type
необязательно

limit to only repositories of this type

Validations:

  • Must be one of: docker, ostree, yum, puppet, file, deb.

name
необязательно

имя репозитория

Validations:

  • String

description
необязательно

description of the repository

Validations:

  • String

available_for
необязательно

interpret specified object to return only Repositories that can be associated with specified object. Only 'content_view' is supported.

Validations:

  • String

search
необязательно

Поиск строки

Validations:

  • String

page
необязательно

Номер страницы, начиная с 1

Validations:

  • Must be a number.

per_page
необязательно

Число элементов на странице

Validations:

  • Must be a number.

order
необязательно

Sort field and order, eg. 'id DESC'

Validations:

  • String

full_result
необязательно

Показывать все результаты?

Validations:

  • Must be one of: true, false, 1, 0

sort
необязательно

Хэш параметра «order»

Validations:

  • Hash

sort[by]
необязательно

Поле сортировки

Validations:

  • String

sort[order]
необязательно

Функции сортировки (например, ASC — по возрастанию)

Validations:

  • String


POST /katello/api/repositories
Создать дополнительный репозиторий

Параметры

Имя параметра Описание
name
обязательно

Validations:

  • String

label
необязательно

Validations:

  • String

product_id
обязательно

Репозиторий

Validations:

  • Must be a number.

content_type
обязательно

type of repo (either 'yum', 'deb', 'puppet', 'docker', or 'ostree')

Validations:

  • Must be one of: docker, ostree, yum, puppet, file, deb.

url
необязательно

URL источника репозитория

Validations:

  • String

gpg_key_id
необязательно

идентификатор ключа GPG для нового репозитория

Validations:

  • Must be a number.

ssl_ca_cert_id
необязательно

Idenifier of the SSL CA Cert

Validations:

  • Must be a number.

ssl_client_cert_id
необязательно

Identifier of the SSL Client Cert

Validations:

  • Must be a number.

ssl_client_key_id
необязательно

Identifier of the SSL Client Key

Validations:

  • Must be a number.

unprotected
необязательно

«True», если репозиторий может быть доступен по HTTP

Validations:

  • Must be one of: true, false, 1, 0

checksum_type
необязательно

checksum of the repository, currently 'sha1' & 'sha256' are supported.

Validations:

  • String

docker_upstream_name
необязательно

имя официального репозитория docker

Validations:

  • String

download_policy
необязательно

download policy for yum repos (either 'immediate', 'on_demand', or 'background')

Validations:

  • Must be one of: immediate, on_demand, background.

mirror_on_sync
необязательно

true if this repository when synced has to be mirrored from the source and stale rpms removed.

Validations:

  • Must be one of: true, false, 1, 0

verify_ssl_on_sync
необязательно

if true, Katello will verify the upstream url's SSL certifcates are signed by a trusted CA.

Validations:

  • Must be one of: true, false, 1, 0

upstream_username
необязательно

Username of the upstream repository user used for authentication

Validations:

  • String

upstream_password
необязательно

Password of the upstream repository user used for authentication

Validations:

  • String

ostree_upstream_sync_policy
необязательно

policies for syncing upstream ostree repositories.

Validations:

  • Must be one of: latest, all, custom.

ostree_upstream_sync_depth
необязательно

if a custom sync policy is chosen for ostree repositories then a 'depth' value must be provided.

Validations:

  • Must be a number.

deb_releases
необязательно

comma separated list of releases to be synched from deb-archive

Validations:

  • String

deb_components
необязательно

comma separated list of repo components to be synched from deb-archive

Validations:

  • String

deb_architectures
необязательно

comma separated list of architectures to be synched from deb-archive

Validations:

  • String

ignore_global_proxy
необязательно

if true, will ignore the globally configured proxy when syncing.

Validations:

  • Must be one of: true, false, 1, 0

ignorable_content
необязательно

List of content units to ignore while syncing a yum repository. Must be subset of rpm,drpm,srpm,distribution,erratum

Validations:

  • Must be an array of any type


GET /katello/api/repositories/repository_types
Show the available repository types

Параметры

Имя параметра Описание
creatable
необязательно

When set to 'True' repository types that are creatable will be returned

Validations:

  • Must be one of: true, false, 1, 0


PUT /katello/api/repositories/:id/republish
Forces a republish of the specified repository, regenerating metadata and symlinks on the filesystem.

Параметры

Имя параметра Описание
id
обязательно

Repository identifier

Validations:

  • Must be a number.


GET /katello/api/repositories/:id
Show a repository

Параметры

Имя параметра Описание
id
обязательно

ID репозитория

Validations:

  • Must be a number.


POST /katello/api/repositories/:id/sync
Синхронизация репозитория

Параметры

Имя параметра Описание
id
обязательно

ID репозитория

Validations:

  • Must be a number.

source_url
необязательно

temporarily override feed URL for sync

Validations:

  • String

incremental
необязательно

perform an incremental import

Validations:

  • Must be one of: true, false, 1, 0

skip_metadata_check
необязательно

Force sync even if no upstream changes are detected. Only used with yum repositories.

Validations:

  • Must be one of: true, false, 1, 0

validate_contents
необязательно

Force a sync and validate the checksums of all content. Only used with yum repositories.

Validations:

  • Must be one of: true, false, 1, 0


POST /katello/api/repositories/:id/export
Export a repository

Параметры

Имя параметра Описание
id
обязательно

Repository identifier

Validations:

  • Must be a number.

export_to_iso
необязательно

Export to ISO format

Validations:

  • Must be one of: true, false, 1, 0

iso_mb_size
необязательно

maximum size of each ISO in MB

Validations:

  • Must be a number.

since
необязательно

Optional date of last export (ex: 2010-01-01T12:00:00Z)

Validations:

  • Date


PUT /katello/api/repositories/:id
Обновить репозиторий

Параметры

Имя параметра Описание
id
обязательно

ID репозитория

Validations:

  • Must be a number.

name
необязательно

Validations:

  • String

url
необязательно

URL источника репозитория

Validations:

  • String

gpg_key_id
необязательно

идентификатор ключа GPG для нового репозитория

Validations:

  • Must be a number.

ssl_ca_cert_id
необязательно

Idenifier of the SSL CA Cert

Validations:

  • Must be a number.

ssl_client_cert_id
необязательно

Identifier of the SSL Client Cert

Validations:

  • Must be a number.

ssl_client_key_id
необязательно

Identifier of the SSL Client Key

Validations:

  • Must be a number.

unprotected
необязательно

«True», если репозиторий может быть доступен по HTTP

Validations:

  • Must be one of: true, false, 1, 0

checksum_type
необязательно

checksum of the repository, currently 'sha1' & 'sha256' are supported.

Validations:

  • String

docker_upstream_name
необязательно

имя официального репозитория docker

Validations:

  • String

download_policy
необязательно

download policy for yum repos (either 'immediate', 'on_demand', or 'background')

Validations:

  • Must be one of: immediate, on_demand, background.

mirror_on_sync
необязательно

true if this repository when synced has to be mirrored from the source and stale rpms removed.

Validations:

  • Must be one of: true, false, 1, 0

verify_ssl_on_sync
необязательно

if true, Katello will verify the upstream url's SSL certifcates are signed by a trusted CA.

Validations:

  • Must be one of: true, false, 1, 0

upstream_username
необязательно

Username of the upstream repository user used for authentication

Validations:

  • String

upstream_password
необязательно

Password of the upstream repository user used for authentication

Validations:

  • String

ostree_upstream_sync_policy
необязательно

policies for syncing upstream ostree repositories.

Validations:

  • Must be one of: latest, all, custom.

ostree_upstream_sync_depth
необязательно

if a custom sync policy is chosen for ostree repositories then a 'depth' value must be provided.

Validations:

  • Must be a number.

deb_releases
необязательно

comma separated list of releases to be synched from deb-archive

Validations:

  • String

deb_components
необязательно

comma separated list of repo components to be synched from deb-archive

Validations:

  • String

deb_architectures
необязательно

comma separated list of architectures to be synched from deb-archive

Validations:

  • String

ignore_global_proxy
необязательно

if true, will ignore the globally configured proxy when syncing.

Validations:

  • Must be one of: true, false, 1, 0

ignorable_content
необязательно

List of content units to ignore while syncing a yum repository. Must be subset of rpm,drpm,srpm,distribution,erratum

Validations:

  • Must be an array of any type


DELETE /katello/api/repositories/:id
Удалить репозиторий

Параметры

Имя параметра Описание
id
обязательно

Validations:

  • Must be a number.


POST /katello/api/repositories/sync_complete

URL for post sync notification from pulp

Параметры

Имя параметра Описание
token
обязательно

секретный токен

Validations:

  • String

payload
обязательно

Validations:

  • Hash

payload[repo_id]
обязательно

Validations:

  • String

call_report
обязательно

Validations:

  • Hash

call_report[task_id]
обязательно

Validations:

  • String


PUT /katello/api/repositories/:id/remove_packages

PUT /katello/api/repositories/:id/remove_docker_manifests

PUT /katello/api/repositories/:id/remove_puppet_modules

PUT /katello/api/repositories/:id/remove_content

Remove content from a repository

Параметры

Имя параметра Описание
id
обязательно

ID репозитория

Validations:

  • Must be a number.

ids
обязательно

Array of content ids to remove

Validations:

  • Must be an array of any type

sync_capsule
необязательно

Whether or not to sync an external capsule after upload. Default: true

Validations:

  • Must be one of: true, false, 1, 0


POST /katello/api/repositories/:id/upload_content
Добавить содержимое в репозиторий

Параметры

Имя параметра Описание
id
обязательно

ID репозитория

Validations:

  • Must be a number.

content
обязательно

Отправляемые файлы (один или несколько).

Validations:

  • File


PUT /katello/api/repositories/:id/import_uploads
Импорт новых компонентов из репозитория

Параметры

Имя параметра Описание
id
обязательно

ID репозитория

Validations:

  • Must be a number.

upload_ids
необязательно

Массив импортируемых идентификаторов передачи

Validations:

  • Must be an array of any type

async
необязательно

Do not wait for the ImportUpload action to finish. Default: false

Validations:

  • Must be one of: true, false, 1, 0

publish_repository
необязательно

Whether or not to regenerate the repository on disk. Default: true

Validations:

  • Must be one of: true, false, 1, 0

sync_capsule
необязательно

Whether or not to sync an external capsule after upload. Default: true

Validations:

  • Must be one of: true, false, 1, 0

uploads
необязательно

Array of uploads to import

Validations:

  • Must be an Array of nested elements

uploads[id]
обязательно

Validations:

  • String

uploads[size]
необязательно

Validations:

  • String

uploads[checksum]
необязательно

Validations:

  • String

uploads[name]
необязательно

Needs to only be set for file repositories or docker tags

Validations:

  • String

uploads[digest]
необязательно

Needs to only be set for docker tags

Validations:

  • String


GET /katello/api/repositories/:id/gpg_key_content
Вернуть содержимое ключа GPG, используемого в yum

Параметры

Имя параметра Описание
id
обязательно

Validations:

  • Must be a number.