Description
This function retrieves information about all of an account's databases.
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
|
---|---|---|---|---|
array of hashes | An array of hashes that contain information about each database. | Each hash contains the db and size returns and thedbusers array. |
||
|
array |
An array of database users that are authorized to access the database. The function returns this value in the unnamed hash. |
One or more valid usernames. |
example_user1 |
|
string |
The database's name. The function returns this value in the unnamed hash. |
A valid database name. | example_database |
|
integer |
The size of the database. The function returns this value in the unnamed hash. |
An integer that represents the database size, in bytes. | 0 |
reason |
string |
A reason for failure. Note: This function only returns a |
A string that describes the error. |
This is an error message. |
result |
Boolean |
Whether the function succeeded. |
|
1 |