Return Greylisting trusted hosts

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

Authorizations:

Responses

Response Schema: application/json
object
object

Request samples

whmapi1 --output=jsonpretty \
  read_cpgreylist_trusted_hosts

Response samples

Content type
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
    }
}