GuideReference
TrainingSupportCommunity
Guide

WAP selected hostnames

akamai_appsec_wap_selected_hostnames

🚧

Deprecated

Hello. Just a note to let you know this data source is deprecated with a scheduled end-of-life in v7.0.0 of our provider.

We've made this change because the product name changed. The behavior, arguments, and attributes are the same in the new data source. To migrate, just change the data source name in your configuration.

To get information about your selected hostnames, use the akamai_appsec_aap_selected_hostnames data source instead.

Returns hostnames currently protected or being evaluated by a configuration and security policy.

This resource is available only to organizations running Web Application Protector (WAP).
Note that the WAP selected hostnames feature is currently in beta.
Please contact your Akamai representative for more information.

Scopes: Security policy

Example

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

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

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

data "akamai_appsec_wap_selected_hostnames" "wap_selected_hostnames" {
  config_id          = data.akamai_appsec_configuration.configuration.config_id
  security_policy_id = "gms1_134637"
}

output "protected_hostnames" {
  value = data.akamai_appsec_wap_selected_hostnames.wap_selected_hostnames.protected_hosts
}

output "evaluated_hostnames" {
  value = data.akamai_appsec_wap_selected_hostnames.wap_selected_hostnames.evaluated_hosts
}

Argument reference

This data source supports the following arguments:

  • config_id (Required). Unique identifier of the security configuration associated with the hostnames.
  • security_policy_id (Required). Unique identifier of the security policy associated with the hostnames.

Output options

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

  • protected_hostnames. List of hostnames currently protected under the security configuration and security policy.
  • evaluated_hostnames. List of hostnames currently being evaluated under the security configuration and security policy.
  • hostnames_json. JSON-formatted report of the protected and evaluated hostnames.
  • output_text. Tabular reports of the protected and evaluated hostnames.