GET /katello/api/repositories
Liste mit aktivierten Repositorys

GET /katello/api/content_views/:id/repositories
Liste mit Repositorys für eine Inhaltsansicht

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

Parameter

Parametername Beschreibung
organization_id
optional

ID einer Organisation, in der Repositorys gezeigt werden

Validations:

  • number.

product_id
optional

ID eines Produkts, von dem Repositorys angezeigt werden

Validations:

  • number.

environment_id
optional

ID einer Umgebung, in der Repositorys gezeigt werden

Validations:

  • number.

content_view_id
optional

ID einer Inhaltsansicht, in der Repositorys gezeigt werden

Validations:

  • number.

content_view_version_id
optional

ID einer Inhaltsansichtsversion, in der Repositorys gezeigt werden

Validations:

  • number.

deb_id
optional

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

Validations:

  • String

erratum_id
optional

Id of an erratum to find repositories that contain the erratum

Validations:

  • String

rpm_id
optional

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

Validations:

  • String

ostree_branch_id
optional

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

Validations:

  • String

library
optional

Repositorys in Library und standardmäßige Inhaltsansicht anzeigen

Validations:

  • boolean

content_type
optional

limit to only repositories of this type

Validations:

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

name
optional

Name des Repositorys

Validations:

  • String

available_for
optional

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

Validations:

  • String

search
optional

Suchbegriff

Validations:

  • String

page
optional

Seitennummer, beginnend bei 1

Validations:

  • number.

per_page
optional

Anzahl der angezeigten Ergebnisse pro Seite

Validations:

  • number.

order
optional

Sortierungsfeld und Reihenfolge, z. B. “name DESC”

Validations:

  • String

full_result
optional

Ob alle Ergebnisse angezeigt werden sollen

Validations:

  • boolean

sort
optional

Hash-Version des “order”-Parameters

Validations:

  • Hash

sort[by]
optional

Ergebnisse nach diesem Feld sortieren

Validations:

  • String

sort[order]
optional

Reihenfolge der sortierten Ergebnisse (z. B. ASC für aufsteigend)

Validations:

  • String


POST /katello/api/repositories
Benutzerdefiniertes Repository erstellen

Parameter

Parametername Beschreibung
name
verpflichtend

Validations:

  • String

label
optional

Validations:

  • String

product_id
verpflichtend

Produkt, zu dem das Repository gehört

Validations:

  • number.

content_type
verpflichtend

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

Validations:

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

url
optional

Repository-Quell-URL

Validations:

  • String

gpg_key_id
optional

ID des GPG-Schlüssels, der diesem neuen Repository zugewiesen wird

Validations:

  • number.

unprotected
optional

“true”, falls dieses Repository mittels HTTP veröffentlicht werden kann

Validations:

  • boolean

checksum_type
optional

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

Validations:

  • String

docker_upstream_name
optional

Name des Upstream-Docker-Repositorys

Validations:

  • String

download_policy
optional

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

Validations:

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

mirror_on_sync
optional

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

Validations:

  • boolean

verify_ssl_on_sync
optional

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

Validations:

  • boolean

upstream_username
optional

Username of the upstream repository user used for authentication

Validations:

  • String

upstream_password
optional

Password of the upstream repository user used for authentication

Validations:

  • String

ostree_upstream_sync_policy
optional

policies for syncing upstream ostree repositories.

Validations:

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

ostree_upstream_sync_depth
optional

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

Validations:

  • number.

deb_releases
optional

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

Validations:

  • String

deb_components
optional

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

Validations:

  • String

deb_architectures
optional

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

Validations:

  • String

ignore_global_proxy
optional

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

Validations:

  • boolean


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

Parameter

Parametername Beschreibung
creatable
optional

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.

Parameter

Parametername Beschreibung
id
verpflichtend

Repository identifier

Validations:

  • number.


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

Parameter

Parametername Beschreibung
id
verpflichtend

Repository-ID

Validations:

  • number.


POST /katello/api/repositories/:id/sync
Repository synchronisieren

Parameter

Parametername Beschreibung
id
verpflichtend

Repository-ID

Validations:

  • number.

source_url
optional

temporarily override feed URL for sync

Validations:

  • String

incremental
optional

perform an incremental import

Validations:

  • boolean

skip_metadata_check
optional

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

Validations:

  • boolean

validate_contents
optional

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

Parameter

Parametername Beschreibung
id
verpflichtend

Repository identifier

Validations:

  • number.

export_to_iso
optional

Export to ISO format

Validations:

  • boolean

iso_mb_size
optional

maximum size of each ISO in MB

Validations:

  • number.

since
optional

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

Validations:

  • Date


PUT /katello/api/repositories/:id
Repository aktualisieren

Parameter

Parametername Beschreibung
id
verpflichtend

Repository-ID

Validations:

  • number.

name
optional

Validations:

  • String

url
optional

Repository-Quell-URL

Validations:

  • String

gpg_key_id
optional

ID des GPG-Schlüssels, der diesem neuen Repository zugewiesen wird

Validations:

  • number.

unprotected
optional

“true”, falls dieses Repository mittels HTTP veröffentlicht werden kann

Validations:

  • boolean

checksum_type
optional

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

Validations:

  • String

docker_upstream_name
optional

Name des Upstream-Docker-Repositorys

Validations:

  • String

download_policy
optional

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

Validations:

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

mirror_on_sync
optional

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

Validations:

  • boolean

verify_ssl_on_sync
optional

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

Validations:

  • boolean

upstream_username
optional

Username of the upstream repository user used for authentication

Validations:

  • String

upstream_password
optional

Password of the upstream repository user used for authentication

Validations:

  • String

ostree_upstream_sync_policy
optional

policies for syncing upstream ostree repositories.

Validations:

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

ostree_upstream_sync_depth
optional

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

Validations:

  • number.

deb_releases
optional

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

Validations:

  • String

deb_components
optional

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

Validations:

  • String

deb_architectures
optional

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

Validations:

  • String

ignore_global_proxy
optional

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

Validations:

  • boolean


DELETE /katello/api/repositories/:id
Benutzerdefiniertes Repository löschen

Parameter

Parametername Beschreibung
id
verpflichtend

Validations:

  • number.


POST /katello/api/repositories/sync_complete

URL for post sync notification from pulp

Parameter

Parametername Beschreibung
token
verpflichtend

gemeinsames Token-Geheimnis

Validations:

  • String

payload
verpflichtend

Validations:

  • Hash

payload[repo_id]
verpflichtend

Validations:

  • String

call_report
verpflichtend

Validations:

  • Hash

call_report[task_id]
verpflichtend

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

Parameter

Parametername Beschreibung
id
verpflichtend

Repository-ID

Validations:

  • number.

ids
verpflichtend

Array of content ids to remove

Validations:

  • Must be an array of any type

sync_capsule
optional

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

Validations:

  • boolean


POST /katello/api/repositories/:id/upload_content
Inhalt in ein Repository hochladen

Parameter

Parametername Beschreibung
id
verpflichtend

Repository-ID

Validations:

  • number.

content
verpflichtend

Hochzuladende Inhaltsdateien. Kann eine einzelne Datei oder eine Array mit Dateien sein.

Validations:

  • File


PUT /katello/api/repositories/:id/import_uploads
Uploads in ein Repository importieren

Parameter

Parametername Beschreibung
id
verpflichtend

Repository-ID

Validations:

  • number.

upload_ids
optional

Array der zu importierenden Upload-IDs

Validations:

  • Must be an array of any type

async
optional

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

Validations:

  • boolean

publish_repository
optional

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

Validations:

  • boolean

sync_capsule
optional

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

Validations:

  • boolean

uploads
optional

Array of uploads to import

Validations:

  • Must be an Array of nested elements

uploads[id]
verpflichtend

Validations:

  • String

uploads[size]
optional

Validations:

  • String

uploads[checksum]
optional

Validations:

  • String

uploads[name]
optional

Needs to only be set for file repositories

Validations:

  • String


GET /katello/api/repositories/:id/gpg_key_content
Inhalt eines Repository-GPG-Schlüssels ausgeben, direkt verwendet von yum

Parameter

Parametername Beschreibung
id
verpflichtend

Validations:

  • number.