Return login security failed logins

This function lists failed login attempt entries from the cPHulk database.

Authorizations:

Responses

Response Schema: application/json
object
object

Request samples

whmapi1 --output=jsonpretty \
  get_cphulk_failed_logins

Response samples

Content type
application/json
{
  • "data": {
    • "failed_logins": [
      • {
        • "authservice": "dovecot",
        • "exptime": "2014-12-07T00:00:00.000Z",
        • "ip": "192.168.0.1",
        • "logintime": "2014-11-20T00:00:00.000Z",
        • "service": "ftp",
        • "timeleft": 14,
        • "user": "example"
        }
      ]
    },
  • "metadata": {
    • "command": "get_cphulk_failed_logins",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}