Return Greylisting trusted hosts

This function retrieves the entries on the Greylisting Trusted Hosts list.

SecurityBasicAuth
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/read_cpgreylist_trusted_hosts
Request samples
whmapi1 --output=jsonpretty \
  read_cpgreylist_trusted_hosts
Response samples
application/json
{
  • "data": {
    • "greylist_trusted_hosts": [
      • {
        • "comment": "Example",
        • "create_time": "2015-03-24T10:22:38.000Z",
        • "host_ip": "192.0.2.0",
        • "id": 19
        }
      ]
    },
  • "metadata": {
    • "command": "read_cpgreylist_trusted_hosts",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}