Configuration
akamai_appsec_configuration
Returns information about all your security configurations, or returns information about a specific security configuration.
Scopes: Security configuration
Example
terraform {
required_providers {
akamai = {
source = "akamai/akamai"
}
}
}
provider "akamai" {
edgerc = "~/.edgerc"
}
data "akamai_appsec_configuration" "configurations" {
}
output "configuration_list" {
value = data.akamai_appsec_configuration.configurations.output_text
}
data "akamai_appsec_configuration" "specific_configuration" {
name = "Documentation"
}
output "latest" {
value = data.akamai_appsec_configuration.specific_configuration.latest_version
}
output "staging" {
value = data.akamai_appsec_configuration.specific_configuration.staging_version
}
output "production" {
value = data.akamai_appsec_configuration.specific_configuration.production_version
}
output "id" {
value = data.akamai_appsec_configuration.specific_configuration.config_id
}
Argument reference
This data source supports the following arguments:
name
(Optional). Name of the security configuration you want to return information for. If not included, information is returned for all your security configurations.
Output options
The following options can be used to determine the information returned, and how that returned information is formatted:
config_id
. ID of the specified security configuration. Returned only if thename
argument is included.output_text
. Tabular report showing theconfig_id,
name
,latest_version
,version_active_in_staging
, andversion_active_in_production
values for all your security configurations.latest_version
. Most-recent version number of the specified security configuration. Returned only if thename
argument is included in the Terraform configuration file.staging_version
. Version number of the specified security configuration currently active in staging. Returned only if thename
argument is included in the Terraform configuration file.production_version
. Version number of the specified security configuration currently active in production. Returned only if thename
argument is included in the Terraform configuration file.
Updated about 2 years ago