# 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

Параметры

Имя параметра Описание
organization_id
обязательно

идентификатор организации

Validations:

  • Must be a number.

name
необязательно

name of the Content Credential

Validations:

  • String

content_type
необязательно

type of content

Validations:

  • String

search
необязательно

Поиск строки

Validations:

  • String

page
необязательно

Номер страницы, начиная с 1

Validations:

  • Must be a number.

per_page
необязательно

Число элементов на странице

Validations:

  • Must be a number.

order
необязательно

Sort field and order, eg. 'id DESC'

Validations:

  • String

full_result
необязательно

Показывать все результаты?

Validations:

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

sort
необязательно

Хэш параметра «order»

Validations:

  • Hash

sort[by]
необязательно

Поле сортировки

Validations:

  • String

sort[order]
необязательно

Функции сортировки (например, ASC — по возрастанию)

Validations:

  • String


POST /katello/api/content_credentials
Create a content credential

Параметры

Имя параметра Описание
organization_id
обязательно

идентификатор организации

Validations:

  • Must be a number.

name
обязательно

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
обязательно

type of content

Validations:

  • String

content
обязательно

public key block in DER encoding or certificate content

Validations:

  • String


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

Параметры

Имя параметра Описание
id
обязательно

content credential numeric identifier

Validations:

  • Must be a number.


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

Параметры

Имя параметра Описание
id
обязательно

content credential numeric identifier

Validations:

  • Must be a number.

name
необязательно

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
необязательно

type of content

Validations:

  • String

content
необязательно

public key block in DER encoding or certificate content

Validations:

  • String


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

Параметры

Имя параметра Описание
id
обязательно

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

Параметры

Имя параметра Описание
id
обязательно

Validations:

  • Must be a number.


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

Параметры

Имя параметра Описание
id
обязательно

content credential numeric identifier

Validations:

  • Must be a number.

content
обязательно

содержимое файла

Validations:

  • File