| Version: v2023-09-20 | Includes 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_09_20 {
    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:
           
 | 
| values | The  User-Agentheader's value. For example,Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1). | 
| match_wildcard | Allows wildcards in the  valuefield, 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  valuefield. | 
