# 

# exoscale_elastic_ip (Data Source)

Fetch Exoscale [Elastic IPs (EIP)](https://community.exoscale.com/product/networking/eip/) data.

Corresponding resource: [exoscale_elastic_ip]({{< ref "../resources/elastic_ip.md" >}}).

## Example Usage

```terraform
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](https://github.com/exoscale/terraform-provider-exoscale/tree/master/examples/)
directory for complete configuration examples.

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `zone` (String) The Exocale [Zone](https://www.exoscale.com/datacenters/) 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](#nestedatt--healthcheck))
- `reverse_dns` (String) Domain name for reverse DNS record.

<a id="nestedatt--healthcheck"></a>
### 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)



