# Ban or Ignore Ips List

Get Ban or Ignore Ips List.

# HTTP Request:

GET https://api.serveravatar.com/organizations/{organization}/servers/{server}/fail2ban/{fail2ban}/{type:['ban','ignore']}/ips

# Curl Request example(Ban Ips):

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

# Curl Request example(Ignore Ips):

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

# Response:

# Ips (Ban or Ignore) List:

  • 200 (Ok)
{
    "ips": [
        "254.244.84.16",
        "114.70.185.87",
        "56.132.179.110",
        "7.141.147.216"
    ]
}

# Record Not Found

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

# Invalid Request

  • 500 (Internal Server Error)
{
    "message": "Invalid request!"
}

# Server Error

  • 500 (Internal Server Error)
{
    "message": "Something went really wrong while getting {type:['ban','ignore']} ips."
}
Last Updated: 7/18/2023, 7:37:13 AM