---
updatedAt: 2026-03-01T18:36:23.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/terraform/v9.3/llms.txt
---

# Configuration

akamai_appsec_configuration

Get information about all security configurations or a given configuration by name.

```json Query
// Get all
data "akamai_appsec_configuration" "my_configurations" {
}

output "configuration_list" {
  value = data.akamai_appsec_configuration.my_configurations
}

// Get one
data "akamai_appsec_configuration" "my_configuration" {
    name = "my appsec config"
}

output "my_appsec_config" {
  value = data.akamai_appsec_configuration.my_configuration
}
```
```json Standard output
// Get all
configuration_list = {
      config_id          = null
      host_names         = null
      id                 = "12345"
      latest_version     = 1
      name               = null
      production_version = null
      staging_version    = 1
    }

// Get one
my_appsec_config = {
      config_id          = 12345
      id                 = "12345"
      host_names         = [
          "my-appsec-configuration-ds.net",
        ]
      latest_version     = 3
      name               = "my appsec config"
        EOT
      production_version = 2
      staging_version    = 3
    }
```
```json Input variable
variable "config_id" {
  type        = string
  description = "My security configuration ID"
  default     = "12345"
}
```
```json Variable use
// local
config_id = data.akamai_appsec_configuration.my_configurations.configuration_list.config_id

// tvars
config_id = var.config_id
```

## Argument

Leave the data source empty to return all configurations. Pass a `name` to return a specific configuration.

## Attributes

Returned to you is a `configurations` set with high level details about your configurations.

| Attribute            | Description                                                                      |
| -------------------- | -------------------------------------------------------------------------------- |
| `config_id`          | A security configuration's ID.                                                   |
| `host_names`         | The fully qualified domain name protected by the configuration.                  |
| `latest_version`     | Most-recent version number of a given security configuration.                    |
| `staging_version`    | Version number of a given security configuration currently active in staging.    |
| `production_version` | Version number of a given security configuration currently active in production. |

# Sibling pages

* [AAP selected hostnames](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-aap-selected-hostnames.md)
* [API endpoints](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-api-endpoints.md)
* [API request constraints](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-api-request-constraints.md)
* [ASE penalty box settings](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-ase-penalty-box-settings.md)
* [Attack groups](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-attack-groups.md)
* [Attack payload logging](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-attack-payload-logging.md)
* [Bypass network lists](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-bypass-network-lists.md)
* [Configuration version](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-configuration-version.md)
* [Contracts groups](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-contracts-groups.md)
* [Custom deny](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-custom-deny.md)
* [Custom rule actions](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-custom-rule-actions.md)
* [Custom rules](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-custom-rules.md)
* [Eval group](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-eval-group.md)
* [Eval penalty box](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-eval-penalty.md)
* [Eval penalty box conditions](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-eval-penalty-box-conditions.md)
* [Eval rules](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-eval-rules.md)
* [Evasive path match](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-evasive-path-match.md)
* [Failover hostnames](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-failover-hostnames.md)
* [Hostname coverage](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-hostname-coverage.md)
* [Hostname coverage match targets](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-hostname-coverage-match-targets.md)
* [Hostname coverage overlapping](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-hostname-coverage-overlapping.md)
* [IP geo](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-ip-geo.md)
* [JA4 fingerprint](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-ja4-fingerprint.md)
* [Malware content types](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-malware-content-types.md)
* [Malware policies](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-malware-policies.md)
* [Malware policy actions](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-malware-policy-actions.md)
* [Match targets](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-match-targets.md)
* [Penalty box](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-penalty-box.md)
* [Penalty box conditions](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-penalty-box-conditions.md)
* [PII learning](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-pii-learning.md)
* [Policy actions](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-policy-actions.md)
* [Pragma header](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-pragma-header.md)
* [Prefetch](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-prefetch.md)
* [Rapid rules](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-rapid-rules.md)
* [Rate policies](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-rate-policies.md)
* [Reputation profile actions](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-reputation-profile-actions.md)
* [Reputation profile analysis](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-reputation-profile-analysis.md)
* [Reputation profiles](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-reputation-profiles.md)
* [Request body settings](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-request-body-settings.md)
* [Rule upgrade details](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-rule-upgrade-details.md)
* [Rules](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-rules.md)
* [Security policy](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-security-policy.md)
* [Security policy protections](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-security-policy-protections.md)
* [Selectable hostnames](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-selectable-hostnames.md)
* [Siem definitions](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-siem-definitions.md)
* [Siem settings](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-siem-settings.md)
* [Slow POST](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-slow-post.md)
* [Threat intel](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-threat-intel.md)
* [Tuning recommendations](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-tuning-recommendations.md)
* [Version notes](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-version-notes.md)
* [WAF mode](https://techdocs.akamai.com/terraform/v9.3/docs/as-ds-waf-mode.md)