Description
This function retrieves a domain's default address.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
domain |
string |
The domain. If you do not specify a value, the function lists default addresses for all of the cPanel account's domains. |
A valid domain on the cPanel account. |
example.com |
Returns
Return |
Type |
Description |
Possible values |
Example |
|
hash |
A hash of data for a domain. |
This hash includes the defaultaddress anddomain parameters. |
|
domain |
string |
The domain name. The function includes this parameter in the unnamed hash for each domain. |
A valid domain on the cPanel account. |
example.com |
defaultaddress |
string |
The domain's default address. The function includes this parameter in the unnamed hash for each domain. |
|
user |