This function adds an IP address to the Greylisting Trusted Hosts list.
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ create_cpgreylist_trusted_host \ ip='192.168.0.1'
{- "data": {
- "comment": "NoComment",
- "ips_added": [
- {
- "comment": "Fascinating",
- "create_time": "2015-02-17T10:08:26.000Z",
- "host_ip": "192.168.0.1",
- "id": 42
}
], - "ips_failed": {
- "comment": "Sorry, 192.168 is not a valid IP address."
}
}, - "metadata": {
- "command": "create_cpgreylist_trusted_host",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}