Read a zone's edge WAF settings
import requests
url = "https://platform.ankra.app/api/v1/org/dns/zones/{zone}/waf"
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', 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 \
--header 'Authorization: Bearer <token>'{
"waf_settings": {
"zone_id": "<string>",
"zone_name": "<string>",
"waf": {
"mode": "block",
"sensitivity": "standard"
},
"inherits": true,
"effective": {
"mode": "<string>",
"sensitivity": "<string>",
"source": "zone",
"source_zone": "<string>"
},
"hostnames": [
{
"hostname": "<string>",
"waf": {
"mode": "block",
"sensitivity": "standard"
},
"set_at_zone": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}
}DNS
Read a zone's edge WAF settings
The zone’s own WAF policy, whether it inherits instead, the policy its hostnames get and where that was set, and the hostname policies in effect at or below it. Requires an organisation member.
GET
/
api
/
v1
/
org
/
dns
/
zones
/
{zone}
/
waf
Read a zone's edge WAF settings
import requests
url = "https://platform.ankra.app/api/v1/org/dns/zones/{zone}/waf"
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', 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 \
--header 'Authorization: Bearer <token>'{
"waf_settings": {
"zone_id": "<string>",
"zone_name": "<string>",
"waf": {
"mode": "block",
"sensitivity": "standard"
},
"inherits": true,
"effective": {
"mode": "<string>",
"sensitivity": "<string>",
"source": "zone",
"source_zone": "<string>"
},
"hostnames": [
{
"hostname": "<string>",
"waf": {
"mode": "block",
"sensitivity": "standard"
},
"set_at_zone": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}
}