[SDK reference](../../index.md) / [Models](../index.md) / [Network](index.md)

# WafPolicyMergePatchUpdate

**Kind:** class  
**Namespace:** `Egulu.Sdk.Models.Network`  

A web application firewall policy (founder, 22 Nov 2026; NET-14; proposed ADR-0685): Coraza with the OWASP Core Rule Set on the platform's edge. InDETECTION mode matched rules are logged and nothing is blocked; in PREVENTION mode a request that reaches the anomaly threshold, or matches a BLOCK rule,gets a 403. `paranoiaLevel` and `excludedRuleIds` tune the Core Rule Set (the rule set's own blocking rules cannot be excluded); custom rules matchaddresses, countries, paths, headers and query text and allow, block, log or rate-limit. A policy protects an application load balancer (whose`wafPolicy` names it) and the custom domains in `customDomains`. Matched rules are written to the project's logs under `logName`. Metered by themillion requests it inspects (`waf-requests`). Bot rules are only those the Core Rule Set offers. The policy is rendered to Coraza's directives with everyvalue checked and escaped, applied by the edge router as a whole and kept as last-known-good.

## Properties

| Name | Type | JSON name | Description |
|---|---|---|---|
| `Annotations` | `UntypedNode?` | `annotations` | At most 256 KiB in all; never policy input. |
| `AnomalyThreshold` | `Models.Network.WafPolicyMergePatchUpdate.WafPolicyMergePatchUpdate_anomalyThreshold?` | `anomalyThreshold` | The inbound anomaly score at which a request is blocked, 1 to 100; 5 (the rule set's default) when omitted. |
| `CustomDomains` | `Models.Network.WafPolicyMergePatchUpdate.WafPolicyMergePatchUpdate_customDomains?` | `customDomains` | Custom domains of the project (their IDs) the policy protects, at most 20. |
| `CustomRules` | `List<Models.Network.WafCustomRuleMergePatchUpdateReplaceOnly>?` | `customRules` | Custom rules, at most 50. |
| `DisplayName` | `Models.Network.WafPolicyMergePatchUpdate.WafPolicyMergePatchUpdate_displayName?` | `displayName` | Up to 63 characters. |
| `ExcludedRuleIds` | `Models.Network.WafPolicyMergePatchUpdate.WafPolicyMergePatchUpdate_excludedRuleIds?` | `excludedRuleIds` | Core Rule Set rules turned off, at most 20, each in 911000 to 948999 or 950000 to 958999. |
| `Labels` | `UntypedNode?` | `labels` | At most 64. |
| `LogMatches` | `Models.Network.WafPolicyMergePatchUpdate.WafPolicyMergePatchUpdate_logMatches?` | `logMatches` | Whether matched rules are written to the project's logs; true when omitted. |
| `LogName` | `Models.Network.WafPolicyMergePatchUpdate.WafPolicyMergePatchUpdate_logName?` | `logName` | The log they are written to; `waf` when omitted. |
| `Mode` | `Models.Network.WafPolicyMergePatchUpdate.WafPolicyMergePatchUpdate_mode?` | `mode` | DETECTION (default) or PREVENTION. |
| `ParanoiaLevel` | `Models.Network.WafPolicyMergePatchUpdate.WafPolicyMergePatchUpdate_paranoiaLevel?` | `paranoiaLevel` | The Core Rule Set's paranoia level, 1 to 4; 1 when omitted. |
