# 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