user_​agent

Version: v2023-01-05Includes use: Yes

Criterion name: User Agent

Matches the user agent string that helps identify the client browser and device.

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" "user_agent" {
  rules_v2023_01_05 {
    name     = "User Agent"
    comments = "Matches the user agent string that helps identify the client browser and device."
    criterion {
      user_agent {
        match_wildcard = true
        values = []
        match_case_sensitive = false
        match_operator = "IS_ONE_OF"
      }
    }
  }
}
"criterion": [
  {
    "name": "userAgent",
    "options": {
      "matchWildcard": true,
      "values": [],
      "matchCaseSensitive": false,
      "matchOperator": "IS_ONE_OF"
    }
  }
]

Options

Option Description
match_operator
Specifies the match logic. Value is one of:
  • IS_ONE_OF. The field's value matches.
  • IS_NOT_ONE_OF. The field's value doesn't match.
values
The User-Agent header's value. For example, Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1).
match_wildcard
Allows wildcards in the value field, where ? matches a single character and * matches zero or more characters. For example, *Android*, *iPhone5*, *Firefox*, or *Chrome* allow substring matches.
match_case_sensitive
Sets a case-sensitive match for the value field.