# 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

Paramètres

Nom du paramètre Description
organization_id
requis

identifiant de l'organisation

Validations:

  • Must be a number.

name
optionel

name of the Content Credential

Validations:

  • String

content_type
optionel

type of content

Validations:

  • String

search
optionel

Rechercher une chaîne

Validations:

  • String

page
optionel

Numéro de la page, commençant par 1

Validations:

  • Must be a number.

per_page
optionel

Nombre de résultats par page à renvoyer

Validations:

  • Must be a number.

order
optionel

Sort field and order, eg. 'id DESC'

Validations:

  • String

full_result
optionel

Afficher tous les résultats ou pas

Validations:

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

sort
optionel

Version Hash des paramètres d'« ordre »

Validations:

  • Hash

sort[by]
optionel

Champs dans lequel trier les résultats

Validations:

  • String

sort[order]
optionel

Comment classer les résultats triés (ex : ASC for ascending ou CRO pour croissant)

Validations:

  • String


POST /katello/api/content_credentials
Create a content credential

Paramètres

Nom du paramètre Description
organization_id
requis

identifiant de l'organisation

Validations:

  • Must be a number.

name
requis

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
requis

type of content

Validations:

  • String

content
requis

public key block in DER encoding or certificate content

Validations:

  • String


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

Paramètres

Nom du paramètre Description
id
requis

content credential numeric identifier

Validations:

  • Must be a number.


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

Paramètres

Nom du paramètre Description
id
requis

content credential numeric identifier

Validations:

  • Must be a number.

name
optionel

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
optionel

type of content

Validations:

  • String

content
optionel

public key block in DER encoding or certificate content

Validations:

  • String


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

Paramètres

Nom du paramètre Description
id
requis

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

Paramètres

Nom du paramètre Description
id
requis

Validations:

  • Must be a number.


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

Paramètres

Nom du paramètre Description
id
requis

content credential numeric identifier

Validations:

  • Must be a number.

content
requis

contenus de fichier

Validations:

  • File