Proxmox Virtual Environment (Proxmox VE) v7.13.0 published on Tuesday, Feb 10, 2026 by Daniel Muehlbachler-Pietrzykowski
Proxmox Virtual Environment (Proxmox VE) v7.13.0 published on Tuesday, Feb 10, 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.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as proxmoxve from "@muhlba91/pulumi-proxmoxve";
// List all SDN VNets
const all = proxmoxve.Sdn.getVnets({});
export const dataProxmoxVirtualEnvironmentSdnVnetsAll = {
vnets: all.then(all => all.vnets),
};
import pulumi
import pulumi_proxmoxve as proxmoxve
# List all SDN VNets
all = proxmoxve.Sdn.get_vnets()
pulumi.export("dataProxmoxVirtualEnvironmentSdnVnetsAll", {
"vnets": all.vnets,
})
package main
import (
"github.com/muhlba91/pulumi-proxmoxve/sdk/v7/go/proxmoxve/sdn"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// List all SDN VNets
all, err := sdn.GetVnets(ctx, map[string]interface{}{}, nil)
if err != nil {
return err
}
ctx.Export("dataProxmoxVirtualEnvironmentSdnVnetsAll", []sdn.GetVnetsVnetMap{
"vnets": all.Vnets,
})
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using ProxmoxVE = Pulumi.ProxmoxVE;
return await Deployment.RunAsync(() =>
{
// List all SDN VNets
var all = ProxmoxVE.Sdn.GetVnets.Invoke();
return new Dictionary<string, object?>
{
["dataProxmoxVirtualEnvironmentSdnVnetsAll"] =
{
{ "vnets", all.Apply(getVnetsResult => getVnetsResult.Vnets) },
},
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.proxmoxve.Sdn.SdnFunctions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
// List all SDN VNets
final var all = SdnFunctions.getVnets(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);
ctx.export("dataProxmoxVirtualEnvironmentSdnVnetsAll", Map.of("vnets", all.vnets()));
}
}
variables:
# List all SDN VNets
all:
fn::invoke:
function: proxmoxve:Sdn:getVnets
arguments: {}
outputs:
dataProxmoxVirtualEnvironmentSdnVnetsAll:
vnets: ${all.vnets}
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 dictionarygetVnets Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Vnets
List<Pulumi.
Proxmox VE. Sdn. Outputs. Get Vnets Vnet> - List of SDN VNets.
- Id string
- The provider-assigned unique ID for this managed resource.
- Vnets
[]Get
Vnets Vnet - List of SDN VNets.
- id String
- The provider-assigned unique ID for this managed resource.
- vnets
List<Get
Vnets Vnet> - List of SDN VNets.
- id string
- The provider-assigned unique ID for this managed resource.
- vnets
Get
Vnets Vnet[] - List of SDN VNets.
- id str
- The provider-assigned unique ID for this managed resource.
- vnets
Sequence[Get
Vnets Vnet] - 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 str
- id str
- isolate_
ports bool - tag int
- vlan_
aware bool - zone str
Package Details
- Repository
- proxmoxve muhlba91/pulumi-proxmoxve
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
proxmoxTerraform Provider.
Proxmox Virtual Environment (Proxmox VE) v7.13.0 published on Tuesday, Feb 10, 2026 by Daniel Muehlbachler-Pietrzykowski
