Remove IP address from Greylisting trusted hosts

This function deletes an IP address from the Greylisting Trusted Hosts list.

SecurityBasicAuth
Request
query Parameters
ip
required
string

The record's IP address, or a range of IP addresses.

Note:

To add multiple IP addresses, increment the parameter name (for example, ip-1, ip-2, ip-3).

Examples:
ip=192.168.0.1/16
ip=2001:db8::/32
Multiple IP addresses.
ip=ip-1=192.168.0.1&ip-2=192.168.0.2&ip-3=192.168.0.3
A single IP address.
ip=192.168.0.1
ip=192.0.2.0
ip=2001:db8::1
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/delete_cpgreylist_trusted_host
Request samples
whmapi1 --output=jsonpretty \
  delete_cpgreylist_trusted_host \
  ip='192.168.0.1'
Response samples
application/json
{
  • "data": {
    • "ips_failed": {
      • "5.5": "Invalid IP address or range: “5.5”"
      },
    • "ips_removed": [
      • "192.168.0.1",
      • "2001:db8::1"
      ]
    },
  • "metadata": {
    • "command": "delete_cpgreylist_trusted_host",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}