How to configure Edge Firewall main settings

Once you create an edge firewall with Azion, you can modify a few configurations. In this guide, you’ll learn to modify the domains associated with your firewall and to enable the available modules.


  1. Run the following GET request in your terminal, replacing [TOKEN VALUE] with your personal token to retrieve your <edge_firewall_id>:
Terminal window
curl --location 'https://api.azionapi.net/edge_firewall \
--header 'Accept: application/json; version=3' \
--header 'Authorization: Token [TOKEN VALUE]'
  1. You’ll receive a response with all your existing edge firewalls. Copy the value of the <id> that you want to configure.
  2. Run a PATCH request to modify the firewall as follows:
Terminal window
curl --location --request PATCH 'https://api.azionapi.net/edge_firewall/<edge_firewall_id>' \
--header 'Accept: application/json; version=3' \
--header 'Authorization: Token [TOKEN VALUE]' \
--header 'Content-Type: application/json' \
--data '{
"name": "My edge firewall",
"domains": [
<domains_id>
],
"is_active": true,
"edge_functions_enabled": true,
"network_protection_enabled": true,
"waf_enabled": true,
"debug_rules": true
}'
KeyDescription
nameName of the edge firewall
domainsArray of IDs of the domains you want to associate with this edge firewall
is_activeBoolean value that enables (true) or disables (false) the edge firewall
edge_functions_enabledBoolean value that enables (true) or disables (false) the Edge Functions module
network_protection_enabledBoolean value that enables (true) or disables (false) the Network Layer Protection module
waf_enabledBoolean value that enables (true) or disables (false) the Web Application Firewall (WAF) module
debug_rulesBoolean value that enables (true) or disables (false) the Debug Rules feature
  1. You’ll receive a response similar to this:
{
"results": {
"name": My edge firewall",
"waf_enabled": true,
"is_active": true,
"edge_functions_enabled": true,
"last_modified": "2023-06-01T18:00:11.994514Z",
"domains": [
0123456789
],
"last_editor": "last.editor@azion.com",
"network_protection_enabled": true,
"id": 12345,
"debug_rules": false
},
"schema_version": 3
}

Wait a few minutes for the changes to propagate and your edge firewall will be updated.



Contributors