# Description

Content Credentials are used to store credentials like GPG Keys and Certificates for the authentication to Products / Repositories.


GET /katello/api/content_credentials
List content credentials

Parámetros

Nombre del parámetro Descripción
organization_id
requerido

identificador de la organización

Validations:

  • Must be a number.

name
opcional

name of the Content Credential

Validations:

  • String

content_type
opcional

type of content

Validations:

  • String

search
opcional

Buscar cadena

Validations:

  • String

page
opcional

Número de página, comenzando por 1

Validations:

  • Must be a number.

per_page
opcional

Número de resultados por página para devolver

Validations:

  • Must be a number.

order
opcional

Sort field and order, eg. 'id DESC'

Validations:

  • String

full_result
opcional

Si se muestran o no todos los resultados

Validations:

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

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/content_credentials
Create a content credential

Parámetros

Nombre del parámetro Descripción
organization_id
requerido

identificador de la organización

Validations:

  • Must be a number.

name
requerido

identifier of the content credential

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..

content_type
requerido

type of content

Validations:

  • String

content
requerido

public key block in DER encoding or certificate content

Validations:

  • String


GET /katello/api/content_credentials/:id
Show a content credential

Parámetros

Nombre del parámetro Descripción
id
requerido

content credential numeric identifier

Validations:

  • Must be a number.


PUT /katello/api/content_credentials/:id
Update a content credential

Parámetros

Nombre del parámetro Descripción
id
requerido

content credential numeric identifier

Validations:

  • Must be a number.

name
opcional

identifier of the content credential

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..

content_type
opcional

type of content

Validations:

  • String

content
opcional

public key block in DER encoding or certificate content

Validations:

  • String


DELETE /katello/api/content_credentials/:id
Destroy a content credential

Parámetros

Nombre del parámetro Descripción
id
requerido

content credential numeric identifier

Validations:

  • Must be a number.


GET /katello/api/content_credentials/:id/content
Return the content of a content credential, used directly by yum

Parámetros

Nombre del parámetro Descripción
id
requerido

Validations:

  • Must be a number.


POST /katello/api/content_credentials/:id/content
Upload content credential contents

Parámetros

Nombre del parámetro Descripción
id
requerido

content credential numeric identifier

Validations:

  • Must be a number.

content
requerido

contenido de archivo

Validations:

  • File