Description
This function retrieves a user's private GPG keys.
Warning:
We strongly recommend that you use UAPI instead of cPanel API 2. However, no equivalent UAPI function exists.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
This function does not accept parameters.
Returns
Return |
Type |
Description |
Possible values |
Example |
date |
string |
The key's creation date. |
A comma-separated list of dates in YYYY-MM-DD format, where:
|
2014-10-14 |
name |
string |
The key's long and short names. |
A string value. Note: The key's short name and encoded email address are in parenthesis. |
John Doe (user)
|
key |
string |
The key's characteristics. |
The key's ID, length long name, short name, and encoded email address. Note:
|
738538C1 [1024D] John Doe (user)(user@example.com)
|
|
string |
The email address encoded in the key. |
A valid email address. |
user@example.com |
keyid |
string |
The key's ID. |
A string value. |
738538C1 |
bits |
string |
The key's length. |
The key's length, in bits. |
1024D |
id |
string |
The key's ID. |
A string value. |
738538C1 |
type |
string |
Whether the key is public. |
|
sec |
reason |
string |
A reason for failure. Note:
This function only returns areasonvalue if there was an error.
|
A string that describes the error. |
This is an error message. |
result |
Boolean |
Whether the function succeeded
|
|
1 |