# 

# exoscale_private_network (Data Source)

Fetch Exoscale [Private Networks](https://community.exoscale.com/product/networking/private-network/) data.

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

## Example Usage

```terraform
data "exoscale_private_network" "my_private_network" {
  zone = "ch-gva-2"
  name = "my-private-network"
}

output "my_private_network_id" {
  value = data.exoscale_private_network.my_private_network.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 Exoscale [Zone](https://www.exoscale.com/datacenters/) name.

### Optional

- `id` (String) The private network ID to match (conflicts with `name`).
- `name` (String) The network name to match (conflicts with `id`).
- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts))

### Read-Only

- `description` (String) The private network description.
- `end_ip` (String) The first/last IPv4 addresses used by the DHCP service for dynamic leases.
- `labels` (Map of String) A map of key/value labels.
- `netmask` (String) The network mask defining the IPv4 network allowed for static leases.
- `start_ip` (String) The first/last IPv4 addresses used by the DHCP service for dynamic leases.

<a id="nestedblock--timeouts"></a>
### Nested Schema for `timeouts`

Optional:

- `read` (String) A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) 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.



