0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-08-22 19:38:35 +00:00
terraform-provider-proxmox/docs/data-sources/virtual_environment_sdn_zone_vlan.md
Pavel Boldyrev 6b73d822a5
feat(sdn): add support for zone resources and datasources (#2046)
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2025-07-31 20:30:18 -04:00

2.2 KiB

layout title parent subcategory description
page proxmox_virtual_environment_sdn_zone_vlan Data Sources Virtual Environment Retrieves information about a VLAN Zone in Proxmox SDN. It uses an existing local Linux or OVS bridge to connect to the node's physical interface. It uses VLAN tagging defined in the VNet to isolate the network segments. This allows connectivity of VMs between different nodes.

Data Source: proxmox_virtual_environment_sdn_zone_vlan

Retrieves information about a VLAN Zone in Proxmox SDN. It uses an existing local Linux or OVS bridge to connect to the node's physical interface. It uses VLAN tagging defined in the VNet to isolate the network segments. This allows connectivity of VMs between different nodes.

Example Usage

data "proxmox_virtual_environment_sdn_zone_vlan" "example" {
  id = "vlan1"
}

output "data_proxmox_virtual_environment_sdn_zone_vlan" {
  value = {
    id          = data.proxmox_virtual_environment_sdn_zone_vlan.example.id
    nodes       = data.proxmox_virtual_environment_sdn_zone_vlan.example.nodes
    bridge      = data.proxmox_virtual_environment_sdn_zone_vlan.example.bridge
    mtu         = data.proxmox_virtual_environment_sdn_zone_vlan.example.mtu
    dns         = data.proxmox_virtual_environment_sdn_zone_vlan.example.dns
    dns_zone    = data.proxmox_virtual_environment_sdn_zone_vlan.example.dns_zone
    ipam        = data.proxmox_virtual_environment_sdn_zone_vlan.example.ipam
    reverse_dns = data.proxmox_virtual_environment_sdn_zone_vlan.example.reverse_dns
  }
}

Schema

Required

  • id (String) The unique identifier of the SDN zone.

Read-Only

  • bridge (String) The local bridge or OVS switch, already configured on each node that allows node-to-node connection.
  • dns (String) DNS API server address.
  • dns_zone (String) DNS domain name. Used to register hostnames, such as <hostname>.<domain>. The DNS zone must already exist on the DNS server.
  • ipam (String) IP Address Management system.
  • mtu (Number) MTU value for the zone.
  • nodes (Set of String) The Proxmox nodes which the zone and associated VNets are deployed on
  • reverse_dns (String) Reverse DNS API server address.