URL protection policies
akamai_appsec_url_protection_policies
BetaHello. Just a note to let you know the underlying API on which this data source is built is general release and has been vetted, but because this is a new feature for our Terraform provider, we've given it beta label.
This status just means we've paused for a bit to get your feedback to make sure this data source works like you need and expect.
Get information about your protection policies.
data "akamai_appsec_url_protection_policies" "my_protection_policies" {
config_id = 12345
output "my_protection_policies" {
value = data.akamai_appsec_url_protection_policies.my_protection_policies
}my_protection_policies = {
config_id = 12345,
url_protection_policies = [
{
api_definitions = null,
bypass_conditions = null,
config_id = 12345,
create_date = "2026-03-18T17:21:05Z",
created_by = "jsmith",
description = null,
hostname_paths = [
{
hostname = "my-url-protections-policy.com",
paths = [
"/*"
]
}
],
intelligent_load_shedding = null,
max_rate_threshold = 50,
name = "My URL protection policy2",
update_date = "2026-03-18T17:21:05Z",
updated_by = "jsmith",
url_protection_policy_id = 789012,
used = false
},
{
api_definitions = null,
bypass_conditions = [
{
name_wildcard = null,
names = null,
type = "NetworkListCondition",
value_case_sensitive = null,
value_wildcard = null,
values = [
"119049_GEOBLOCKLIST"
]
}
],
config_id = 12345,
create_date = "2026-02-27T18:40:02Z",
created_by = "jsmith",
description = "My URL protection policy2",
hostname_paths = [
{
hostname = "my-url-protections-policy.com",
paths = [
"/*"
]
}
],
intelligent_load_shedding = {
categories = [
"BOTS",
"CLIENT_REPUTATIONS",
"CLOUD_PROVIDERS",
"PLATFORM_DDOS_INTELLIGENCE",
"PROXIES",
"TOR_EXIT_NODES"
],
custom_criteria = null,
hits_per_sec = 10
},
max_rate_threshold = 20,
name = "My URL protection policy",
update_date = "2026-02-27T18:40:02Z",
updated_by = "jsmith",
url_protection_policy_id = 987654,
used = true
}
]
}Arguments
Pass a security configuration's ID in a config_id argument to get information about your URL protection policies.
Attributes
Returned is the given security configuration's url_protection_policies set with data about each of your policies.
| Attribute | Description |
|---|---|
name | A URL protection policy's name. |
url_protection_policy_id | A URL protection policy's ID. |
description | A human-readable statement about the URL protection policy. |
bypass_conditions | A list of bypass conditions for the URL protection policy. Contains:
|
max_rate_threshold | The maximum hits per second in any five-second interval. |
api_definitions | A list of API endpoints on which to match incoming requests. Contains:
|
hostname_paths | A list of hostnames on which to match and their path configurations. Contains:
|
intelligent_load_shedding | Your load shedding configuration settings. Contains:
|
used | When set to true, URL protections are active. |
create_date | Creation date of the URL protection policy. |
created_by | The name of the user who created the URL protection policy. |
update_date | Date of the URL protection policy's last change. |
updated_by | The name of the user who last changed the URL protection policy. |
Updated 9 days ago
