# 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

Parameter

Parametername Beschreibung
organization_id
verpflichtend

Organisations-ID

Validations:

  • Must be a number.

name
optional

name of the Content Credential

Validations:

  • String

content_type
optional

type of content

Validations:

  • String

search
optional

Suchbegriff

Validations:

  • String

page
optional

Seitennummer, beginnend bei 1

Validations:

  • Must be a number.

per_page
optional

Anzahl der angezeigten Ergebnisse pro Seite

Validations:

  • Must be a number.

order
optional

Sort field and order, eg. 'id DESC'

Validations:

  • String

full_result
optional

Ob alle Ergebnisse angezeigt werden sollen

Validations:

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

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

Parameter

Parametername Beschreibung
organization_id
verpflichtend

Organisations-ID

Validations:

  • Must be a number.

name
verpflichtend

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
verpflichtend

type of content

Validations:

  • String

content
verpflichtend

public key block in DER encoding or certificate content

Validations:

  • String


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

Parameter

Parametername Beschreibung
id
verpflichtend

content credential numeric identifier

Validations:

  • Must be a number.


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

Parameter

Parametername Beschreibung
id
verpflichtend

content credential numeric identifier

Validations:

  • Must be a number.

name
optional

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
optional

type of content

Validations:

  • String

content
optional

public key block in DER encoding or certificate content

Validations:

  • String


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

Parameter

Parametername Beschreibung
id
verpflichtend

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

Parameter

Parametername Beschreibung
id
verpflichtend

Validations:

  • Must be a number.


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

Parameter

Parametername Beschreibung
id
verpflichtend

content credential numeric identifier

Validations:

  • Must be a number.

content
verpflichtend

Dateiinhalte

Validations:

  • File