# SSH

Enable or disable SSH Fail2ban.

# HTTP Request:

PATCH https://api.serveravatar.com/organizations/{organization}/servers/{server}/fail2ban

# Curl Request example:

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

# Response:

# Enable/Disable:

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

# Record Not Found:

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

# Server Error:

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