Version: v2023-05-30 | Includes use: Yes |
---|
Criterion name: File Extension
Matches the requested filename's extension, if 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" "file_extension" {
rules_v2023_05_30 {
name = "File Extension"
comments = "Matches the requested filename's extension."
criterion {
file_extension {
values = []
match_case_sensitive = false
match_operator = "IS_ONE_OF"
}
}
}
}
"criterion": [
{
"name": "fileExtension",
"options": {
"values": [],
"matchCaseSensitive": false,
"matchOperator": "IS_ONE_OF"
}
}
]
Options
Option | Description |
---|---|
match_operator |
Specifies match logic. Value is one of:
|
values |
An array of file extension strings, with no leading dot characters, for example
png , jpg , jpeg , and gif .
|
match_case_sensitive |
Sets a case-sensitive match.
|