# 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
必須

組織 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]
任意

ソートされた結果を順序付ける方法 (例: ascending (昇順) の ASC)

Validations:

  • String


POST /katello/api/content_credentials
Create a content credential

パラメーター

パラメーター名 記述
organization_id
必須

組織 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