GET /katello/api/repositories
Lista de repositorios habilitados

GET /katello/api/content_views/:id/repositories
Lista de repositorios para una vista de contenido

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ámetros

Nombre del parámetro Descripción
organization_id
opcional

ID de una organización en la mostrar los repositorios

Validations:

  • number.

product_id
opcional

ID de un producto del que mostrar los repositorios

Validations:

  • number.

environment_id
opcional

ID de un entorno en el que mostrar los repositorios

Validations:

  • number.

content_view_id
opcional

ID de una vista de contenido en la que mostrar los repositorios

Validations:

  • number.

content_view_version_id
opcional

ID de una versión de vista de contenido para mostrar los repositorios

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

mostrar los repositorios en la biblioteca y la vista de contenido predeterminada

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

nombre del repositorio

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 cadena

Validations:

  • String

page
opcional

Número de página, comenzando por 1

Validations:

  • number.

per_page
opcional

Número de resultados por página para devolver

Validations:

  • number.

order
opcional

Orden y campo de clasificación, p. ej., 'name DESC'

Validations:

  • String

full_result
opcional

Si se muestran o no todos los resultados

Validations:

  • boolean

sort
opcional

Versión de hash del parámetro 'orden'

Validations:

  • Hash

sort[by]
opcional

Campo en el que ordenar los resultados

Validations:

  • String

sort[order]
opcional

Cómo ordenar los resultados clasificados (p. ej., ASC para orden ascendente)

Validations:

  • String


POST /katello/api/repositories
Crear un repositorio personalizado

Parámetros

Nombre del parámetro Descripción
name
requerido

Validations:

  • String

label
opcional

Validations:

  • String

product_id
requerido

Producto al que pertenece el repositorio

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 de fuente de repositorio

Validations:

  • String

gpg_key_id
opcional

ID de la clave GPG que se asignará al nuevo repositorio

Validations:

  • number.

unprotected
opcional

verdadero, si este repositorio se puede publicar mediante HTTP

Validations:

  • boolean

checksum_type
opcional

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

Validations:

  • String

docker_upstream_name
opcional

nombre del repositorio Docker principal

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ámetros

Nombre del parámetro Descripción
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ámetros

Nombre del parámetro Descripción
id
requerido

Repository identifier

Validations:

  • number.


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

Parámetros

Nombre del parámetro Descripción
id
requerido

ID de repositorio

Validations:

  • number.


POST /katello/api/repositories/:id/sync
Sincronizar un repositorio

Parámetros

Nombre del parámetro Descripción
id
requerido

ID de repositorio

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ámetros

Nombre del parámetro Descripción
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
Actualizar un repositorio

Parámetros

Nombre del parámetro Descripción
id
requerido

ID de repositorio

Validations:

  • number.

name
opcional

Validations:

  • String

url
opcional

URL de fuente de repositorio

Validations:

  • String

gpg_key_id
opcional

ID de la clave GPG que se asignará al nuevo repositorio

Validations:

  • number.

unprotected
opcional

verdadero, si este repositorio se puede publicar mediante HTTP

Validations:

  • boolean

checksum_type
opcional

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

Validations:

  • String

docker_upstream_name
opcional

nombre del repositorio Docker principal

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 un repositorio personalizado

Parámetros

Nombre del parámetro Descripción
id
requerido

Validations:

  • number.


POST /katello/api/repositories/sync_complete

URL for post sync notification from pulp

Parámetros

Nombre del parámetro Descripción
token
requerido

símbolo secreto compartido

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ámetros

Nombre del parámetro Descripción
id
requerido

ID de repositorio

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
Cargar contenido en el repositorio

Parámetros

Nombre del parámetro Descripción
id
requerido

ID de repositorio

Validations:

  • number.

content
requerido

Archivos de contenido para cargar. Puede ser uno o varios archivos.

Validations:

  • File


PUT /katello/api/repositories/:id/import_uploads
Importar cargas a un repositorio

Parámetros

Nombre del parámetro Descripción
id
requerido

ID de repositorio

Validations:

  • number.

upload_ids
opcional

Selección de ID de actualización 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
Devolver el contenido de una llave GPG de repositorio, que utiliza directamente Yum

Parámetros

Nombre del parámetro Descripción
id
requerido

Validations:

  • number.