akamaizer_​tag

Version: v2025-02-18Includes use: Yes

Behavior name: Akamaizer Tag

This specifies HTML tags and replacement rules for hostnames used in conjunction with the akamaizer behavior. Contact Akamai Professional Services for help configuring the Akamaizer.

Default behavior

These samples reflect the behavior's default settings. You can use these as is in your configurations or make adjustments based on the behavior's available options.

data "akamai_property_rules_builder" "akamaizer_tag" {
  rules_v2025_02_18 {
    name     = "Akamaize Tag"
    comments = "Specifies tags and replacement rules for Akamaizer."
    behavior {
      akamaizer_tag {
        match _hostname        = ""
        replacement_hostname   = ""
        scope                  = "URL_ATTRIBUTE"
        tags_attribute         = "IMG_SRC"
        replace_all            = false
        include_tags_attribute = true
      }
    }
  }
}
"behaviors": [
  {
    "name": "akamaizerTag",
    "options": {
      "matchHostname": "",
      "replacementHostname": "",
      "scope": "URL_ATTRIBUTE",
      "tagsAttribute": "IMG_SRC",
      "replaceAll": false,
      "includeTagsAttribute": true
    }
  }
]

Options

Option Description
match_​hostname
Specifies the hostname to match on as a Perl-compatible regular expression.
replacement_​hostname
Specifies the replacement hostname for the tag to use.
scope
Specifies the part of HTML content the tags_​attribute refers to. Value is one of:
  • ATTRIBUTE. When tags_​attribute refers to a tag/attribute pair, the match only applies to the attribute.
  • URL_​ATTRIBUTEThe same as an attribute but applies when the attribute value is a URL. In that case, it converts to an absolute URL prior to substitution.
  • BLOCK. Substitutes within the tag's contents, but not within any nested tags.
  • PAGE. Ignores the tags_​attribute field and performs the substitution on the entire page.
tags_​attribute
Specifies the tag or tag/attribute combination to operate on. Value is one of:
  • A
  • A_HREF
  • IMG
  • IMG_SRC
  • SCRIPT
  • SCRIPT_SRC
  • LINK
  • LINK_HREF
  • TD
  • TD_BACKGROUND
  • TABLE
  • TABLE_BACKGROUND
  • IFRAME
  • IFRAME_SRC
  • AREA
  • AREA_HREF
  • BASE
  • BASE_HREF
  • FORM
  • FORM_ACTION
replace_​all
Replaces all matches when enabled, otherwise replaces only the first match.
include_​tags_​attribute
Whether to include the tags_​attribute value.