Prefetch

akamai_appsec_advanced_settings_prefetch

Returns information about your prefetch request settings. By default, Web Application Firewall inspects only external requests ‚ÄĒ requests originating outside of your firewall or Akamai's edge servers. When prefetch is enabled, requests between your origin servers and Akamai's edge servers can also be inspected by the firewall.

Scopes: Security configuration

Example

terraform {
  required_providers {
    akamai = {
      source = "akamai/akamai"
    }
  }
}

provider "akamai" {
  edgerc = "~/.edgerc"
}

// USE CASE: User wants to view the prefetch request settings for a security configuration.

data "akamai_appsec_configuration" "configuration" {
  name = "Documentation"
}

data "akamai_appsec_advanced_settings_prefetch" "prefetch" {
  config_id = data.akamai_appsec_configuration.configuration.config_id
}

//USE CASE: User wants to display returned data in a table.

output "advanced_settings_prefetch_output" {
  value = data.akamai_appsec_advanced_settings_prefetch.prefetch.output_text
}

output "advanced_settings_prefetch_json" {
  value = data.akamai_appsec_advanced_settings_prefetch.prefetch.json
}

Argument reference

This data source supports the following arguments:

  • config_id (Required). Unique identifier of the security configuration associated with the prefetch settings.

Output options

The following options can be used to determine the information returned, and how that returned information is formatted:

  • json. JSON-formatted list of information about the prefetch request settings.
  • output_text. Tabular report showing the prefetch request settings.