List who changed a zone's edge WAF
import requests
url = "https://platform.ankra.app/api/v1/org/dns/zones/{zone}/waf/history"
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/history', 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/history \
--header 'Authorization: Bearer <token>'{
"next_cursor": "<string>",
"entries": [
{
"id": "<string>",
"occurred_at": "2023-11-07T05:31:56Z",
"action": "zone_set",
"hostname": "<string>",
"rule": {
"id": "<string>",
"summary": "<string>"
},
"before": {
"mode": "block",
"sensitivity": "standard",
"action": "allow",
"hostname": "<string>",
"description": "<string>",
"path_prefix": "<string>",
"methods": [
"<string>"
],
"sources": [
"<string>"
],
"rule_ids": [
123
],
"enabled": true
},
"after": {
"mode": "block",
"sensitivity": "standard",
"action": "allow",
"hostname": "<string>",
"description": "<string>",
"path_prefix": "<string>",
"methods": [
"<string>"
],
"sources": [
"<string>"
],
"rule_ids": [
123
],
"enabled": true
},
"actor": {
"kind": "platform_user",
"name": "<string>",
"email": "<string>"
},
"detail": "<string>"
}
]
}DNS
List who changed a zone's edge WAF
Who changed the zone’s edge WAF and when, newest first: the zone’s own policy set or made to inherit, a hostname policy at the zone set or removed, and a rule at the zone added, changed or removed, each with what it was before and after and who made it (a member of the organisation through Ankra, an Ankra Cloud user of the account, or Ankra). Requires an organisation member.
GET
/
api
/
v1
/
org
/
dns
/
zones
/
{zone}
/
waf
/
history
List who changed a zone's edge WAF
import requests
url = "https://platform.ankra.app/api/v1/org/dns/zones/{zone}/waf/history"
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/history', 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/history \
--header 'Authorization: Bearer <token>'{
"next_cursor": "<string>",
"entries": [
{
"id": "<string>",
"occurred_at": "2023-11-07T05:31:56Z",
"action": "zone_set",
"hostname": "<string>",
"rule": {
"id": "<string>",
"summary": "<string>"
},
"before": {
"mode": "block",
"sensitivity": "standard",
"action": "allow",
"hostname": "<string>",
"description": "<string>",
"path_prefix": "<string>",
"methods": [
"<string>"
],
"sources": [
"<string>"
],
"rule_ids": [
123
],
"enabled": true
},
"after": {
"mode": "block",
"sensitivity": "standard",
"action": "allow",
"hostname": "<string>",
"description": "<string>",
"path_prefix": "<string>",
"methods": [
"<string>"
],
"sources": [
"<string>"
],
"rule_ids": [
123
],
"enabled": true
},
"actor": {
"kind": "platform_user",
"name": "<string>",
"email": "<string>"
},
"detail": "<string>"
}
]
}