hostname

Version: v2023-01-05Includes use: Yes

Criterion name: Hostname

Matches the requested hostname.

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" "hostname" {
  rules_v2023_01_05 {
    name     = "Hostname"
    comments = "Matches the requested hostname."
    criterion {
      hostname {
        match_operator = "IS_ONE_OF"
        values = []
      }
    }
  }
}
"criterion": [
  {
    "name": "hostname",
    "options": {
      "matchOperator": "IS_ONE_OF",
      "values": []
    }
  }
]

Options

Option Description
match_operator
Specifies match logic. Value is one of:
  • IS_ONE_OF. Matches the contents of values.
  • IS_NOT_ONE_OF. Does not matches the contents of values.
values
A list of hostnames. Allows wildcards, where ? matches a single character and * matches zero or more characters. Specifying *.example.com matches both m.example.com and www.example.com.