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
}
Changes to Outputs:
  + my-security-policy = {
      + config_id               = 12345
      + id                      = "12345:2"
      + json                    = jsonencode(
            {
              + configId = 12345
              + policies = [
                  + {
                      + policyId   = "gms1_12345"
                      + policyName = "my-policy"
                    },
                ]
              + version  = 2
            }
        )
      + output_text             = <<-EOT
            +----------------------------------+
            | securityPoliciesDS               |
            +-------------+--------------------+
            | ID          | NAME               |
            +-------------+--------------------+
            | gms1_12345  | my-policy          |
            +-------------+--------------------+
        EOT
      + 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.

ArgumentRequiredDescription
config_idYour security configuration's ID.
security_policy_nameYour security policy's name.

Attributes

Returned to you are the security policy details in JSON format.

AttributeDescription
config_idThe security configuration's ID.
idThe data source's ID.
security_policy_idThe security policy's ID.
security_policy_nameThe security policy's name.
security_policy_id_listThe list of all security policy IDs.
output_textThe tabular report with details of your policies.
jsonThe JSON-formatted definition of your security policies.