# 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

Params

Param name Description
organization_id
required

Organization identifier

Validations:

  • Must be a number.

name
optional

Name of the Content Credential

Validations:

  • String

content_type
optional

Type of content

Validations:

  • String

search
optional

Search string

Validations:

  • String

page
optional

Page number, starting at 1

Validations:

  • Must be a number.

per_page
optional

Number of results per page to return

Validations:

  • Must be a number.

order
optional

Sort field and order, eg. 'id DESC'

Validations:

  • String

full_result
optional

Whether or not to show all results

Validations:

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

sort_by
optional

Field to sort the results on

Validations:

  • String

sort_order
optional

How to order the sorted results (e.g. ASC for ascending)

Validations:

  • String


POST /katello/api/content_credentials
Create a Content Credential

Params

Param name Description
organization_id
required

Organization identifier

Validations:

  • Must be a number.

name
required

Name of the Content Credential

Validations:

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

content_type
required

Type of content: “cert”, “gpg_key”

Validations:

  • String

content
required

Public key block in DER encoding or certificate content

Validations:

  • String


GET /katello/api/content_credentials/:id
Show a Content Credential

Params

Param name Description
id
required

Content Credential numeric identifier

Validations:

  • Must be a number.


PUT /katello/api/content_credentials/:id
Update a Content Credential

Params

Param name Description
id
required

Content Credential ID

Validations:

  • Must be a number.

name
optional

Name 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: “cert”, “gpg_key”

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

Params

Param name Description
id
required

Content Credential ID

Validations:

  • Must be a number.


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

Params

Param name Description
id
required

Validations:

  • Must be a number.


POST /katello/api/content_credentials/:id/content
Upload Content Credential contents

Params

Param name Description
id
required

Content Credential ID

Validations:

  • Must be a number.

content
required

File contents

Validations:

  • File