Client-side protection configuration
akamai_appsec_clientside_protection_configuration
Get a security policy's Client-side Protection & Compliance (CPC) configuration to get information about your current edge injection settings, edge test parameters, and injection criteria.
data "akamai_appsec_clientside_protection_configuration" "my_cpc_config" {
config_id = 12345
security_policy_id = "abcd_123456"
}
output "my_cpc_config" {
value = data.akamai_appsec_clientside_protection_configuration.my_cpc_config
}my_cpc_config = {
config_id = 12345
security_policy_id = "abcd_123456"
edge_injection = {
load_script_async = true
}
edge_test_parameters = {
disable_injection_key = "cpc-disable"
disable_injection_value = "true"
force_injection_key = "cpc-force"
force_injection_value = "true"
}
injection_criteria = {
injection_path_includes = "/shop/*"
injection_path_excludes = "/shop/static/*"
injection_percent = 100
injection_policy = "head"
script_tag_attributes = []
}
}Arguments
| Argument | Required | Description |
|---|---|---|
config_id | ✔️ | A security configuration ID. |
security_policy_id | ✔️ | A security policy ID. |
Attributes
| Attribute | Description |
|---|---|
edge_injection | Controls how the CPC script is loaded by the edge. Contains:
|
edge_test_parameters | Query string parameters used to override script injection behavior during testing. Contains:
|
injection_criteria | Controls which requests receive the injected script and how the script tag is placed. Contains:
|
Updated about 2 hours ago
Did this page help you?
