# Toggle the firewall

Enable or disable the firewall.

# HTTP Request:

GET https://api.serveravatar.com/organizations/{organization}/servers/{server}/firewall

# Curl Request example:

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

# Response:

# Firewall Update

  • 200 (Ok)
{
  "message": "Firewall has been enabled successfully!"
}

# Organization Not Found

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

# Server Not Found

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

# Server Error

500 (Internal Server Error)

{
    "message": "Something went really wrong!"
}
Last Updated: 3/1/2023, 2:00:48 PM