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


GET /katello/api/gpg_keys
List gpg keys

Params

Param Name Description
organization_id
Required

organization identifier

Validations:

  • number.

name
Optional

name of the GPG key

Validations:

  • String

search
Optional

Search string

Validations:

  • String

page
Optional

Page number, starting at 1

Validations:

  • number.

per_page
Optional

Number of results per page to return

Validations:

  • number.

order
Optional

Sort field and order, eg. 'name DESC'

Validations:

  • String

full_results
Optional

Whether or not to show all results

Validations:

  • boolean

sort
Optional

Hash version of 'order' param

Validations:

  • Hash

sort[by]
Optional

Field to sort the results on

Validations:

  • String

sort[order]
Optional

How to order the sorted results (e.g. ASC for ascending)

Validations:

  • String


POST /katello/api/gpg_keys
Create a gpg key

Params

Param Name Description
organization_id
Required

organization identifier

Validations:

  • number.

name
Required

identifier of the gpg key

Validations:

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

content
Required

public key block in DER encoding

Validations:

  • String


GET /katello/api/gpg_keys/:id
Show a gpg key

Params

Param Name Description
id
Required

gpg key numeric identifier

Validations:

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


PUT /katello/api/gpg_keys/:id
Update a repository

Params

Param Name Description
id
Required

gpg key numeric identifier

Validations:

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

name
Optional

identifier of the gpg key

Validations:

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

content
Optional

public key block in DER encoding

Validations:

  • String


DELETE /katello/api/gpg_keys/:id
Destroy a gpg key

Params

Param Name Description
id
Required

gpg key numeric identifier

Validations:

  • number.


POST /katello/api/gpg_keys/:id/content
Upload gpg key contents

Params

Param Name Description
id
Required

gpg key numeric identifier

Validations:

  • number.

content
Required

file contents

Validations:

  • File