origin_​failure_​recovery_​method

Version: v2024-04-29Includes use: Yes

Behavior name: Origin Failure Recovery Method

Origin Failover requires that you set up a separate rule containing origin failure recovery methods. You also need to set up the Origin Failure Recovery Policy behavior in a separate rule with a desired match criteria, and select the desired failover method. You can do this using Property Manager.

Learn more about this process in Adaptive Media Delivery Implementation Guide. You can use the origin_failure_recovery_policy member to edit existing instances of the Origin Failure Recover Policy behavior.

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" "origin_failure_recovery_method" {
  rules_v2025_02_18 {
    name     = "Origin Failure Recovery Method"
    comments = "Holds your origin failure recovery methods."
    behavior {
      origin_failure_recovery_method {
        recovery_method = "RETRY_ALTERNATE_ORIGIN"
      }
    }
  }
}
"behaviors": [
  {
    "name": "originFailureRecoveryMethod",
    "options": {
      "recoveryMethod": "RETRY_ALTERNATE_ORIGIN"
    }
  }
]

Options

Option Description
recovery_method
Specifies the recovery method. Value is one of:
  • RETRY_ALTERNATE_ORIGIN. Retry with the alternate origin.
  • RESPOND_CUSTOM_STATUS. Customize the response.
custom_status_code
Specifies the custom status code to be sent to the client.