Description
This function lists authorized remote hosts for the account's databases.
Warning:
We strongly recommend that you use the following UAPI function instead of this function:
Mysql::locate_server
— This function returns information about the account's MySQL® host.
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 |
A list of authorized database hostnames. |
One or more valid database hostnames. |
remote.example.com |
reason |
string |
A reason for failure. Note: This function only returns a reasonvalue if it failed. |
A string that describes the error. |
This is an error message. |
result |
Boolean |
Whether the function succeeded. |
|
1 |