List what the edge WAF blocked for a zone
import requests
url = "https://platform.ankra.app/api/v1/org/dns/zones/{zone}/waf/events"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/dns/zones/{zone}/waf/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/dns/zones/{zone}/waf/events \
--header 'Authorization: Bearer <token>'{
"next_cursor": "<string>",
"events": [
{
"id": "<string>",
"hostname": "<string>",
"occurred_at": "2023-11-07T05:31:56Z",
"outcome": "blocked",
"reason": "<string>",
"mode": "<string>",
"rule_ids": [
123
],
"custom_rule_id": "<string>",
"method": "<string>",
"path": "<string>",
"client_address": "<string>",
"count": 123
}
]
}DNS
List what the edge WAF blocked for a zone
The review log for hostnames at or below the zone: hostname, method, path without its query, client address, outcome, reason and the Core Rule Set rule ids that matched, which a skip_rules rule takes as they are. Requires an organisation member.
GET
/
api
/
v1
/
org
/
dns
/
zones
/
{zone}
/
waf
/
events
List what the edge WAF blocked for a zone
import requests
url = "https://platform.ankra.app/api/v1/org/dns/zones/{zone}/waf/events"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/dns/zones/{zone}/waf/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/dns/zones/{zone}/waf/events \
--header 'Authorization: Bearer <token>'{
"next_cursor": "<string>",
"events": [
{
"id": "<string>",
"hostname": "<string>",
"occurred_at": "2023-11-07T05:31:56Z",
"outcome": "blocked",
"reason": "<string>",
"mode": "<string>",
"rule_ids": [
123
],
"custom_rule_id": "<string>",
"method": "<string>",
"path": "<string>",
"client_address": "<string>",
"count": 123
}
]
}