content_​type

Version: v2024-10-21Includes use: Yes

Criterion name: Content Type

Matches the HTTP response header's Content-Type.

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" "content_type" { rules_v2024_10_21 { name = "Content Type" comments = "Matches the HTTP response header's Content-Type." criterion { content_type { match_wildcard = true values = [ "text/html*" ] match_case_sensitive = false match_operator = "IS_ONE_OF" } } } }
"criterion": [ { "name": "contentType", "options": { "matchWildcard": true, "values": [ "text/html*" ], "matchCaseSensitive": false, "matchOperator": "IS_ONE_OF" } } ]

Options

Option Description
match_operator
Specifies the match's logic. Value is one of:
  • IS_ONE_OF. Matches any Content-Type among the specified values.
  • IS_NOT_ONE_OF. Matches none of the specified values.
values
The Content-Type response header value, for example text/html.
match_wildcard
Allows wildcards in the value field, where ? matches a single character and * matches zero or more characters. Specifying text/* matches both text/html and text/css.
match_case_sensitive Sets a case-sensitive match for all values.

Did this page help you?