This function returns Greylisting's status for a cPanel account's domains.
uapi --output=jsonpretty \ --user=username \ cPGreyList \ list_domains
{- "apiversion": 3,
- "func": "list_domains",
- "module": "cPGreyList",
- "result": {
- "data": [
- {
- "cPGreyList": {
- "total_disabled": 1,
- "total_enabled": 0
}, - "dependencies": [
- "this.com",
- "that.com",
- "theother.com"
], - "domain": "example.com",
- "enabled": 0,
- "searchhint": "this, that, and the other.",
- "type": "main"
}
], - "errors": null,
- "messages": null,
- "metadata": {
- "transformed": 1
}, - "status": 1,
- "warnings": null
}
}