Security policy
akamai_appsec_security_policy
Get information about your security policies or a single policy for a configuration.
data "akamai_appsec_security_policy" "my-security-policy" {
config_id = 12345
security_policy_name = "my-policy"
}
output "my-security-policy" {
value = data.akamai_appsec_security_policy.my-security-policy
}
my-security-policy = {
config_id = 12345
id = "12345:2"
json = jsonencode(
{
configId = 12345
policies = [
{
policyId = "gms1_12345"
policyName = "my-policy"
},
]
version = 2
}
)
security_policy_id = "gms1_12345"
security_policy_id_list = [
"gms1_12345",
]
security_policy_name = "my-policy"
}
Arguments
Send a security configuration ID in the body of the declaration to get all its policies. Optionally, add a policy name to get a single policy.
| Argument | Required | Description |
|---|---|---|
config_id | ✔ | Your security configuration's ID. |
security_policy_name | Your security policy's name. |
Attributes
Returned to you are the security policy details in JSON format.
| Attribute | Description |
|---|---|
config_id | The security configuration's ID. |
id | The data source's ID. |
security_policy_id | The security policy's ID. |
security_policy_name | The security policy's name. |
security_policy_id_list | The list of all security policy IDs. |
output_text | The tabular report with details of your policies. |
json | The JSON-formatted definition of your security policies. |
Updated 15 days ago
