This function adds a new record or records to cPHulk's whitelist or blacklist.
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ create_cphulk_record \ list_name='white' \ ip='192.168.0.1'
{- "data": {
- "comment": "George Wendt flying through the air.",
- "ip_blocks_removed": 1,
- "ips_added": [
- "192.168.0.1"
], - "ips_failed": {
- "192.168.0.1": "Invalid IP address or range: \"192.68.0.1\""
}, - "iptable_bans_removed": 0,
- "list_name": "white",
- "requester_ip": "10.1.4.228",
- "requester_ip_is_whitelisted": 0
}, - "metadata": {
- "command": "create_cphulk_record",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}