match_​response_​code

Version: v2023-01-05Includes use: Yes

Criterion name: Response Status Code

Match a set or range of HTTP response codes.

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" "match_response_code" {
  rules_v2023_01_05 {
    name     = "Content Provider Code"
    comments = "Matches the assigned content provider code."
    criterion {
      match_cp_code {
        value = ""
      }
    }
  }
}
"criterion": [
  {
    "name": "matchCpCode",
    "options": {
      "value": ""
    }
  }
]

Options

Option Description
match_operator
Matches numeric range or a specified set of values. Value is one of:
  • IS_ONE_OF. Matches any of an array of string variable_values.
  • IS_NOT_ONE_OF. Does not match any of an array of string variable_values.
  • IS_BETWEEN. Is between the numeric lower_bound and upper_bound values.
  • IS_NOT_BETWEEN. Is outside the numeric lower_bound and upper_bound range.
values
A set of response codes to match, for example ["404","500"].
lower_bound
Specifies the start of a range of responses. For example, 400 to match anything from 400 to 500.
upper_bound
Specifies the end of a range of responses. For example, 500 to match anything from 400 to 500.