Description
This function returns Greylisting's status for a cPanel account's domains.
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 |
cPGreyList |
hash |
A hash of the number of domains with Greylisting enabled or disabled. |
This hash contains thetotal_disabled and total_enabledreturns. |
|
total_disabled |
integer |
The number of domains with Greylisting disabled. The function returns this value in thecPGreyList hash. |
A positive integer. |
1 |
total_enabled |
integer |
The number of domains with Greylisting enabled. The function returns this value in thecPGreyList hash. |
A positive integer. |
0 |
domain |
string |
The domain. |
A valid domain on the cPanel account. |
example.com |
dependencies |
array |
An array of domains that your changes to a selected domain will affect. |
An array of valid domains on the cPanel account. |
"this.com", "that.com", |
type |
string |
The domain type. |
|
main |
searchhint |
string |
A comma-separated list of domain-related search terms. |
A comma-separated list of string values. |
this, that, andthe other.
|
enabled |
Boolean |
Whether Greylisting is enabled. |
|
0 |