# Create Ban Ip

Create Ban Ip in Jail.

# HTTP Request:

POST https://api.serveravatar.com/organizations/{organization}/servers/{server}/fail2ban/{fail2ban}/ban-ip

# Parameter:

Parameters Required Type Description
ip Yes IP Any Ipv4 or Ipv6 ip address.

# Curl Request example:

curl --request POST \
  --url "https://api.serveravatar.com/organizations/5/servers/15/fail2ban/11/ban-ip" \
  --header 'content-type: application/json' \
  --header 'accept: application/json' \
  --header 'Authorization: <YOUR API TOKEN>'
  --data '{
    "ip": "254.244.84.16"
  }'

# Response:

# Create Ban Ip:

  • 200 (Ok)
{
    "message": "Ip ban successfully!"
}

# Record Not Found

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

# Server Error

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