{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-compute-engine/json-schema/google-cloud-compute-engine-security-policy-rule-schema.json",
  "title": "SecurityPolicyRule",
  "description": "Represents a rule that describes one or more match conditions along with\nthe action to be taken when traffic matches this condition (allow or deny).",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-compute-engine-organization-security-policies-api-openapi.yml#/components/schemas/SecurityPolicyRule",
  "type": "object",
  "properties": {
    "kind": {
      "readOnly": true,
      "default": "compute#securityPolicyRule",
      "type": "string",
      "description": "Output only. [Output only] Type of the resource. Alwayscompute#securityPolicyRule for security policy rules"
    },
    "rateLimitOptions": {
      "$ref": "#/$defs/SecurityPolicyRuleRateLimitOptions",
      "description": "Must be specified if the action is \"rate_based_ban\" or \"throttle\" or\n\"fairshare\". Cannot be specified for any other actions."
    },
    "redirectOptions": {
      "$ref": "#/$defs/SecurityPolicyRuleRedirectOptions",
      "description": "Parameters defining the redirect action. Cannot be specified for any\nother actions.\nThis field is only supported in Global Security Policies of type\nCLOUD_ARMOR."
    },
    "networkMatch": {
      "$ref": "#/$defs/SecurityPolicyRuleNetworkMatcher",
      "description": "A match condition that incoming packets are evaluated against for\nCLOUD_ARMOR_NETWORK security policies. If it matches, the corresponding\n'action' is enforced.\n\nThe match criteria for a rule consists of built-in match fields (like\n'srcIpRanges') and potentially multiple user-defined match fields\n('userDefinedFields').\n\nField values may be extracted directly from the packet or derived from it\n(e.g. 'srcRegionCodes'). Some fields may not be present in every packet\n(e.g. 'srcPorts'). A user-defined field is only present if the base\nheader is found in the packet and the entire field is in bounds.\n\nEach match field may specify which values can match it, listing one or\nmore ranges, prefixes, or exact values that are considered a match for\nthe field. A field value must be present in order to match a specified\nmatch field. If no match values are specified for a match field, then any\nfield value is considered to match it, and it's not required to be\npresent. For strings specifying '*' is also equivalent to match all.\n\nFor a packet to match a rule, all specified match fields must match the\ncorresponding field values derived from the packet.\n\nExample:\n\nnetworkMatch:\n  srcIpRanges:\n  - \"192.0.2.0/24\"\n  - \"198.51.100.0/24\"\n  userDefinedFields:\n  - name: \"ipv4_fragment_offset\"\n    values:\n    - \"1-0x1fff\"\n\nThe above match condition matches packets with a source IP in\n192.0.2.0/24 or 198.51.100.0/24 and a user-defined field named\n\"ipv4_fragment_offset\" with a value between 1 and 0x1fff inclusive."
    },
    "description": {
      "description": "An optional description of this resource. Provide this property when you\ncreate the resource.",
      "type": "string"
    },
    "match": {
      "$ref": "#/$defs/SecurityPolicyRuleMatcher",
      "description": "A match condition that incoming traffic is evaluated against.\nIf it evaluates to true, the corresponding 'action' is enforced."
    },
    "headerAction": {
      "$ref": "#/$defs/SecurityPolicyRuleHttpHeaderAction",
      "description": "Optional, additional actions that are performed on headers.\nThis field is only supported in Global Security Policies of type\nCLOUD_ARMOR."
    },
    "priority": {
      "format": "int32",
      "type": "integer",
      "description": "An integer indicating the priority of a rule in the list. The priority\nmust be a positive value between 0 and 2147483647.\nRules are evaluated from highest to lowest priority where 0 is the\nhighest priority and 2147483647 is the lowest priority."
    },
    "preconfiguredWafConfig": {
      "$ref": "#/$defs/SecurityPolicyRulePreconfiguredWafConfig",
      "description": "Preconfigured WAF configuration to be applied for the rule. If the rule\ndoes not evaluate preconfigured WAF rules, i.e., if\nevaluatePreconfiguredWaf() is not used, this field will have no effect."
    },
    "preview": {
      "description": "If set to true, the specified action is not enforced.",
      "type": "boolean"
    },
    "action": {
      "type": "string",
      "description": "The Action to perform when the rule is matched.\nThe following are the valid actions:\n   \n   - allow: allow access to target.\n   - deny(STATUS): deny access to target, returns the\n   HTTP response code specified. Valid values for `STATUS`\n   are 403, 404, and 502.\n   - rate_based_ban: limit client traffic to the configured\n   threshold and ban the client if the traffic exceeds the threshold.\n   Configure parameters for this action in RateLimitOptions. Requires\n   rate_limit_options to be set.\n   - redirect: redirect to a different target. This can\n   either be an internal reCAPTCHA redirect, or an external URL-based\n   redirect via a 302 response. Parameters for this action can be configured\n   via redirectOptions. This action is only supported in Global Security\n   Policies of type CLOUD_ARMOR.\n   - throttle: limit\n   client traffic to the configured threshold. Configure parameters for this\n   action in rateLimitOptions. Requires rate_limit_options to be set for\n   this.\n   - fairshare (preview only): when traffic reaches the\n   threshold limit, requests from the clients matching this rule begin to be\n   rate-limited using the Fair Share algorithm. This action is only allowed\n   in security policies of type `CLOUD_ARMOR_INTERNAL_SERVICE`."
    }
  },
  "$defs": {
    "Expr": {
      "properties": {
        "expression": {
          "description": "Textual representation of an expression in Common Expression Language\nsyntax.",
          "type": "string"
        },
        "location": {
          "type": "string",
          "description": "Optional. String indicating the location of the expression for error\nreporting, e.g. a file name and a position in the file."
        },
        "title": {
          "description": "Optional. Title for the expression, i.e. a short string describing\nits purpose. This can be used e.g. in UIs which allow to enter the\nexpression.",
          "type": "string"
        },
        "description": {
          "description": "Optional. Description of the expression. This is a longer text which\ndescribes the expression, e.g. when hovered over it in a UI.",
          "type": "string"
        }
      },
      "type": "object",
      "description": "Represents a textual expression in the Common Expression Language (CEL)\nsyntax. CEL is a C-like expression language. The syntax and semantics of CEL\nare documented at https://github.com/google/cel-spec.\n\nExample (Comparison):\n\n    title: \"Summary size limit\"\n    description: \"Determines if a summary is less than 100 chars\"\n    expression: \"document.summary.size() < 100\"\n\nExample (Equality):\n\n    title: \"Requestor is owner\"\n    description: \"Determines if requestor is the document owner\"\n    expression: \"document.owner == request.auth.claims.email\"\n\nExample (Logic):\n\n    title: \"Public documents\"\n    description: \"Determine whether the document should be publicly visible\"\n    expression: \"document.type != 'private' && document.type != 'internal'\"\n\nExample (Data Manipulation):\n\n    title: \"Notification string\"\n    description: \"Create a notification string with a timestamp.\"\n    expression: \"'New message received at ' + string(document.create_time)\"\n\nThe exact variables and functions that may be referenced within an expression\nare determined by the service that evaluates it. See the service\ndocumentation for additional information."
    },
    "SecurityPolicyRuleHttpHeaderAction": {
      "properties": {
        "requestHeadersToAdds": {
          "description": "The list of request headers to add or overwrite if they're already\npresent.",
          "items": {
            "$ref": "#/$defs/SecurityPolicyRuleHttpHeaderActionHttpHeaderOption"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "SecurityPolicyRuleHttpHeaderActionHttpHeaderOption": {
      "properties": {
        "headerName": {
          "description": "The name of the header to set.",
          "type": "string"
        },
        "headerValue": {
          "type": "string",
          "description": "The value to set the named header to."
        }
      },
      "type": "object"
    },
    "SecurityPolicyRuleMatcher": {
      "properties": {
        "exprOptions": {
          "$ref": "#/$defs/SecurityPolicyRuleMatcherExprOptions",
          "description": "The configuration options available when specifying a user defined\nCEVAL expression (i.e., 'expr')."
        },
        "config": {
          "$ref": "#/$defs/SecurityPolicyRuleMatcherConfig",
          "description": "The configuration options available when specifying versioned_expr.\nThis field must be specified if versioned_expr is specified and cannot\nbe specified if versioned_expr is not specified."
        },
        "expr": {
          "$ref": "#/$defs/Expr",
          "description": "User defined CEVAL expression.\nA CEVAL expression is used to specify match criteria such as origin.ip,\nsource.region_code and contents in the request header.\nExpressions containing `evaluateThreatIntelligence` require a Cloud\nArmor Enterprise subscription and are not supported in Edge Policies\nnor in Regional Policies. Expressions containing\n`evaluatePreconfiguredExpr('sourceiplist-*')` require a Cloud Armor\nEnterprise subscription and are only supported in Global Security\nPolicies."
        },
        "versionedExpr": {
          "type": "string",
          "description": "Preconfigured versioned expression.\nIf this field is specified, config must also be specified.\nAvailable preconfigured expressions along with their requirements are:\nSRC_IPS_V1 - must specify the corresponding src_ip_range field in\nconfig.",
          "enum": [
            "SRC_IPS_V1"
          ]
        }
      },
      "description": "Represents a match condition that incoming traffic is evaluated against.\nExactly one field must be specified.",
      "type": "object"
    },
    "SecurityPolicyRuleMatcherConfig": {
      "properties": {
        "srcIpRanges": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "CIDR IP address range.\nMaximum number of src_ip_ranges allowed is 10."
        }
      },
      "type": "object"
    },
    "SecurityPolicyRuleMatcherExprOptions": {
      "type": "object",
      "properties": {
        "recaptchaOptions": {
          "$ref": "#/$defs/SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions",
          "description": "reCAPTCHA configuration options to be applied for the rule. If the\nrule does not evaluate reCAPTCHA tokens, this field has no effect."
        }
      }
    },
    "SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions": {
      "properties": {
        "sessionTokenSiteKeys": {
          "items": {
            "type": "string"
          },
          "description": "A list of site keys to be used during the validation of reCAPTCHA\nsession-tokens. The provided site keys need to be created from\nreCAPTCHA API under the same project where the security policy is\ncreated.",
          "type": "array"
        },
        "actionTokenSiteKeys": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "description": "A list of site keys to be used during the validation of reCAPTCHA\naction-tokens. The provided site keys need to be created from\nreCAPTCHA API under the same project where the security policy is\ncreated."
        }
      },
      "type": "object"
    },
    "SecurityPolicyRuleNetworkMatcher": {
      "description": "Represents a match condition that incoming network traffic is evaluated\nagainst.",
      "properties": {
        "ipProtocols": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "IPv4 protocol / IPv6 next header (after extension headers). Each\nelement can be an 8-bit unsigned decimal number (e.g. \"6\"), range (e.g.\n\"253-254\"), or one of the following protocol names: \"tcp\", \"udp\",\n\"icmp\", \"esp\", \"ah\", \"ipip\", or \"sctp\"."
        },
        "userDefinedFields": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch"
          },
          "description": "User-defined fields. Each element names a defined field and lists the\nmatching values for that field."
        },
        "srcRegionCodes": {
          "description": "Two-letter ISO 3166-1 alpha-2 country code associated with the source\nIP address.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "srcIpRanges": {
          "items": {
            "type": "string"
          },
          "description": "Source IPv4/IPv6 addresses or CIDR prefixes, in standard text format.",
          "type": "array"
        },
        "srcAsns": {
          "items": {
            "type": "integer",
            "format": "uint32"
          },
          "type": "array",
          "description": "BGP Autonomous System Number associated with the source IP address."
        },
        "destPorts": {
          "items": {
            "type": "string"
          },
          "description": "Destination port numbers for TCP/UDP/SCTP. Each element can be a 16-bit\nunsigned decimal number (e.g. \"80\") or range (e.g. \"0-1023\").",
          "type": "array"
        },
        "destIpRanges": {
          "description": "Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text\nformat.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "srcPorts": {
          "items": {
            "type": "string"
          },
          "description": "Source port numbers for TCP/UDP/SCTP. Each element can be a 16-bit\nunsigned decimal number (e.g. \"80\") or range (e.g. \"0-1023\").",
          "type": "array"
        }
      },
      "type": "object"
    },
    "SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch": {
      "type": "object",
      "properties": {
        "values": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Matching values of the field. Each element can be a 32-bit unsigned\ndecimal or hexadecimal (starting with \"0x\") number (e.g. \"64\") or\nrange (e.g.  \"0x400-0x7ff\")."
        },
        "name": {
          "type": "string",
          "description": "Name of the user-defined field, as given in the definition."
        }
      }
    },
    "SecurityPolicyRulePreconfiguredWafConfig": {
      "properties": {
        "exclusions": {
          "type": "array",
          "description": "A list of exclusions to apply during preconfigured WAF evaluation.",
          "items": {
            "$ref": "#/$defs/SecurityPolicyRulePreconfiguredWafConfigExclusion"
          }
        }
      },
      "type": "object"
    },
    "SecurityPolicyRulePreconfiguredWafConfigExclusion": {
      "type": "object",
      "properties": {
        "requestQueryParamsToExclude": {
          "items": {
            "$ref": "#/$defs/SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams"
          },
          "description": "A list of request query parameter names whose value will be excluded\nfrom inspection during preconfigured WAF evaluation. Note that the\nparameter can be in the query string or in the POST body.",
          "type": "array"
        },
        "requestBodiesToExclude": {
          "description": "A list of request body fields to be excluded from inspection during\npreconfigured WAF evaluation.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams"
          }
        },
        "requestCookiesToExclude": {
          "items": {
            "$ref": "#/$defs/SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams"
          },
          "description": "A list of request cookie names whose value will be excluded from\ninspection during preconfigured WAF evaluation.",
          "type": "array"
        },
        "targetRuleSet": {
          "type": "string",
          "description": "Target WAF rule set to apply the preconfigured WAF exclusion."
        },
        "targetRuleIds": {
          "description": "A list of target rule IDs under the WAF rule set to apply the\npreconfigured WAF exclusion. If omitted, it refers to all the rule\nIDs under the WAF rule set.",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "requestUrisToExclude": {
          "description": "A list of request URIs from the request line to be excluded from\ninspection during preconfigured WAF evaluation. When specifying this\nfield, the query or fragment part should be excluded.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams"
          }
        },
        "requestHeadersToExclude": {
          "type": "array",
          "description": "A list of request header names whose value will be excluded from\ninspection during preconfigured WAF evaluation.",
          "items": {
            "$ref": "#/$defs/SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams"
          }
        }
      }
    },
    "SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams": {
      "type": "object",
      "properties": {
        "val": {
          "type": "string",
          "description": "The value of the field."
        },
        "op": {
          "enum": [
            "CONTAINS",
            "ENDS_WITH",
            "EQUALS",
            "EQUALS_ANY",
            "STARTS_WITH"
          ],
          "description": "The match operator for the field.",
          "type": "string"
        }
      }
    },
    "SecurityPolicyRuleRateLimitOptions": {
      "properties": {
        "banThreshold": {
          "$ref": "#/$defs/SecurityPolicyRuleRateLimitOptionsThreshold",
          "description": "Can only be specified if the action for the rule is\n\"rate_based_ban\". If specified, the key will be banned for the\nconfigured 'ban_duration_sec' when the number of requests that exceed\nthe 'rate_limit_threshold' also exceed this 'ban_threshold'."
        },
        "rateLimitThreshold": {
          "$ref": "#/$defs/SecurityPolicyRuleRateLimitOptionsThreshold",
          "description": "Threshold at which to begin ratelimiting."
        },
        "conformAction": {
          "type": "string",
          "description": "Action to take for requests that are under the configured rate limit\nthreshold. Valid option is \"allow\" only."
        },
        "enforceOnKeyConfigs": {
          "description": "If specified, any combination of values of\nenforce_on_key_type/enforce_on_key_name is treated as the key on which\nratelimit threshold/action is enforced. You can specify up to 3\nenforce_on_key_configs. If enforce_on_key_configs is specified,\nenforce_on_key must not be specified.",
          "items": {
            "$ref": "#/$defs/SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig"
          },
          "type": "array"
        },
        "enforceOnKey": {
          "type": "string",
          "description": "Determines the key to enforce the rate_limit_threshold on. Possible\nvalues are:\n   \n   - ALL: A single rate limit threshold is applied to all\n   the requests matching this rule. This is the default value if\n   \"enforceOnKey\" is not configured.\n   - IP: The source IP address of\n   the request is the key. Each IP has this limit enforced\n   separately.\n   - HTTP_HEADER: The value of the HTTP\n   header whose name is configured under \"enforceOnKeyName\". The key\n   value is truncated to the first 128 bytes of the header value. If no\n   such header is present in the request, the key type defaults toALL.\n   - XFF_IP: The first IP address (i.e. the\n   originating client IP address) specified in the list of IPs under\n   X-Forwarded-For HTTP header. If no such header is present or the value\n   is not a valid IP, the key defaults to the source IP address of\n   the request i.e. key type IP.\n   - HTTP_COOKIE: The value of the HTTP\n   cookie whose name is configured under \"enforceOnKeyName\". The key\n   value is truncated to the first 128 bytes of the cookie value. If no\n   such cookie is present in the request, the key type defaults toALL.\n   - HTTP_PATH: The URL path of the HTTP request. The key\n   value is truncated to the first 128 bytes. \n   - SNI: Server name indication in the TLS session of the\n   HTTPS request. The key value is truncated to the first 128 bytes. The\n   key type defaults to ALL on a HTTP session. \n   - REGION_CODE: The country/region from which the request\n   originates. \n   - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the\n   client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the\n   key type defaults to ALL. \n   - USER_IP: The IP address of the originating client,\n   which is resolved based on \"userIpRequestHeaders\" configured with the\n   security policy. If there is no \"userIpRequestHeaders\" configuration or\n   an IP address cannot be resolved from it, the key type defaults toIP. \n   - ASN: The autonomous system number of the originating\n   client. If not available, the key type defaults toALL.\n   - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the\n   client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the\n   key type defaults to ALL. \n\n\nFor \"fairshare\" action, this value is limited to ALL i.e. a single rate\nlimit threshold is enforced for all the requests matching the rule.",
          "enum": [
            "ALL",
            "ASN",
            "HTTP_COOKIE",
            "HTTP_HEADER",
            "HTTP_PATH",
            "IP",
            "REGION_CODE",
            "SNI",
            "TLS_JA3_FINGERPRINT",
            "TLS_JA4_FINGERPRINT",
            "USER_IP",
            "XFF_IP"
          ]
        },
        "exceedRedirectOptions": {
          "$ref": "#/$defs/SecurityPolicyRuleRedirectOptions",
          "description": "Parameters defining the redirect action that is used as the exceed\naction. Cannot be specified if the exceed action is not redirect.\nThis field is only supported in Global Security Policies of type\nCLOUD_ARMOR."
        },
        "exceedAction": {
          "type": "string",
          "description": "Action to take for requests that are above the configured rate limit\nthreshold, to either deny with a specified HTTP response code, or\nredirect to a different endpoint.\nValid options are `deny(STATUS)`, where valid values for\n`STATUS` are 403, 404, 429, and 502, and\n`redirect`, where the redirect parameters come from\n`exceedRedirectOptions` below.\nThe `redirect` action is only supported in Global Security Policies of\ntype CLOUD_ARMOR."
        },
        "banDurationSec": {
          "type": "integer",
          "format": "int32",
          "description": "Can only be specified if the action for the rule is\n\"rate_based_ban\". If specified, determines the time (in seconds)\nthe traffic will continue to be banned by the rate limit after the\nrate falls below the threshold."
        },
        "enforceOnKeyName": {
          "type": "string",
          "description": "Rate limit key name applicable only for the following key types:\nHTTP_HEADER -- Name of the HTTP header whose value is taken as the key\nvalue.\nHTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key\nvalue."
        }
      },
      "type": "object"
    },
    "SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig": {
      "properties": {
        "enforceOnKeyType": {
          "description": "Determines the key to enforce the rate_limit_threshold on. Possible\nvalues are:\n   \n   - ALL: A single rate limit threshold is applied to all\n   the requests matching this rule. This is the default value if\n   \"enforceOnKeyConfigs\" is not configured.\n   - IP: The source IP address of\n   the request is the key. Each IP has this limit enforced\n   separately.\n   - HTTP_HEADER: The value of the HTTP\n   header whose name is configured under \"enforceOnKeyName\". The key\n   value is truncated to the first 128 bytes of the header value. If no\n   such header is present in the request, the key type defaults toALL.\n   - XFF_IP: The first IP address (i.e. the\n   originating client IP address) specified in the list of IPs under\n   X-Forwarded-For HTTP header. If no such header is present or the\n   value is not a valid IP, the key defaults to the source IP address of\n   the request i.e. key type IP.\n   - HTTP_COOKIE: The value of the HTTP\n   cookie whose name is configured under \"enforceOnKeyName\". The key\n   value is truncated to the first 128 bytes of the cookie value. If no\n   such cookie is present in the request, the key type defaults toALL.\n   - HTTP_PATH: The URL path of the HTTP request. The key\n   value is truncated to the first 128 bytes. \n   - SNI: Server name indication in the TLS session of\n   the HTTPS request. The key value is truncated to the first 128 bytes.\n   The key type defaults to ALL on a HTTP session. \n   - REGION_CODE: The country/region from which the\n   request originates. \n   - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the\n   client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the\n   key type defaults to ALL. \n   - USER_IP: The IP address of the originating client,\n   which is resolved based on \"userIpRequestHeaders\" configured with the\n   security policy. If there is no \"userIpRequestHeaders\" configuration\n   or an IP address cannot be resolved from it, the key type defaults toIP. \n   - ASN: The autonomous system number of the originating\n   client. If not available, the key type defaults toALL.\n   - TLS_JA4_FINGERPRINT: JA4 TLS/SSL fingerprint if the\n   client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the\n   key type defaults to ALL.",
          "type": "string",
          "enum": [
            "ALL",
            "ASN",
            "HTTP_COOKIE",
            "HTTP_HEADER",
            "HTTP_PATH",
            "IP",
            "REGION_CODE",
            "SNI",
            "TLS_JA3_FINGERPRINT",
            "TLS_JA4_FINGERPRINT",
            "USER_IP",
            "XFF_IP"
          ]
        },
        "enforceOnKeyName": {
          "description": "Rate limit key name applicable only for the following key types:\nHTTP_HEADER -- Name of the HTTP header whose value is taken as the\nkey value. HTTP_COOKIE -- Name of the HTTP cookie whose value is\ntaken as the key value.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "SecurityPolicyRuleRateLimitOptionsThreshold": {
      "type": "object",
      "properties": {
        "intervalSec": {
          "type": "integer",
          "format": "int32",
          "description": "Interval over which the threshold is computed."
        },
        "count": {
          "type": "integer",
          "format": "int32",
          "description": "Number of HTTP(S) requests for calculating the threshold."
        }
      }
    },
    "SecurityPolicyRuleRedirectOptions": {
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "EXTERNAL_302",
            "GOOGLE_RECAPTCHA"
          ],
          "description": "Type of the redirect action. Possible values are:\n   \n   - GOOGLE_RECAPTCHA: redirect to reCAPTCHA for manual\n   challenge assessment.\n   - EXTERNAL_302: redirect to a different URL via a 302\n   response."
        },
        "target": {
          "description": "Target for the redirect action. This is required if the type is\nEXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.",
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}