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


GET /katello/api/gpg_keys
List gpg keys

Parametry

Nazwa parametru Opis
organization_id
wymagany

organization identifier

Validations:

  • Must be a number.

name
opcjonalny

name of the GPG key

Validations:

  • String

search
opcjonalny

Search string

Validations:

  • String

page
opcjonalny

Page number, starting at 1

Validations:

  • Must be a number.

per_page
opcjonalny

Number of results per page to return

Validations:

  • Must be a number.

order
opcjonalny

Sort field and order, eg. 'id DESC'

Validations:

  • String

full_result
opcjonalny

Whether or not to show all results

Validations:

  • Must be one of: true, false, 1, 0

sort
opcjonalny

Hash version of 'order' param

Validations:

  • Hash

sort[by]
opcjonalny

Field to sort the results on

Validations:

  • String

sort[order]
opcjonalny

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

Validations:

  • String


POST /katello/api/gpg_keys
Create a gpg key

Parametry

Nazwa parametru Opis
organization_id
wymagany

organization identifier

Validations:

  • Must be a number.

name
wymagany

identifier of the gpg key

Validations:

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

content
wymagany

public key block in DER encoding

Validations:

  • String


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

Parametry

Nazwa parametru Opis
id
wymagany

gpg key numeric identifier

Validations:

  • Must be a number.


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

Parametry

Nazwa parametru Opis
id
wymagany

gpg key numeric identifier

Validations:

  • Must be a number.

name
opcjonalny

identifier of the gpg key

Validations:

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

content
opcjonalny

public key block in DER encoding

Validations:

  • String


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

Parametry

Nazwa parametru Opis
id
wymagany

gpg key numeric identifier

Validations:

  • Must be a number.


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

Parametry

Nazwa parametru Opis
id
wymagany

Validations:

  • Must be a number.


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

Parametry

Nazwa parametru Opis
id
wymagany

gpg key numeric identifier

Validations:

  • Must be a number.

content
wymagany

file contents

Validations:

  • File