Skip to content

exoscale_private_network (Data Source)

Fetch Exoscale Private Networks data.

Corresponding resource: exoscale_private_network.

Example Usage

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 directory for complete configuration examples.

Schema

Required

  • zone (String) The Exoscale Zone 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)

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.

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.
Last updated on