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 Exocale Zone name.

Optional

  • id (String) The Elastic IP (EIP) ID to match (conflicts with ip_address and labels).
  • ip_address (String) The EIP IPv4 or IPv6 address to match (conflicts with id and labels).
  • labels (Map of String) The EIP labels to match (conflicts with ip_address and id).

Read-Only

  • address_family (String) The Elastic IP (EIP) address family (inet4 or inet6).
  • cidr (String) The Elastic IP (EIP) CIDR.
  • description (String) The Elastic IP (EIP) description.
  • healthcheck (List of Object) The managed EIP healthcheck configuration. (see below for nested schema)
  • reverse_dns (String) Domain name for reverse DNS record.

Nested Schema for healthcheck

Read-Only:

  • interval (Number)
  • mode (String)
  • port (Number)
  • strikes_fail (Number)
  • strikes_ok (Number)
  • timeout (Number)
  • tls_skip_verify (Boolean)
  • tls_sni (String)
  • uri (String)