> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# Create Rule

- Component: `appmixer.imperva.waf.CreateRule`
- Kind: Action
- Version: 1.0.2
- Visibility: Public
- Connector: [appmixer.imperva 1.2.3](https://connectors.appmixer.com/connector/appmixer.imperva/1.2.3.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.imperva/1.2.3/component/appmixer.imperva.waf.CreateRule>

Create a custom rule.

## Properties

_No properties defined._

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Site ID (`siteId`) | text | - |
| Name (`name`) | text | Rule name. |
| Action (`action`) | select | - |
| Filter (`filter`) | textarea | The filter defines the conditions that trigger the rule action. For action RULE_ACTION_SIMPLIFIED_REDIRECT filter is not relevant. For other actions, if left empty, the rule is always run. |
| Response Status Code (`response_code`) | number | For RULE_ACTION_REDIRECT or RULE_ACTION_SIMPLIFIED_REDIRECT rule's response code, valid values are 302, 301, 303, 307, 308. For RULE_ACTION_RESPONSE_REWRITE_RESPONSE_CODE rule's response code, valid values are all 3-digits numbers. For RULE_ACTION_CUSTOM_ERROR_RESPONSE, valid values are [ 200, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 419, 420, 422, 423, 424, 429, 500, 501, 502, 503, 504, 505, 507 ]. |
| Add new if missing (`add_missing`) | toggle | Add cookie or header if it doesn't exist. |
| Rewrite if Exists (`rewrite_existing`) | toggle | Rewrite cookie or header if it exists. |
| From (`from`) | text | Pattern to rewrite. For RULE_ACTION_REWRITE_URL - Url to rewrite. For RULE_ACTION_REWRITE_HEADER/RULE_ACTION_RESPONSE_REWRITE_HEADER - Header value to rewrite. For RULE_ACTION_REWRITE_COOKIE - Cookie value to rewrite. |
| To (`to`) | text | Pattern to change to. RULE_ACTION_REWRITE_URL - Url to change to. RULE_ACTION_REWRITE_HEADER/RULE_ACTION_RESPONSE_REWRITE_HEADER - Header value to change to. RULE_ACTION_REWRITE_COOKIE - Cookie value to change to. |
| Rewrite Name (`rewrite_name`) | text | Name of cookie or header to rewrite. Applies only for RULE_ACTION_REWRITE_COOKIE, RULE_ACTION_REWRITE_HEADER and RULE_ACTION_RESPONSE_REWRITE_HEADER. |
| Data Center ID (`dc_id`) | number | Data center to forward request to. |
| Port Forwarding Context (`port_forwarding_context`) | select | Context for port forwarding. |
| Port Forwarding Value (`port_forwarding_value`) | text | Port number or header name for port forwarding. |
| Context (`rate_context`) | select | The context of the rate counter. |
| Rate Interval (`rate_interval`) | number | The interval in seconds of the rate counter. Possible values is a multiple of 10 minimum 10 maximum 300. |
| Error Type (`error_type`) | select | The error that triggers the rule. 'error.type.all' triggers the rule regardless of the error type. |
| Error Response Format (`error_response_format`) | select | The format of the given error response in the error_response_data field. |
| Error Response Data (`error_response_data`) | textarea | The response returned when the request matches the filter and is blocked. |
| Multiple Deletions (`multiple_deletions`) | toggle | Delete multiple header occurrences. |
| Override WAF Rule (`overrideWafRule`) | select | The setting to override. |
| Override WAF Action (`overrideWafAction`) | select | The action for the override rule. |
| Enabled (`enabled`) | toggle | The setting enables or disables the rule. |
| Block Duration Details.Block Duration Period Type (`blockDurationDetails.blockDurationPeriodType`) | select | Block duration types: Fixed, Randomized. Time range: 1-1440 minutes.The Fixed type blocks the IP address or session for the duration specified by the blockFixedDurationValue parameter. The Randomized type generates a random duration for each block between the specified minimum and maximum values. |
| Block Duration Details.Block Fixed Duration Value (`blockDurationDetails.blockFixedDurationValue`) | number | Value of the fixed block duration. |
| Block Duration Details.Block Randomized Duration Min Value (`blockDurationDetails.blockRandomizedDurationMinValue`) | number | The lower limit for the randomized block duration. |
| Block Duration Details.Block Randomized Duration Max Value (`blockDurationDetails.blockRandomizedDurationMaxValue`) | number | The upper limit for the randomized block duration. |
| Send Notifications (`sendNotifications`) | toggle | Send an email notification whenever this rule is triggered. Available for Security rules only. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Site ID (`siteId`) | number | - |
| Rule ID (`rule_id`) | number | - |
| Name (`name`) | string | - |
| Action (`action`) | string | - |
| Filter (`filter`) | string | - |
| Response Code (`response_code`) | number | - |
| Add Missing (`add_missing`) | boolean | - |
| Rewrite Existing (`rewrite_existing`) | boolean | - |
| From (`from`) | string | - |
| To (`to`) | string | - |
| Rewrite Name (`rewrite_name`) | string | - |
| Data Center ID (`dc_id`) | number | - |
| Port Forwarding Context (`port_forwarding_context`) | string | - |
| Port Forwarding Value (`port_forwarding_value`) | string | - |
| Rate Context (`rate_context`) | string | - |
| Rate Interval (`rate_interval`) | number | - |
| Error Type (`error_type`) | string | - |
| Error Response Format (`error_response_format`) | string | - |
| Error Response Data (`error_response_data`) | string | - |
| Multiple Deletions (`multiple_deletions`) | boolean | - |
| Override WAF Rule (`overrideWafRule`) | string | - |
| Override WAF Action (`overrideWafAction`) | string | - |
| Enabled (`enabled`) | boolean | - |
| Block Duration Details (`blockDurationDetails`) | object | - |
| Send Notifications (`sendNotifications`) | boolean | - |

## Full metadata (component.json)

```json
{
  "version": "1.0.2",
  "name": "appmixer.imperva.waf.CreateRule",
  "label": "Create Rule",
  "author": "Appmixer <info@appmixer.com>",
  "description": "Create a custom rule.",
  "private": false,
  "auth": {
    "service": "appmixer:imperva"
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "siteId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "action": {
            "type": "string"
          },
          "filter": {
            "type": "string",
            "maxLength": 4096
          },
          "response_code": {
            "type": "number"
          },
          "add_missing": {
            "type": "boolean"
          },
          "rewrite_existing": {
            "type": "boolean"
          },
          "from": {
            "type": "string"
          },
          "to": {
            "type": "string"
          },
          "rewrite_name": {
            "type": "string"
          },
          "dc_id": {
            "type": "number"
          },
          "port_forwarding_context": {
            "type": "string"
          },
          "port_forwarding_value": {
            "type": "string"
          },
          "rate_context": {
            "type": "string"
          },
          "rate_interval": {
            "type": "number"
          },
          "error_type": {
            "type": "string"
          },
          "error_response_format": {
            "type": "string"
          },
          "error_response_data": {
            "type": "string"
          },
          "multiple_deletions": {
            "type": "boolean"
          },
          "overrideWafRule": {
            "type": "string"
          },
          "overrideWafAction": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          },
          "blockDurationDetails": {
            "type": "object",
            "properties": {
              "blockDurationPeriodType": {
                "type": "string"
              },
              "blockFixedDurationValue": {
                "type": "number"
              },
              "blockRandomizedDurationMinValue": {
                "type": "number"
              },
              "blockRandomizedDurationMaxValue": {
                "type": "number"
              }
            }
          },
          "sendNotifications": {
            "type": "boolean"
          }
        },
        "required": [
          "siteId",
          "name",
          "action"
        ]
      },
      "inspector": {
        "inputs": {
          "siteId": {
            "type": "text",
            "index": 0,
            "group": "main",
            "label": "Site ID",
            "source": {
              "url": "/component/appmixer/imperva/waf/ListSites?outPort=out",
              "data": {
                "messages": {
                  "in/isSource": true
                },
                "transform": "./ListSites#toSelectArray"
              }
            }
          },
          "name": {
            "type": "text",
            "index": 1,
            "group": "main",
            "label": "Name",
            "tooltip": "Rule name."
          },
          "action": {
            "type": "select",
            "defaultValue": "RULE_ACTION_REDIRECT",
            "options": [
              {
                "value": "RULE_ACTION_REDIRECT",
                "label": "RULE_ACTION_REDIRECT"
              },
              {
                "value": "RULE_ACTION_REWRITE_URL",
                "label": "RULE_ACTION_REWRITE_URL"
              },
              {
                "value": "RULE_ACTION_REWRITE_HEADER",
                "label": "RULE_ACTION_REWRITE_HEADER"
              },
              {
                "value": "RULE_ACTION_REWRITE_COOKIE",
                "label": "RULE_ACTION_REWRITE_COOKIE"
              },
              {
                "value": "RULE_ACTION_DELETE_HEADER",
                "label": "RULE_ACTION_DELETE_HEADER"
              },
              {
                "value": "RULE_ACTION_DELETE_COOKIE",
                "label": "RULE_ACTION_DELETE_COOKIE"
              },
              {
                "value": "RULE_ACTION_RESPONSE_REWRITE_HEADER",
                "label": "RULE_ACTION_RESPONSE_REWRITE_HEADER"
              },
              {
                "value": "RULE_ACTION_RESPONSE_REWRITE_RESPONSE_CODE",
                "label": "RULE_ACTION_RESPONSE_REWRITE_RESPONSE_CODE"
              },
              {
                "value": "RULE_ACTION_CUSTOM_ERROR_RESPONSE",
                "label": "RULE_ACTION_CUSTOM_ERROR_RESPONSE"
              },
              {
                "value": "RULE_ACTION_RESPONSE_DELETE_HEADER",
                "label": "RULE_ACTION_RESPONSE_DELETE_HEADER"
              },
              {
                "value": "RULE_ACTION_FORWARD_TO_DC",
                "label": "RULE_ACTION_FORWARD_TO_DC"
              },
              {
                "value": "RULE_ACTION_FORWARD_TO_PORT",
                "label": "RULE_ACTION_FORWARD_TO_PORT"
              },
              {
                "value": "RULE_ACTION_ALERT",
                "label": "RULE_ACTION_ALERT"
              },
              {
                "value": "RULE_ACTION_BLOCK",
                "label": "RULE_ACTION_BLOCK"
              },
              {
                "value": "RULE_ACTION_BLOCK_USER",
                "label": "RULE_ACTION_BLOCK_USER"
              },
              {
                "value": "RULE_ACTION_BLOCK_IP",
                "label": "RULE_ACTION_BLOCK_IP"
              },
              {
                "value": "RULE_ACTION_RETRY",
                "label": "RULE_ACTION_RETRY"
              },
              {
                "value": "RULE_ACTION_INTRUSIVE_HTML",
                "label": "RULE_ACTION_INTRUSIVE_HTML"
              },
              {
                "value": "RULE_ACTION_CAPTCHA",
                "label": "RULE_ACTION_CAPTCHA"
              },
              {
                "value": "RULE_ACTION_RATE",
                "label": "RULE_ACTION_RATE"
              },
              {
                "value": "RULE_ACTION_WAF_OVERRIDE",
                "label": "RULE_ACTION_WAF_OVERRIDE"
              }
            ],
            "index": 2,
            "group": "main",
            "label": "Action"
          },
          "filter": {
            "type": "textarea",
            "index": 3,
            "group": "main",
            "label": "Filter",
            "tooltip": "The filter defines the conditions that trigger the rule action. For action RULE_ACTION_SIMPLIFIED_REDIRECT filter is not relevant. For other actions, if left empty, the rule is always run."
          },
          "response_code": {
            "when": {
              "or": [
                {
                  "eq": {
                    "./action": "RULE_ACTION_REDIRECT"
                  }
                },
                {
                  "eq": {
                    "./action": "RULE_ACTION_SIMPLIFIED_REDIRECT"
                  }
                },
                {
                  "eq": {
                    "./action": "RULE_ACTION_RESPONSE_REWRITE_RESPONSE_CODE"
                  }
                },
                {
                  "eq": {
                    "./action": "RULE_ACTION_CUSTOM_ERROR_RESPONSE"
                  }
                }
              ]
            },
            "type": "number",
            "index": 0,
            "group": "advanced",
            "label": "Response Status Code",
            "tooltip": "For RULE_ACTION_REDIRECT or RULE_ACTION_SIMPLIFIED_REDIRECT rule's response code, valid values are 302, 301, 303, 307, 308. For RULE_ACTION_RESPONSE_REWRITE_RESPONSE_CODE rule's response code, valid values are all 3-digits numbers. For RULE_ACTION_CUSTOM_ERROR_RESPONSE, valid values are [ 200, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 419, 420, 422, 423, 424, 429, 500, 501, 502, 503, 504, 505, 507 ]."
          },
          "add_missing": {
            "when": {
              "or": [
                {
                  "eq": {
                    "./action": "RULE_ACTION_REWRITE_HEADER"
                  }
                },
                {
                  "eq": {
                    "./action": "RULE_ACTION_REWRITE_COOKIE"
                  }
                },
                {
                  "eq": {
                    "./action": "RULE_ACTION_RESPONSE_REWRITE_HEADER"
                  }
                }
              ]
            },
            "type": "toggle",
            "index": 1,
            "group": "advanced",
            "label": "Add new if missing",
            "tooltip": "Add cookie or header if it doesn't exist."
          },
          "rewrite_existing": {
            "when": {
              "or": [
                {
                  "eq": {
                    "./action": "RULE_ACTION_REWRITE_HEADER"
                  }
                },
                {
                  "eq": {
                    "./action": "RULE_ACTION_REWRITE_COOKIE"
                  }
                },
                {
                  "eq": {
                    "./action": "RULE_ACTION_RESPONSE_REWRITE_HEADER"
                  }
                }
              ]
            },
            "type": "toggle",
            "index": 2,
            "group": "advanced",
            "label": "Rewrite if Exists",
            "tooltip": "Rewrite cookie or header if it exists."
          },
          "from": {
            "when": {
              "or": [
                {
                  "eq": {
                    "./action": "RULE_ACTION_REWRITE_URL"
                  }
                },
                {
                  "eq": {
                    "./action": "RULE_ACTION_REWRITE_HEADER"
                  }
                },
                {
                  "eq": {
                    "./action": "RULE_ACTION_RESPONSE_REWRITE_HEADER"
                  }
                },
                {
                  "eq": {
                    "./action": "RULE_ACTION_REWRITE_COOKIE"
                  }
                }
              ]
            },
            "type": "text",
            "index": 3,
            "group": "advanced",
            "label": "From",
            "tooltip": "Pattern to rewrite. For RULE_ACTION_REWRITE_URL - Url to rewrite. For RULE_ACTION_REWRITE_HEADER/RULE_ACTION_RESPONSE_REWRITE_HEADER - Header value to rewrite. For RULE_ACTION_REWRITE_COOKIE - Cookie value to rewrite."
          },
          "to": {
            "when": {
              "or": [
                {
                  "eq": {
                    "./action": "RULE_ACTION_REWRITE_URL"
                  }
                },
                {
                  "eq": {
                    "./action": "RULE_ACTION_REWRITE_HEADER"
                  }
                },
                {
                  "eq": {
                    "./action": "RULE_ACTION_RESPONSE_REWRITE_HEADER"
                  }
                },
                {
                  "eq": {
                    "./action": "RULE_ACTION_REWRITE_COOKIE"
                  }
                }
              ]
            },
            "type": "text",
            "index": 4,
            "group": "advanced",
            "label": "To",
            "tooltip": "Pattern to change to. RULE_ACTION_REWRITE_URL - Url to change to. RULE_ACTION_REWRITE_HEADER/RULE_ACTION_RESPONSE_REWRITE_HEADER - Header value to change to. RULE_ACTION_REWRITE_COOKIE - Cookie value to change to."
          },
          "rewrite_name": {
            "when": {
              "or": [
                {
                  "eq": {
                    "./action": "RULE_ACTION_REWRITE_COOKIE"
                  }
                },
                {
                  "eq": {
                    "./action": "RULE_ACTION_REWRITE_HEADER"
                  }
                },
                {
                  "eq": {
                    "./action": "RULE_ACTION_RESPONSE_REWRITE_HEADER"
                  }
                },
                {
                  "eq": {
                    "./action": "RULE_ACTION_DELETE_COOKIE"
                  }
                },
                {
                  "eq": {
                    "./action": "RULE_ACTION_DELETE_HEADER"
                  }
                }
              ]
            },
            "type": "text",
            "index": 5,
            "group": "advanced",
            "label": "Rewrite Name",
            "tooltip": "Name of cookie or header to rewrite. Applies only for RULE_ACTION_REWRITE_COOKIE, RULE_ACTION_REWRITE_HEADER and RULE_ACTION_RESPONSE_REWRITE_HEADER."
          },
          "dc_id": {
            "when": {
              "eq": {
                "./action": "RULE_ACTION_FORWARD_TO_DC"
              }
            },
            "type": "number",
            "index": 6,
            "group": "advanced",
            "label": "Data Center ID",
            "tooltip": "Data center to forward request to."
          },
          "port_forwarding_context": {
            "when": {
              "eq": {
                "./action": "RULE_ACTION_FORWARD_TO_PORT"
              }
            },
            "type": "select",
            "options": [
              {
                "value": "Use Port Value",
                "label": "Use Port Value"
              },
              {
                "value": "Use Header Name",
                "label": "Use Header Name"
              }
            ],
            "defaultValue": "Use Port Value",
            "index": 7,
            "group": "advanced",
            "label": "Port Forwarding Context",
            "tooltip": "Context for port forwarding."
          },
          "port_forwarding_value": {
            "when": {
              "eq": {
                "./action": "RULE_ACTION_FORWARD_TO_PORT"
              }
            },
            "type": "text",
            "index": 8,
            "group": "advanced",
            "label": "Port Forwarding Value",
            "tooltip": "Port number or header name for port forwarding."
          },
          "rate_context": {
            "when": {
              "eq": {
                "./action": "RULE_ACTION_RATE"
              }
            },
            "type": "select",
            "options": [
              {
                "value": "IP",
                "label": "IP"
              },
              {
                "value": "Session",
                "label": "Session"
              }
            ],
            "defaultValue": "IP",
            "index": 9,
            "group": "advanced",
            "label": "Context",
            "tooltip": "The context of the rate counter."
          },
          "rate_interval": {
            "when": {
              "eq": {
                "./action": "RULE_ACTION_RATE"
              }
            },
            "type": "number",
            "index": 10,
            "group": "advanced",
            "label": "Rate Interval",
            "tooltip": "The interval in seconds of the rate counter. Possible values is a multiple of 10 minimum 10 maximum 300."
          },
          "error_type": {
            "when": {
              "eq": {
                "./action": "RULE_ACTION_CUSTOM_ERROR_RESPONSE"
              }
            },
            "type": "select",
            "options": [
              {
                "value": "error.type.all",
                "label": "error.type.all"
              },
              {
                "value": "error.type.connection_timeout",
                "label": "error.type.connection_timeout"
              },
              {
                "value": "error.type.access_denied",
                "label": "error.type.access_denied"
              },
              {
                "value": "error.type.parse_req_error",
                "label": "error.type.parse_req_error"
              },
              {
                "value": "error.type.parse_resp_error",
                "label": "error.type.parse_resp_error"
              },
              {
                "value": "error.type.connection_failed",
                "label": "error.type.connection_failed"
              },
              {
                "value": "error.type.deny_and_retry",
                "label": "error.type.deny_and_retry"
              },
              {
                "value": "error.type.ssl_failed",
                "label": "error.type.ssl_failed"
              },
              {
                "value": "error.type.deny_and_captcha",
                "label": "error.type.deny_and_captcha"
              },
              {
                "value": "error.type.2fa_required",
                "label": "error.type.2fa_required"
              },
              {
                "value": "error.type.no_ssl_config",
                "label": "error.type.no_ssl_config"
              },
              {
                "value": "error.type.no_ipv6_config",
                "label": "error.type.no_ipv6_config"
              },
              {
                "value": "error.type.waiting_room",
                "label": "error.type.waiting_room"
              }
            ],
            "defaultValue": "HTML",
            "index": 11,
            "group": "advanced",
            "label": "Error Type",
            "tooltip": "The error that triggers the rule. 'error.type.all' triggers the rule regardless of the error type."
          },
          "error_response_format": {
            "when": {
              "eq": {
                "./action": "RULE_ACTION_CUSTOM_ERROR_RESPONSE"
              }
            },
            "type": "select",
            "options": [
              {
                "value": "json",
                "label": "JSON"
              },
              {
                "value": "xml",
                "label": "XML"
              }
            ],
            "defaultValue": "HTML",
            "index": 12,
            "group": "advanced",
            "label": "Error Response Format",
            "tooltip": "The format of the given error response in the error_response_data field."
          },
          "error_response_data": {
            "when": {
              "eq": {
                "./action": "RULE_ACTION_CUSTOM_ERROR_RESPONSE"
              }
            },
            "type": "textarea",
            "index": 13,
            "group": "advanced",
            "label": "Error Response Data",
            "tooltip": "The response returned when the request matches the filter and is blocked."
          },
          "multiple_deletions": {
            "when": {
              "or": [
                {
                  "eq": {
                    "./action": "RULE_ACTION_DELETE_HEADER"
                  }
                },
                {
                  "eq": {
                    "./action": "RULE_ACTION_RESPONSE_DELETE_HEADER"
                  }
                }
              ]
            },
            "type": "toggle",
            "index": 14,
            "group": "advanced",
            "label": "Multiple Deletions",
            "tooltip": "Delete multiple header occurrences."
          },
          "overrideWafRule": {
            "when": {
              "eq": {
                "./action": "RULE_ACTION_WAF_OVERRIDE"
              }
            },
            "type": "select",
            "options": [
              {
                "value": "SQL Injection",
                "label": "SQL Injection"
              },
              {
                "value": "Remote File Inclusion",
                "label": "Remote File Inclusion"
              },
              {
                "value": "Cross Site Scripting",
                "label": "Cross Site Scripting"
              },
              {
                "value": "Illegal Resource Access",
                "label": "Illegal Resource Access"
              }
            ],
            "defaultValue": "SQL Injection",
            "index": 15,
            "group": "advanced",
            "label": "Override WAF Rule",
            "tooltip": "The setting to override."
          },
          "overrideWafAction": {
            "when": {
              "eq": {
                "./action": "RULE_ACTION_WAF_OVERRIDE"
              }
            },
            "type": "select",
            "options": [
              {
                "value": "Alert Only",
                "label": "Alert Only"
              },
              {
                "value": "Block Request",
                "label": "Block Request"
              },
              {
                "value": "Block User",
                "label": "Block User"
              },
              {
                "value": "Block IP",
                "label": "Block IP"
              },
              {
                "value": "Ignore",
                "label": "Ignore"
              }
            ],
            "defaultValue": "Alert Only",
            "index": 16,
            "group": "advanced",
            "label": "Override WAF Action",
            "tooltip": "The action for the override rule."
          },
          "enabled": {
            "type": "toggle",
            "index": 17,
            "group": "advanced",
            "label": "Enabled",
            "tooltip": "The setting enables or disables the rule."
          },
          "blockDurationDetails.blockDurationPeriodType": {
            "when": {
              "or": [
                {
                  "eq": {
                    "./action": "RULE_ACTION_BLOCK_IP"
                  }
                },
                {
                  "eq": {
                    "./action": "RULE_ACTION_BLOCK_USER"
                  }
                }
              ]
            },
            "type": "select",
            "options": [
              {
                "value": "fixed",
                "label": "Fixed"
              },
              {
                "value": "randomized",
                "label": "Randomized"
              }
            ],
            "defaultValue": "Fixed",
            "index": 18,
            "group": "advanced",
            "label": "Block Duration Details.Block Duration Period Type",
            "tooltip": "Block duration types: Fixed, Randomized. Time range: 1-1440 minutes.The Fixed type blocks the IP address or session for the duration specified by the blockFixedDurationValue parameter. The Randomized type generates a random duration for each block between the specified minimum and maximum values."
          },
          "blockDurationDetails.blockFixedDurationValue": {
            "when": {
              "and": [
                {
                  "eq": {
                    "./blockDurationDetails.blockDurationPeriodType": "fixed"
                  }
                },
                {
                  "or": [
                    {
                      "eq": {
                        "./action": "RULE_ACTION_BLOCK_IP"
                      }
                    },
                    {
                      "eq": {
                        "./action": "RULE_ACTION_BLOCK_USER"
                      }
                    }
                  ]
                }
              ]
            },
            "type": "number",
            "index": 18,
            "group": "advanced",
            "label": "Block Duration Details.Block Fixed Duration Value",
            "tooltip": "Value of the fixed block duration."
          },
          "blockDurationDetails.blockRandomizedDurationMinValue": {
            "when": {
              "and": [
                {
                  "eq": {
                    "./blockDurationDetails.blockDurationPeriodType": "randomized"
                  }
                },
                {
                  "or": [
                    {
                      "eq": {
                        "./action": "RULE_ACTION_BLOCK_IP"
                      }
                    },
                    {
                      "eq": {
                        "./action": "RULE_ACTION_BLOCK_USER"
                      }
                    }
                  ]
                }
              ]
            },
            "type": "number",
            "index": 19,
            "group": "advanced",
            "label": "Block Duration Details.Block Randomized Duration Min Value",
            "tooltip": "The lower limit for the randomized block duration."
          },
          "blockDurationDetails.blockRandomizedDurationMaxValue": {
            "when": {
              "and": [
                {
                  "eq": {
                    "./blockDurationDetails.blockDurationPeriodType": "randomized"
                  }
                },
                {
                  "or": [
                    {
                      "eq": {
                        "./action": "RULE_ACTION_BLOCK_IP"
                      }
                    },
                    {
                      "eq": {
                        "./action": "RULE_ACTION_BLOCK_USER"
                      }
                    }
                  ]
                }
              ]
            },
            "type": "number",
            "index": 20,
            "group": "advanced",
            "label": "Block Duration Details.Block Randomized Duration Max Value",
            "tooltip": "The upper limit for the randomized block duration."
          },
          "sendNotifications": {
            "when": {
              "or": [
                {
                  "eq": {
                    "./action": "RULE_ACTION_ALERT"
                  }
                },
                {
                  "eq": {
                    "./action": "RULE_ACTION_BLOCK"
                  }
                },
                {
                  "eq": {
                    "./action": "RULE_ACTION_BLOCK_USER"
                  }
                },
                {
                  "eq": {
                    "./action": "RULE_ACTION_BLOCK_IP"
                  }
                },
                {
                  "eq": {
                    "./action": "RULE_ACTION_RETRY"
                  }
                },
                {
                  "eq": {
                    "./action": "RULE_ACTION_INTRUSIVE_HTML"
                  }
                },
                {
                  "eq": {
                    "./action": "RULE_ACTION_CAPTCHA"
                  }
                }
              ]
            },
            "type": "toggle",
            "index": 21,
            "group": "advanced",
            "label": "Send Notifications",
            "tooltip": "Send an email notification whenever this rule is triggered. Available for Security rules only."
          }
        },
        "groups": {
          "main": {
            "label": "Main",
            "index": 1
          },
          "advanced": {
            "label": "Advanced",
            "index": 2
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "Site ID",
          "value": "siteId",
          "schema": {
            "type": "number",
            "example": 12345678
          }
        },
        {
          "label": "Rule ID",
          "value": "rule_id",
          "schema": {
            "type": "number",
            "example": 94521
          }
        },
        {
          "label": "Name",
          "value": "name",
          "schema": {
            "type": "string",
            "example": "Block malicious IPs"
          }
        },
        {
          "label": "Action",
          "value": "action",
          "schema": {
            "type": "string",
            "example": "RULE_ACTION_BLOCK"
          }
        },
        {
          "label": "Filter",
          "value": "filter",
          "schema": {
            "type": "string",
            "example": "ClientIP == 192.0.2.10"
          }
        },
        {
          "label": "Response Code",
          "value": "response_code",
          "schema": {
            "type": "number",
            "example": 302
          }
        },
        {
          "label": "Add Missing",
          "value": "add_missing",
          "schema": {
            "type": "boolean",
            "example": false
          }
        },
        {
          "label": "Rewrite Existing",
          "value": "rewrite_existing",
          "schema": {
            "type": "boolean",
            "example": true
          }
        },
        {
          "label": "From",
          "value": "from",
          "schema": {
            "type": "string",
            "example": "/old-path"
          }
        },
        {
          "label": "To",
          "value": "to",
          "schema": {
            "type": "string",
            "example": "/new-path"
          }
        },
        {
          "label": "Rewrite Name",
          "value": "rewrite_name",
          "schema": {
            "type": "string",
            "example": "X-Custom-Header"
          }
        },
        {
          "label": "Data Center ID",
          "value": "dc_id",
          "schema": {
            "type": "number",
            "example": 1234
          }
        },
        {
          "label": "Port Forwarding Context",
          "value": "port_forwarding_context",
          "schema": {
            "type": "string",
            "example": "Use Port Value"
          }
        },
        {
          "label": "Port Forwarding Value",
          "value": "port_forwarding_value",
          "schema": {
            "type": "string",
            "example": "8080"
          }
        },
        {
          "label": "Rate Context",
          "value": "rate_context",
          "schema": {
            "type": "string",
            "example": "IP"
          }
        },
        {
          "label": "Rate Interval",
          "value": "rate_interval",
          "schema": {
            "type": "number",
            "example": 60
          }
        },
        {
          "label": "Error Type",
          "value": "error_type",
          "schema": {
            "type": "string",
            "example": "error.type.all"
          }
        },
        {
          "label": "Error Response Format",
          "value": "error_response_format",
          "schema": {
            "type": "string",
            "example": "json"
          }
        },
        {
          "label": "Error Response Data",
          "value": "error_response_data",
          "schema": {
            "type": "string",
            "example": "{\"error\": \"Access denied\"}"
          }
        },
        {
          "label": "Multiple Deletions",
          "value": "multiple_deletions",
          "schema": {
            "type": "boolean",
            "example": false
          }
        },
        {
          "label": "Override WAF Rule",
          "value": "overrideWafRule",
          "schema": {
            "type": "string",
            "example": "SQL Injection"
          }
        },
        {
          "label": "Override WAF Action",
          "value": "overrideWafAction",
          "schema": {
            "type": "string",
            "example": "Alert Only"
          }
        },
        {
          "label": "Enabled",
          "value": "enabled",
          "schema": {
            "type": "boolean",
            "example": true
          }
        },
        {
          "label": "Block Duration Details",
          "value": "blockDurationDetails",
          "schema": {
            "type": "object",
            "properties": {
              "blockDurationPeriodType": {
                "type": "string",
                "title": "Block Duration Details.Block Duration Period Type"
              },
              "blockFixedDurationValue": {
                "type": "number",
                "title": "Block Duration Details.Block Fixed Duration Value"
              },
              "blockRandomizedDurationMinValue": {
                "type": "number",
                "title": "Block Duration Details.Block Randomized Duration Min Value"
              },
              "blockRandomizedDurationMaxValue": {
                "type": "number",
                "title": "Block Duration Details.Block Randomized Duration Max Value"
              }
            },
            "example": {
              "blockDurationPeriodType": "fixed",
              "blockFixedDurationValue": 60,
              "blockRandomizedDurationMinValue": 10,
              "blockRandomizedDurationMaxValue": 60
            }
          }
        },
        {
          "label": "Send Notifications",
          "value": "sendNotifications",
          "schema": {
            "type": "boolean",
            "example": false
          }
        }
      ]
    }
  ],
  "properties": {},
  "icon": "(data URI omitted)"
}
```
