custom_​behavior

Version: v2025-02-18Includes use: Yes

Behavior name: Custom Behavior

Allows you to insert a customized XML metadata behavior into any property's rule tree. Talk to your Akamai representative to implement the customized behavior. Once it's ready, run PAPI's List custom behaviors operation, then apply the relevant behavior_​id value from the response within the current custom​_behavior.

See Custom behaviors and overrides for guidance on custom metadata behaviors.

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" "custom_behavior" {
  rules_v2025_02_18 {
    name     = "Custom Behavior"
    comments = "Inserts a customized XML metadata behavior into any property's rule tree."
    behavior {
      custom_behavior {
        behavior_id = ""
      }
    }
  }
}
"behaviors": [
  {
    "name": "customBehavior",
    "options": {
      "behaviorId": ""
    }
  }
]

Options

Option Description
behavior_​id
The unique identifier for the predefined custom behavior you want to insert into the current rule.