Give a zone its own edge WAF policy
import requests
url = "https://platform.ankra.app/api/v1/org/dns/zones/{zone}/waf"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
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 PUT \
--url https://platform.ankra.app/api/v1/org/dns/zones/{zone}/waf \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'{
"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
Give a zone its own edge WAF policy
Sets the zone’s WAF policy, ending any inheritance. A cluster zone’s own policy wins over its organisation zone’s. Requires an organisation admin; Ankra Cloud checks the zone is the organisation account’s own and audits the change.
PUT
/
api
/
v1
/
org
/
dns
/
zones
/
{zone}
/
waf
Give a zone its own edge WAF policy
import requests
url = "https://platform.ankra.app/api/v1/org/dns/zones/{zone}/waf"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
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 PUT \
--url https://platform.ankra.app/api/v1/org/dns/zones/{zone}/waf \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'{
"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"
}
]
}
}Authorizations
Path Parameters
Body
application/json