request_​cookie

Version: v2025-02-18Includes use: Yes

Criterion name: Request Cookie

Match the cookie name or value passed with the request.

Default criterion

These samples reflect the criterion's default settings. You can use these as is in your configurations or make adjustments based on the criterion's available options.

data "akamai_property_rules_builder" "request_cookie" {
  rules_v2025_02_18 {
    name     = "Request Cookie"
    comments = "Matches the cookie name or value passed with the request."
    criterion {
      request_cookie {
        match_wildcard_name = false
        match_operator = "IS"
        match_case_sensitive_name = true
        match_wildcard_value = false
        match_case_sensitive_value = true
        value = ""
        cookie_name = ""
      }
    }
  }
}
"criterion": [
  {
    "name": "requestCookie",
    "options": {
      "matchWildcardName": false,
      "matchOperator": "IS",
      "matchCaseSensitiveName": true,
      "matchWildcardValue": false,
      "matchCaseSensitiveValue": true,
      "value": "",
      "cookieName": ""
    }
  }
]

Options

Option Description
cookie_name
The name of the cookie, for example, visitor in visitor:anon.
match_operator
Narrows the match criteria. Value is one of:
  • IS. The field's string matches.
  • IS_NOT. The field's string doesn't match.
  • EXISTS. Matches if the cookie_name exists.
  • DOES_NOT_EXIST. Matches if the cookie_name doesn't exist.
  • IS_BETWEEN. Is between the numeric lower_bound and upper_bound values.
value
The cookie's value, for example, anon in visitor:anon.
lower_bound
Specifies the match's minimum value.
upper_bound
Specifies the match's maximum value.
match_wildcard_name
Allows wildcards in the cookie_name field, where ? matches a single character and * matches zero or more characters.
match_case_sensitive_name
Sets a case-sensitive match for the cookie_name field.
match_wildcard_value
Allows wildcards in the value field, where ? matches a single character and * matches zero or more characters.
match_case_sensitive_value
Sets a case-sensitive match for the value field.