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


GET /katello/api/gpg_keys
Elenca le chiavi gpg

Params

Param Name Description
organization_id
Required

identificatore organizzazione

Validations:

  • number.

name
Optional

nome della chiave GPG

Validations:

  • String

search
Optional

Cerca stringa

Validations:

  • String

page
Optional

Numero pagina, iniziando da 1

Validations:

  • number.

per_page
Optional

Numero di risultati per pagina da ritornare

Validations:

  • number.

order
Optional

Campo e ordine per la ricerca, es. 'nome DISC'

Validations:

  • String

full_results
Optional

Indica se mostrare tutti i risultati

Validations:

  • boolean

sort
Optional

Versione hash del parametro 'order'

Validations:

  • Hash

sort[by]
Optional

Campo nel quale ordinare i risultati

Validations:

  • String

sort[order]
Optional

Come ordinare i risultati (es. ASC per ascendente)

Validations:

  • String


POST /katello/api/gpg_keys
Crea una chiave gpg

Params

Param Name Description
organization_id
Required

identificatore organizzazione

Validations:

  • number.

name
Required

identificatore della chiave gpg

Validations:

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

content
Required

blocco chiave pubblica nella codifica DER

Validations:

  • String


GET /katello/api/gpg_keys/:id
Mostra una chiave gpg

Params

Param Name Description
id
Required

identificatore numerico della chiave gpg

Validations:

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


PUT /katello/api/gpg_keys/:id
Aggiorna un repositorio

Params

Param Name Description
id
Required

identificatore numerico della chiave gpg

Validations:

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

name
Optional

identificatore della chiave gpg

Validations:

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

content
Optional

blocco chiave pubblica nella codifica DER

Validations:

  • String


DELETE /katello/api/gpg_keys/:id
Eliminauna chiave gpg

Params

Param Name Description
id
Required

identificatore numerico della chiave gpg

Validations:

  • number.


POST /katello/api/gpg_keys/:id/content
Carica i contenuti della chiave gpg

Params

Param Name Description
id
Required

identificatore numerico della chiave gpg

Validations:

  • number.

content
Required

contenuti del file

Validations:

  • File