# 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

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
required

type of content

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 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

Params

Param name Description
id
required

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

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 numeric identifier

Validations:

  • Must be a number.

content
required

file contents

Validations:

  • File