v1
latestOpenAPI 3.0.02026-07-141,4077,1665.2 MBApplication Security
Update a WAF Policy
Update a specific WAF policy. Returns the policy object when the request is successful.
put/api/v2/remote_config/products/asm/waf/policies/{policy_id}
Path parameters
policy_idstring required
The ID of the policy.
Request body
Example request
{
"data": {
"attributes": {
"description": "Policy applied to internal web applications.",
"name": "Internal Network Policy",
"protectionPresets": [
"attack-tools"
],
"rules": [
{
"enabled": true,
"id": "rasp-001-002"
}
],
"rulesets": [
{
"enabled": true,
"id": "attack_tool"
}
],
"scope": [
{
"env": "prod",
"service": "billing-service"
}
]
},
"type": "policy"
}
}Response
OK
Example response
{
"data": {
"attributes": {
"description": "Policy applied to internal web applications.",
"name": "Internal Network Policy",
"protectionPresets": [
"attack-tools"
],
"rules": [
{
"enabled": true,
"id": "rasp-001-002"
}
],
"rulesets": [
{
"enabled": true,
"id": "attack_tool"
}
],
"scope": [
{
"env": "prod",
"service": "billing-service"
}
]
},
"id": "2857c47d-1e3a-4300-8b2f-dc24089c084b",
"meta": {
"added_at": "2021-01-01T00:00:00Z",
"added_by": "john.doe@datadoghq.com",
"added_by_name": "John Doe",
"modified_at": "2021-01-01T00:00:00Z",
"modified_by": "john.doe@datadoghq.com",
"modified_by_name": "John Doe"
},
"type": "policy"
}
}