Drop a project's edge WAF policy
import requests
url = "https://platform.ankra.app/api/v1/org/projects/{project_id}/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/projects/{project_id}/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/projects/{project_id}/waf \
--header 'Authorization: Bearer <token>'{
"waf_settings": {
"project_id": "<string>",
"waf": {
"mode": "block",
"sensitivity": "standard"
},
"inherits": true,
"updated_at": "2023-11-07T05:31:56Z"
}
}DNS
Drop a project's edge WAF policy
The project’s zones that inherit follow the zones above them again: a cluster zone its organisation zone. Requires an organisation admin; Ankra Cloud checks the project is one the organisation lists and audits the change.
DELETE
/
api
/
v1
/
org
/
projects
/
{project_id}
/
waf
Drop a project's edge WAF policy
import requests
url = "https://platform.ankra.app/api/v1/org/projects/{project_id}/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/projects/{project_id}/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/projects/{project_id}/waf \
--header 'Authorization: Bearer <token>'{
"waf_settings": {
"project_id": "<string>",
"waf": {
"mode": "block",
"sensitivity": "standard"
},
"inherits": true,
"updated_at": "2023-11-07T05:31:56Z"
}
}