# Custom Jail Detail For Application

Get Custom Jail Detail For Application.

# HTTP Request:

GET https://api.serveravatar.com/organizations/{organization}/servers/{server}/applications/{application}/fail2ban/

# Curl Request example:

curl --request GET \
  --url "https://api.serveravatar.com/organizations/5/servers/15/applications/92/fail2ban" \
  --header 'content-type: application/json' \
  --header 'Authorization: <YOUR API TOKEN>'

# Response:

# Custom Jail Detail:

  • 200 (Ok)
{
    "fail2ban": {
        "id": 20,
        "jail_name": "testfail"
    },
    "jail_template": "enabled = true\n\n# Caution: Please refrain from modifying this line as it could potentially lead to server instability.\nfilter = testfail\n\nlogpath = \/home\/ldvc7WUkESHufGCt\/testfail\/logs\/access*log\nmaxretry = 3\nbantime = 3600\nfindtime = 600\nport = http.https\n",
    "filter_template": "failregex = ^&lt;HOST&gt; .* &quot;POST .*wp-login.php\n            ^&lt;HOST&gt; .* &quot;POST .*xmlrpc.php\n\nignoreregex =\n"
}

# Record Not Found

  • 404 (Not Found)
{
    "message": "Record not found!"
}

# Server Error

  • 500 (Internal Server Error)
{
    "message": "Something went really wrong while getting fail2ban."
}
Last Updated: 7/18/2023, 7:37:13 AM