1. Packages
  2. Proxmox Virtual Environment (Proxmox VE)
  3. API Docs
  4. sdn
  5. getVnets
Viewing docs for Proxmox Virtual Environment (Proxmox VE) v8.0.0
published on Sunday, Apr 5, 2026 by Daniel Muehlbachler-Pietrzykowski
proxmoxve logo
Viewing docs for Proxmox Virtual Environment (Proxmox VE) v8.0.0
published on Sunday, Apr 5, 2026 by Daniel Muehlbachler-Pietrzykowski

    Retrieves information about all SDN VNets in Proxmox. This data source lists all virtual networks configured in the Software-Defined Networking setup.

    Using getVnets

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getVnets(opts?: InvokeOptions): Promise<GetVnetsResult>
    function getVnetsOutput(opts?: InvokeOptions): Output<GetVnetsResult>
    def get_vnets(opts: Optional[InvokeOptions] = None) -> GetVnetsResult
    def get_vnets_output(opts: Optional[InvokeOptions] = None) -> Output[GetVnetsResult]
    func GetVnets(ctx *Context, opts ...InvokeOption) (*GetVnetsResult, error)
    func GetVnetsOutput(ctx *Context, opts ...InvokeOption) GetVnetsResultOutput

    > Note: This function is named GetVnets in the Go SDK.

    public static class GetVnets 
    {
        public static Task<GetVnetsResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetVnetsResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVnetsResult> getVnets(InvokeOptions options)
    public static Output<GetVnetsResult> getVnets(InvokeOptions options)
    
    fn::invoke:
      function: proxmoxve:sdn/getVnets:getVnets
      arguments:
        # arguments dictionary

    getVnets Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Vnets List<Pulumi.ProxmoxVE.Sdn.Outputs.GetVnetsVnet>
    List of SDN VNets.
    Id string
    The provider-assigned unique ID for this managed resource.
    Vnets []GetVnetsVnet
    List of SDN VNets.
    id String
    The provider-assigned unique ID for this managed resource.
    vnets List<GetVnetsVnet>
    List of SDN VNets.
    id string
    The provider-assigned unique ID for this managed resource.
    vnets GetVnetsVnet[]
    List of SDN VNets.
    id str
    The provider-assigned unique ID for this managed resource.
    vnets Sequence[GetVnetsVnet]
    List of SDN VNets.
    id String
    The provider-assigned unique ID for this managed resource.
    vnets List<Property Map>
    List of SDN VNets.

    Supporting Types

    GetVnetsVnet

    Alias string
    Id string
    IsolatePorts bool
    Tag int
    VlanAware bool
    Zone string
    Alias string
    Id string
    IsolatePorts bool
    Tag int
    VlanAware bool
    Zone string
    alias String
    id String
    isolatePorts Boolean
    tag Integer
    vlanAware Boolean
    zone String
    alias string
    id string
    isolatePorts boolean
    tag number
    vlanAware boolean
    zone string
    alias str
    id str
    isolate_ports bool
    tag int
    vlan_aware bool
    zone str
    alias String
    id String
    isolatePorts Boolean
    tag Number
    vlanAware Boolean
    zone String

    Package Details

    Repository
    proxmoxve muhlba91/pulumi-proxmoxve
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the proxmox Terraform Provider.
    proxmoxve logo
    Viewing docs for Proxmox Virtual Environment (Proxmox VE) v8.0.0
    published on Sunday, Apr 5, 2026 by Daniel Muehlbachler-Pietrzykowski
      Try Pulumi Cloud free. Your team will thank you.