# 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

Parametry

Nazwa parametru Opis
organization_id
wymagany

organization identifier

Validations:

  • Must be a number.

name
opcjonalny

name of the Content Credential

Validations:

  • String

content_type
opcjonalny

type of content

Validations:

  • String

search
opcjonalny

Search string

Validations:

  • String

page
opcjonalny

Page number, starting at 1

Validations:

  • Must be a number.

per_page
opcjonalny

Number of results per page to return

Validations:

  • Must be a number.

order
opcjonalny

Sort field and order, eg. 'id DESC'

Validations:

  • String

full_result
opcjonalny

Whether or not to show all results

Validations:

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

sort
opcjonalny

Hash version of 'order' param

Validations:

  • Hash

sort[by]
opcjonalny

Field to sort the results on

Validations:

  • String

sort[order]
opcjonalny

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

Validations:

  • String


POST /katello/api/content_credentials
Create a content credential

Parametry

Nazwa parametru Opis
organization_id
wymagany

organization identifier

Validations:

  • Must be a number.

name
wymagany

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
wymagany

type of content

Validations:

  • String

content
wymagany

public key block in DER encoding or certificate content

Validations:

  • String


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

Parametry

Nazwa parametru Opis
id
wymagany

content credential numeric identifier

Validations:

  • Must be a number.


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

Parametry

Nazwa parametru Opis
id
wymagany

content credential numeric identifier

Validations:

  • Must be a number.

name
opcjonalny

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
opcjonalny

type of content

Validations:

  • String

content
opcjonalny

public key block in DER encoding or certificate content

Validations:

  • String


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

Parametry

Nazwa parametru Opis
id
wymagany

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

Parametry

Nazwa parametru Opis
id
wymagany

Validations:

  • Must be a number.


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

Parametry

Nazwa parametru Opis
id
wymagany

content credential numeric identifier

Validations:

  • Must be a number.

content
wymagany

file contents

Validations:

  • File