Skip to content

exoscale_nlb (Data Source)

Fetch Exoscale Network Load Balancers (NLB) data.

Corresponding resource: exoscale_nlb.

Example Usage

data "exoscale_nlb" "my_nlb" {
  zone = "ch-gva-2"
  name = "my-nlb"
}

output "my_nlb_id" {
  value = data.exoscale_nlb.my_nlb.id
}

Please refer to the examples directory for complete configuration examples.

Schema

Required

  • zone (String) The Exoscale Zone name.

Optional

  • id (String) The Network Load Balancers (NLB) ID to match (conflicts with name).
  • name (String) The NLB name to match (conflicts with id).
  • timeouts (Block, Optional) (see below for nested schema)

Read-Only

  • address_family (String) The NLB address family (inet4 or inet6).
  • created_at (String) The NLB creation date.
  • description (String) The Network Load Balancers (NLB) description.
  • ip_address (String) The NLB public IP address (IPv4 or IPv6, depending on address_family).
  • labels (Map of String) A map of key/value labels.
  • state (String) The current NLB state.

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