Failover hostnames
akamai_appsec_failover_hostnames
Returns a list of the failover hostnames in a configuration.
Scopes: Security configuration
Example
terraform {
required_providers {
akamai = {
source = "akamai/akamai"
}
}
}
provider "akamai" {
edgerc = "~/.edgerc"
}
// USE CASE: User wants to view the failover hostnames for a security configuration.
data "akamai_appsec_configuration" "configuration" {
name = "Documentation"
}
data "akamai_appsec_failover_hostnames" "failover_hostnames" {
config_id = data.akamai_appsec_configuration.configuration.config_id
}
output "failover_hostnames" {
value = data.akamai_appsec_failover_hostnames.failover_hostnames.hostnames
}
output "failover_hostnames_output" {
value = data.akamai_appsec_failover_hostnames.failover_hostnames.output_text
}
output "failover_hostnames_json" {
value = data.akamai_appsec_failover_hostnames.failover_hostnames.json
}
Argument reference
This data source supports the following arguments:
config_id
(Required). Unique identifier of the security configuration associated with the failover hosts.
Output options
The following options can be used to determine the information returned, and how that returned information is formatted:
hostnames
. List of the failover hostnames.json
. JSON-formatted list of the failover hostnames.
Updated 10 months ago