exoscale_elastic_ip (Data Source)
Fetch Exoscale Elastic IPs (EIP) data.
Corresponding resource: exoscale_elastic_ip.
Example Usage
data "exoscale_elastic_ip" "my_elastic_ip" {
zone = "ch-gva-2"
ip_address = "1.2.3.4"
}
output "my_elastic_ip_id" {
value = data.exoscale_elastic_ip.my_elastic_ip.id
}Please refer to the examples directory for complete configuration examples.
Schema
Required
zone(String) The Exoscale Zone name.
Optional
id(String) The Elastic IP (EIP) ID to match (conflicts withip_addressandlabels).ip_address(String) The EIP IPv4 or IPv6 address to match (conflicts withidandlabels).labels(Map of String) The EIP labels to match (conflicts withip_addressandid).timeouts(Block, Optional) (see below for nested schema)
Read-Only
address_family(String) The Elastic IP (EIP) address family (inet4orinet6).cidr(String) The Elastic IP (EIP) CIDR.description(String) The Elastic IP (EIP) description.healthcheck(Attributes) The managed EIP healthcheck configuration. (see below for nested schema)reverse_dns(String) Domain name for reverse DNS record.
Nested Schema for timeouts
Optional:
read(String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as “30s” or “2h45m”. Valid time units are “s” (seconds), “m” (minutes), “h” (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
Nested Schema for healthcheck
Read-Only:
interval(Number) The healthcheck interval in seconds.mode(String) The healthcheck mode.port(Number) The healthcheck target port.strikes_fail(Number) The number of failed healthcheck attempts before considering the target unhealthy.strikes_ok(Number) The number of successful healthcheck attempts before considering the target healthy.timeout(Number) The time in seconds before considering a healthcheck probing failed.tls_skip_verify(Boolean) Disable TLS certificate verification for healthcheck inhttpsmode.tls_sni(String) The healthcheck server name to present with SNI inhttpsmode.uri(String) The healthcheck URI.
Last updated on