# 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

Parametri

Nome parametro Descrizione
organization_id
richiesto

identificatore organizzazione

Validations:

  • Must be a number.

name
opzionale

name of the Content Credential

Validations:

  • String

content_type
opzionale

type of content

Validations:

  • String

search
opzionale

Cerca stringa

Validations:

  • String

page
opzionale

Numero pagina, iniziando da 1

Validations:

  • Must be a number.

per_page
opzionale

Numero di risultati per pagina da ritornare

Validations:

  • Must be a number.

order
opzionale

Sort field and order, eg. 'id DESC'

Validations:

  • String

full_result
opzionale

Indica se mostrare tutti i risultati

Validations:

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

sort
opzionale

Versione hash del parametro 'order'

Validations:

  • Hash

sort[by]
opzionale

Campo nel quale ordinare i risultati

Validations:

  • String

sort[order]
opzionale

Come ordinare i risultati (es. ASC per ascendente)

Validations:

  • String


POST /katello/api/content_credentials
Create a content credential

Parametri

Nome parametro Descrizione
organization_id
richiesto

identificatore organizzazione

Validations:

  • Must be a number.

name
richiesto

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
richiesto

type of content

Validations:

  • String

content
richiesto

public key block in DER encoding or certificate content

Validations:

  • String


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

Parametri

Nome parametro Descrizione
id
richiesto

content credential numeric identifier

Validations:

  • Must be a number.


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

Parametri

Nome parametro Descrizione
id
richiesto

content credential numeric identifier

Validations:

  • Must be a number.

name
opzionale

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
opzionale

type of content

Validations:

  • String

content
opzionale

public key block in DER encoding or certificate content

Validations:

  • String


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

Parametri

Nome parametro Descrizione
id
richiesto

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

Parametri

Nome parametro Descrizione
id
richiesto

Validations:

  • Must be a number.


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

Parametri

Nome parametro Descrizione
id
richiesto

content credential numeric identifier

Validations:

  • Must be a number.

content
richiesto

contenuti del file

Validations:

  • File