Description
This function lists the cPanel account's parked domains.
Warning:
We strongly recommend that you use the following UAPI function instead of this function:
-
DomainInfo::list_domains
— This function lists the cPanel account's domains.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Return |
Type |
Description |
Possible values |
Example |
regex |
string |
A Perl Compatible Regular Expression (PCRE) that filters the results. If you do not enter a value for this parameter, the function returns all parked domains that reside on the server. |
A valid PCRE. |
domain |
Returns
Return |
Type |
Description |
Possible values |
Example |
domain |
string |
The parked domain's name. |
A valid domain on the account. |
jack.com
|
status |
string |
Whether the parked domain redirects to another domain. |
|
not redirected |
reldir |
string |
The path to the parked domain's document root. |
The path to the addon domain's document root, relative to the cPanel account's home directory. The function prefaces this value with home: |
home:public_html |
dir |
string |
The absolute path to the parked domain's document root. |
The absolute path to the parked domain's document root. |
/home/example/public_html |
basedir |
string |
The directory that contains the parked domain's document root. |
The directory path to the parked domain's document root. |
public_html |
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 |