# Description Documents the calls for the list, read, create, update and delete operations for GPG keys


GET /katello/api/gpg_keys
列出 gpg 密钥

参数

参数名字 描述
organization_id
必填

机构识别符

Validations:

  • Must be a number.

name
选填

GPG 密钥名称

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/gpg_keys
创建 gpg 密钥

参数

参数名字 描述
organization_id
必填

机构识别符

Validations:

  • Must be a number.

name
必填

gpg 密钥识别符

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..

content
必填

DER 编码中的公钥块

Validations:

  • String


GET /katello/api/gpg_keys/:id
显示 gpg 密钥

参数

参数名字 描述
id
必填

gpg 密钥数字识别符

Validations:

  • Must be a number.


PUT /katello/api/gpg_keys/:id
更新库

参数

参数名字 描述
id
必填

gpg 密钥数字识别符

Validations:

  • Must be a number.

name
选填

gpg 密钥识别符

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..

content
选填

DER 编码中的公钥块

Validations:

  • String


DELETE /katello/api/gpg_keys/:id
消除 gpg 密钥

参数

参数名字 描述
id
必填

gpg 密钥数字识别符

Validations:

  • Must be a number.


GET /katello/api/gpg_keys/:id/content
Return the content of a gpg key, used directly by yum

参数

参数名字 描述
id
必填

Validations:

  • Must be a number.


POST /katello/api/gpg_keys/:id/content
上传 GPG 密钥内容

参数

参数名字 描述
id
必填

gpg 密钥数字识别符

Validations:

  • Must be a number.

content
必填

文件内容

Validations:

  • File