Match target
akamai_appsec_match_target
Create a match target for your security configuration.
Match targets determine which security policy should apply to an API, hostname, or path.
resource "akamai_appsec_match_target" "my-match-target" {
config_id = 12345
match_target = jsonencode(
{
"type": "website",
"isNegativePathMatch": false,
"isNegativeFileExtensionMatch": false,
"hostnames": [
"example.com",
],
"fileExtensions": [
"sfx",
"py",
"js",
"jar",
"html",
"exe",
"dll",
"bat"
],
"securityPolicy": {
"policyId": "98765"
}
}
)
}
resource "akamai_appsec_match_target" "my-match-target" {
config_id = 12345
match_target = file("${path.module}/match_targets.json")
}
Arguments
Pass your configuration ID and the definition of your match targets to create or update your resource.
Argument | Required | Description |
---|---|---|
config_id | ✔ | Your security configuration's ID. |
match_target | ✔ | A JSON-formatted definition of one or more match targets. |
Attributes
There is no default standard output. Upon creation, the last line of the process log contains a success message with your resource's id
.
Adding an output
block returns the match_target_id
along with your match_target
definition.
Updated 8 days ago