# 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

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

검색 문자열

Validations:

  • String

page
optional

1 부터 페이지 번호

Validations:

  • Must be a number.

per_page
optional

반환할 페이지 당 결과 수

Validations:

  • Must be a number.

order
optional

Sort field and order, eg. 'id DESC'

Validations:

  • String

full_result
optional

모든 결과를 표시할 지에 대한 여부

Validations:

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

sort
optional

'order' 매개 변수의 해시 버전

Validations:

  • Hash

sort[by]
optional

결과를 정렬할 필드

Validations:

  • String

sort[order]
optional

정렬된 결고를 정렬하는 방법 (예: 오름차순의 ASC)

Validations:

  • String


POST /katello/api/content_credentials
Create a content credential

Params

Param name Description
organization_id
required

조직 ID

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

파일 컨텐츠

Validations:

  • File