Match targets
akamai_appsec_match_targets
Returns information about your match targets. Match targets determine which security policy should apply to an API, hostname, or path.
Scopes: Security configuration; match target
Example
terraform {
required_providers {
akamai = {
source = "akamai/akamai"
}
}
}
provider "akamai" {
edgerc = "~/.edgerc"
}
// USE CASE: User wants to view the match targets associated with a security configuration.
data "akamai_appsec_configuration" "configuration" {
name = "Documentation"
}
data "akamai_appsec_match_targets" "match_targets" {
config_id = data.akamai_appsec_configuration.configuration.config_id
}
output "match_targets" {
value = data.akamai_appsec_match_targets.match_targets.output_text
}
// USE CASE: User wants to view a single match target.
data "akamai_appsec_match_targets" "match_target" {
config_id = data.akamai_appsec_configuration.configuration.config_id
match_target_id = "2712938"
}
output "match_target_output" {
value = data.akamai_appsec_match_targets.match_target.output_text
}
Argument reference
This data source supports the following arguments:
config_id
(Required). Unique identifier of the security configuration associated with the match targets.match_target_id
(Optional). Unique identifier of the match target you want to return information for. If not included, information is returned for all your match targets.
Output options
The following options can be used to determine the information returned, and how that returned information is formatted:
output_text
. Tabular report showing the ID and security policy ID of your match targets.json
. JSON-formatted list of the match target information.
Updated 10 months ago