Pragma header

akamai_appsec_advanced_settings_pragma_header

Specifies the headers you can exclude from inspection when you are working with a Pragma debug header, a header that provides information about such things as: the edge routers used in a transaction; the Akamai IP addresses involved; whether a request was cached or not; etc. By default, pragma headers are removed from all responses.

This operation can be applied at the security configuration level (in which case it applies to all the security policies in the configuration), or can be customized for an individual security policy.

resource "akamai_appsec_advanced_settings_pragma_header" "pragma_header" {
  config_id          = 12345
  security_policy_id = "abcd_123456"
  pragma_header      = file("${path.module}/pragma_header.json")
}

Arguments

ArgumentRequiredDescription
config_id✔️A security configuration ID.
pragma_header✔️Path to a JSON file containing information about the conditions to exclude from the default remove action. By default, the Pragma header debugging information is stripped from an operation's response except in cases where you set excludeCondition.

To remove existing settings, submit your request with an empty payload, { } at the top-level of an object.
security_policy_idA security policy ID. If not included, pragma header settings are modified at the configuration scope and, as a result, apply to all the security policies associated with the configuration.