This function displays a cPHulk list's records.
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ read_cphulk_records \ list_name='white'
{- "data": {
- "ips_in_list": {
- "10.1.4.44": "A helpful comment about the IP address.",
- "DEED::1": "A helpful comment about the IP address."
}, - "list_name": "white",
- "requester_ip": "10.1.4.228",
- "requester_ip_is_whitelisted": 1,
- "restart_ssh": 1,
- "warning_ip": "The IP address is not on the white list.",
- "warning_ssh": "The system disabled the UseDNS setting for sshd in order to add IP addresses to the whitelist. You must restart sshd to implement the change."
}, - "metadata": {
- "command": "read_cphulk_records",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}