GET /katello/api/repositories
Lista de repositórios habilitados

GET /katello/api/content_views/:id/repositories
Lista de repositórios para uma visualização de conteúdo

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

Parâmentros

Nome parâmetro Descrição
organization_id
opcional

ID de uma organização para mostrar repositórios de

Validations:

  • number.

product_id
opcional

ID de um produto para mostrar repositórios de

Validations:

  • number.

environment_id
opcional

ID de um ambiente para mostrar repositórios em

Validations:

  • number.

content_view_id
opcional

ID de uma visualização de conteúdo para mostrar repositórios em

Validations:

  • number.

content_view_version_id
opcional

ID de versão de visualização de conteúdo para exibir repositórios em

Validations:

  • number.

deb_id
opcional

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

Validations:

  • String

erratum_id
opcional

Id of an erratum to find repositories that contain the erratum

Validations:

  • String

rpm_id
opcional

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

Validations:

  • String

ostree_branch_id
opcional

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

Validations:

  • String

library
opcional

exibir repositórios na Biblioteca e a visualização de conteúdo padrão

Validations:

  • boolean

content_type
opcional

limit to only repositories of this type

Validations:

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

name
opcional

nome do repositório

Validations:

  • String

available_for
opcional

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

Validations:

  • String

search
opcional

Buscar faixa

Validations:

  • String

page
opcional

Número de página, iniciando em 1

Validations:

  • number.

per_page
opcional

Número de resultados por página para retornar

Validations:

  • number.

order
opcional

Classificar campo e ordem, ex. 'name DESC'

Validations:

  • String

full_result
opcional

Se deve ou não exibir todos os resultados

Validations:

  • boolean

sort
opcional

Versão Hash de param de “ordem”

Validations:

  • Hash

sort[by]
opcional

Campo para classificar os resultados

Validations:

  • String

sort[order]
opcional

Como encomendar os resultados classificados (por exemplo ASC para ascendente)

Validations:

  • String


POST /katello/api/repositories
Criar um repositório personalizado

Parâmentros

Nome parâmetro Descrição
name
requerido

Validations:

  • String

label
opcional

Validations:

  • String

product_id
requerido

Produtos ao qual o repositório pertence

Validations:

  • number.

content_type
requerido

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

Validations:

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

url
opcional

url da fonte do repositório

Validations:

  • String

gpg_key_id
opcional

Id de uma chave gpg que será atribuído ao novo repositório

Validations:

  • number.

unprotected
opcional

verdadeiro se este repositório puder ser publicado via HTTP

Validations:

  • boolean

checksum_type
opcional

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

Validations:

  • String

docker_upstream_name
opcional

nome do repositório do docker upstream

Validations:

  • String

download_policy
opcional

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

Validations:

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

mirror_on_sync
opcional

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

Validations:

  • boolean

verify_ssl_on_sync
opcional

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

Validations:

  • boolean

upstream_username
opcional

Username of the upstream repository user used for authentication

Validations:

  • String

upstream_password
opcional

Password of the upstream repository user used for authentication

Validations:

  • String

ostree_upstream_sync_policy
opcional

policies for syncing upstream ostree repositories.

Validations:

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

ostree_upstream_sync_depth
opcional

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

Validations:

  • number.

deb_releases
opcional

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

Validations:

  • String

deb_components
opcional

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

Validations:

  • String

deb_architectures
opcional

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

Validations:

  • String

ignore_global_proxy
opcional

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

Validations:

  • boolean


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

Parâmentros

Nome parâmetro Descrição
creatable
opcional

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

Validations:

  • boolean


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

Parâmentros

Nome parâmetro Descrição
id
requerido

Repository identifier

Validations:

  • number.


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

Parâmentros

Nome parâmetro Descrição
id
requerido

ID repositório

Validations:

  • number.


POST /katello/api/repositories/:id/sync
Sinc um repositório

Parâmentros

Nome parâmetro Descrição
id
requerido

ID repositório

Validations:

  • number.

source_url
opcional

temporarily override feed URL for sync

Validations:

  • String

incremental
opcional

perform an incremental import

Validations:

  • boolean

skip_metadata_check
opcional

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

Validations:

  • boolean

validate_contents
opcional

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

Validations:

  • boolean


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

Parâmentros

Nome parâmetro Descrição
id
requerido

Repository identifier

Validations:

  • number.

export_to_iso
opcional

Export to ISO format

Validations:

  • boolean

iso_mb_size
opcional

maximum size of each ISO in MB

Validations:

  • number.

since
opcional

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

Validations:

  • Date


PUT /katello/api/repositories/:id
Atualizar um repositório

Parâmentros

Nome parâmetro Descrição
id
requerido

ID repositório

Validations:

  • number.

name
opcional

Validations:

  • String

url
opcional

url da fonte do repositório

Validations:

  • String

gpg_key_id
opcional

Id de uma chave gpg que será atribuído ao novo repositório

Validations:

  • number.

unprotected
opcional

verdadeiro se este repositório puder ser publicado via HTTP

Validations:

  • boolean

checksum_type
opcional

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

Validations:

  • String

docker_upstream_name
opcional

nome do repositório do docker upstream

Validations:

  • String

download_policy
opcional

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

Validations:

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

mirror_on_sync
opcional

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

Validations:

  • boolean

verify_ssl_on_sync
opcional

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

Validations:

  • boolean

upstream_username
opcional

Username of the upstream repository user used for authentication

Validations:

  • String

upstream_password
opcional

Password of the upstream repository user used for authentication

Validations:

  • String

ostree_upstream_sync_policy
opcional

policies for syncing upstream ostree repositories.

Validations:

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

ostree_upstream_sync_depth
opcional

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

Validations:

  • number.

deb_releases
opcional

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

Validations:

  • String

deb_components
opcional

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

Validations:

  • String

deb_architectures
opcional

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

Validations:

  • String

ignore_global_proxy
opcional

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

Validations:

  • boolean


DELETE /katello/api/repositories/:id
Destruir um repositório padronizado

Parâmentros

Nome parâmetro Descrição
id
requerido

Validations:

  • number.


POST /katello/api/repositories/sync_complete

URL for post sync notification from pulp

Parâmentros

Nome parâmetro Descrição
token
requerido

token secreto compartilhado

Validations:

  • String

payload
requerido

Validations:

  • Hash

payload[repo_id]
requerido

Validations:

  • String

call_report
requerido

Validations:

  • Hash

call_report[task_id]
requerido

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

Parâmentros

Nome parâmetro Descrição
id
requerido

ID repositório

Validations:

  • number.

ids
requerido

Array of content ids to remove

Validations:

  • Must be an array of any type

sync_capsule
opcional

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

Validations:

  • boolean


POST /katello/api/repositories/:id/upload_content
Carregar conteúdo para o repositório

Parâmentros

Nome parâmetro Descrição
id
requerido

ID repositório

Validations:

  • number.

content
requerido

Arquivos de conteúdo para carregar. Pode ser um arquivo único ou matriz de arquivos.

Validations:

  • File


PUT /katello/api/repositories/:id/import_uploads
Importar carregamentos para um repositório

Parâmentros

Nome parâmetro Descrição
id
requerido

Id de repositório

Validations:

  • number.

upload_ids
opcional

Matriz de carregamento de Ids para importar

Validations:

  • Must be an array of any type

async
opcional

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

Validations:

  • boolean

publish_repository
opcional

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

Validations:

  • boolean

sync_capsule
opcional

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

Validations:

  • boolean

uploads
opcional

Array of uploads to import

Validations:

  • Must be an Array of nested elements

uploads[id]
requerido

Validations:

  • String

uploads[size]
opcional

Validations:

  • String

uploads[checksum]
opcional

Validations:

  • String

uploads[name]
opcional

Needs to only be set for file repositories

Validations:

  • String


GET /katello/api/repositories/:id/gpg_key_content
Retornar o conteúdo de uma chave gpg repo, usada diretamente pelo yum

Parâmentros

Nome parâmetro Descrição
id
requerido

Validations:

  • number.