Version: v2025-02-18Includes use: Yes

Criterion name: Filename

Matches the requested filename or tests whether it's present.

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" "filename" {
  rules_v2025_02_18 {
    name     = "Filename"
    comments = "Matches the requested filename's extension."
    criterion {
      filename {
        values = []
        match_case_sensitive = true
        match_operator = "IS_ONE_OF"
      }
    }
  }
}
"criterion": [
  {
    "name": "filename",
    "options": {
      "values": [],
      "matchCaseSensitive": true,
      "matchOperator": "IS_ONE_OF"
    }
  }
]

Options

Option Description
match_operator
Specifies match logic. Value is one of:
  • IS_ONE_OF. The filename matches any of the specified values.
  • IS_NOT_ONE_OF. The filename does not match any of the specified values.
  • IS_EMPTY. Filename is not part of the path.
  • IS_NOT_EMPTY. Filename is part of the path.
values
Matches the filename component of the request URL. Allows wildcards, where ? matches a single character and * matches zero or more characters. For example, specify filename.* to accept any extension.
match_case_sensitive
Sets a case-sensitive match for the values field.