admin.gpg

Description

Provides methods to manage GPG data.

Namespace:

admin.gpg

Method: listGpgKeys

HTTP GET

Description:

Get all GPG keys from the keyring

Parameters:

  • string sessionKey

Returns:

  • array :

    • struct GPG key

      • int "keyType" - OpenPGP public key algorithm type

      • int "keySize" - Key size in bits

      • string "fingerprint" - Fingerprint of the GPG key

      • array "names" - Users associated with the GPG key

Method: removeGpgKey

HTTP POST

Description:

Remove a GPG key from the keyring

Parameters:

  • string sessionKey

  • string fingerprint

Returns:

  • int - 1 on success, exception thrown otherwise.

Method: uploadGpgKey

HTTP POST

Description:

Upload and add a GPG key to the keyring

Parameters:

  • string sessionKey

  • string gpgKey

Returns:

  • int - 1 on success, exception thrown otherwise.