Read 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.get(url, headers=headers)
print(response.text)const options = {method: 'GET', 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 GET \
--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
Read a project's edge WAF policy
The policy every zone of the project without a policy of its own follows, or null while the project sets none and those zones follow the zones above them. Requires an organisation member.
GET
/
api
/
v1
/
org
/
projects
/
{project_id}
/
waf
Read 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.get(url, headers=headers)
print(response.text)const options = {method: 'GET', 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 GET \
--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"
}
}