Skip to content

Latest commit

 

History

History
82 lines (61 loc) · 1.04 KB

gpg_keys.rest

File metadata and controls

82 lines (61 loc) · 1.04 KB

/appliances/:app/gpg_keys

Contents

List GPG keys of an appliance.

Spec:

Accept:
  $CT:gpg-keys

Status:
  200 Ok
Content-type:
  &Accept

Example:

< GET /appliances/123/gpg_keys
< Accept: $CT:gpg-keys

> 200 Ok
> Content-Type: $CT:gpg-keys
>
> {
>   {
>     "name": "testkey"
>   , "target": "rpm"
>   , "key": "-----BEGIN PGP PUBLIC KEY BLOCK-----..."
>   }
> }

Upload a GPG key into an appliance.

Spec:

Accept:
  $CT:gpg-keys
Content-Type:
  $CT:gpg-key

Status:
  200 Ok
Content-type:
  &Accept

Example:

< POST /appliances/123/gpg_keys
< Content-Type: $CT:gpg-key
<
< {
<   "name": "testkey"
< , "target": "rpm"
< , "key": "-----BEGIN PGP PUBLIC KEY BLOCK-----..."
< }

> 200 Ok
>
> {
>   {
>     "name": "testkey"
>   , "target": "rpm"
>   , "key": "-----BEGIN PGP PUBLIC KEY BLOCK-----..."
>   }
> }