Description
This function lists all of a reseller's cPanel accounts.
Warning:
We strongly recommend that you use the following UAPI function instead of this function:
-
Resellers::list_accounts
— This function lists all of a reseller's cPanel accounts.
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 |
|
array of hashes |
An array of hashes that contains information about the domains that the currently-authenticated user owns. |
This array of hashes includes thedomain, user, and select returns. |
|
domain |
string |
The domain that the account owns. The function returns this value in the unnamed hash. |
One or more valid domains on the server. |
example.com |
user |
string |
The cPanel account's username. The function returns this value in the unnamed hash. |
One or more valid usernames. |
example |
select |
Boolean |
Whether the specified account is the currently-authenticated user. The function returns this value in the unnamed hash. |
|
1 |
reason |
string |
A reason for failure. Note: This function only returns a reason value if there was an error. |
A string that describes the error. |
This is an error message. |
result |
Boolean |
Whether the function succeeded. |
|
1 |