# Custom Jail Disable For Application

Enable or disable SSH Fail2ban.

# HTTP Request:

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

# Curl Request example:

curl --request DELETE \
  --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 Disable:

  • 200 (Ok)
{
    "message": "Fail2ban disabled successfully!"
}

# Already Disabled:

  • 500 (Ok)
{
    "message": "Fail2ban already disabled."
}

# Record Not Found

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

# Server Error

  • 500 (Internal Server Error)
{
    "message": "Something went really wrong while desabling fail2ban."
}
Last Updated: 7/18/2023, 9:24:34 AM