# 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