Configuration
akamai_appsec_configuration
Get information about all security configurations or a given configuration by name.
data "akamai_appsec_configuration" "my_configurations" {
}
output "configuration_list" {
value = data.akamai_appsec_configuration.my_configurations
}
Changes to Outputs:
+ configuration_list = {
+ config_id = null
+ id = "12345"
+ latest_version = 1
+ name = null
+ output_text = <<-EOT
+------------------------------------------------------------------------------------+
| Configurations |
+---------+----+--------------+-------------------------+----------------------------+
|CONFIG_ID|NAME|LATEST_VERSION|VERSION_ACTIVE_IN_STAGING|VERSION_ACTIVE_IN_PRODUCTION|
+---------+----+--------------+-------------------------+----------------------------+
|12345 |987 |11 |1 |0 |
|67890 |6543|9 |0 |0 |
+---------+----+--------------+-------------------------+----------------------------+
EOT
+ production_version = null
+ staging_version = 1
}
variable "config_id" {
type = string
description = "My security configuration ID"
default = "12345"
}
// 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. |
output_text | A table containing: - config_id - name - latest_version - version_active_in_staging - version_active_in_production |
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. |
Updated 11 months ago