7 functions, invoked through the cpanel_uapi tool.
scope cpanel:uapi
Call any function with cpanel_uapi(service_id, module="GPG", function, params). Live availability depends on the cPanel features JetHost has enabled on your account — call list_cpanel_operations to see what is active.
The ID of the GPG key that you wish to delete. Note: The function will delete all keys that match this ID. If you set this parameter to a public key, the function will delete the public key. If you set this parameter to a public and private key pair, the function will delete the public and private keys. To obtain the desired key, call the UAPI GPG::list_secret_keys function.
Response — normalized as { ok, data, errors[], warnings[] }; data contains:
When the key will expire, in Unix time format. Note: If the key does not expire, this will be an empty string.
idstring
The key's ID.
typestring
The type of key. Note: This will always be "pub" because we are listing public keys.
One of: pub
user_idstring
The user ID of the key which consists of the following space-separated values: The username. The key's comment in parentheses. * The key's email address in angle brackets (<>).
This function lists the GnuPG (GPG) secret keys for the currently-authenticated account.
No parameters.
Response — normalized as { ok, data, errors[], warnings[] }; data is an array of:
algorithmstring
The key's algorithm. RSADSA
One of: RSADSA
bitsinteger
The key's length.
createdinteger
When the function created the key.
expiresinteger
When the key will expire.
idstring
The key's ID.
typestring
The type of key. * sec is the only possible value.
One of: sec
user_idstring
The user ID of the key. The system returns this value as a space-separated string with the following values: The username. A comment in parentheses. * The key's email address in angle brackets (<>).