» vcd_network_routed

Provides a vCloud Director Org VDC routed Network data source. This can be used to reference internal networks for vApps to connect.

Supported in provider v2.5+

» Example Usage

data "vcd_network_routed" "net" {
  org  = "my-org" # Optional
  vdc  = "my-vdc" # Optional
  name = "my-net"
}

output "edge_gateway" {
  value = data.vcd_network_routed.net.edge_gateway
}

output "gateway" {
  value = data.vcd_network_routed.net.gateway
}
output "dhcp_start_address" {
  value = tolist(data.vcd_network_routed.net.dhcp_pool)[0].start_address
}

output "dhcp_end_address" {
  value = tolist(data.vcd_network_routed.net.dhcp_pool)[0].end_address
}

output "static_ip_start_address" {
  value = tolist(data.vcd_network_routed.net.static_ip_pool)[0].start_address
}

output "static_ip_end_address" {
  value = tolist(data.vcd_network_routed.net.static_ip_pool)[0].end_address
}

» Argument Reference

The following arguments are supported:

  • org - (Optional) The name of organization to use, optional if defined at provider level
  • vdc - (Optional) The name of VDC to use, optional if defined at provider level
  • name - (Required) A unique name for the network

» Attribute reference

All attributes defined in routed network resource are supported.