Make a zone inherit its edge WAF policy
import requests
url = "https://platform.ankra.app/api/v1/org/dns/zones/{zone}/waf"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', 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 DELETE \
--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
Make a zone inherit its edge WAF policy
The zone follows the nearest zone above it in the organisation: a cluster zone its organisation zone, which gets block/standard when it has none. Requires an organisation admin; Ankra Cloud checks the zone is the organisation account’s own and audits the change.
DELETE
/
api
/
v1
/
org
/
dns
/
zones
/
{zone}
/
waf
Make a zone inherit its edge WAF policy
import requests
url = "https://platform.ankra.app/api/v1/org/dns/zones/{zone}/waf"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', 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 DELETE \
--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"
}
]
}
}