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 an existing SDN VNet.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as proxmoxve from "@muhlba91/pulumi-proxmoxve";
const example = proxmoxve.Sdn.getVnet({
id: "vnet1",
});
export const dataProxmoxVirtualEnvironmentSdnVnet = {
id: example.then(example => example.id),
zone: example.then(example => example.zone),
alias: example.then(example => example.alias),
isolatePorts: example.then(example => example.isolatePorts),
tag: example.then(example => example.tag),
vlanAware: example.then(example => example.vlanAware),
};
import pulumi
import pulumi_proxmoxve as proxmoxve
example = proxmoxve.Sdn.get_vnet(id="vnet1")
pulumi.export("dataProxmoxVirtualEnvironmentSdnVnet", {
"id": example.id,
"zone": example.zone,
"alias": example.alias,
"isolatePorts": example.isolate_ports,
"tag": example.tag,
"vlanAware": example.vlan_aware,
})
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 {
example, err := sdn.GetVnet(ctx, &sdn.GetVnetArgs{
Id: "vnet1",
}, nil)
if err != nil {
return err
}
ctx.Export("dataProxmoxVirtualEnvironmentSdnVnet", pulumi.Map{
"id": example.Id,
"zone": example.Zone,
"alias": example.Alias,
"isolatePorts": example.IsolatePorts,
"tag": example.Tag,
"vlanAware": example.VlanAware,
})
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using ProxmoxVE = Pulumi.ProxmoxVE;
return await Deployment.RunAsync(() =>
{
var example = ProxmoxVE.Sdn.GetVnet.Invoke(new()
{
Id = "vnet1",
});
return new Dictionary<string, object?>
{
["dataProxmoxVirtualEnvironmentSdnVnet"] =
{
{ "id", example.Apply(getVnetResult => getVnetResult.Id) },
{ "zone", example.Apply(getVnetResult => getVnetResult.Zone) },
{ "alias", example.Apply(getVnetResult => getVnetResult.Alias) },
{ "isolatePorts", example.Apply(getVnetResult => getVnetResult.IsolatePorts) },
{ "tag", example.Apply(getVnetResult => getVnetResult.Tag) },
{ "vlanAware", example.Apply(getVnetResult => getVnetResult.VlanAware) },
},
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.proxmoxve.Sdn.SdnFunctions;
import com.pulumi.proxmoxve.Sdn.inputs.GetVnetArgs;
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) {
final var example = SdnFunctions.getVnet(GetVnetArgs.builder()
.id("vnet1")
.build());
ctx.export("dataProxmoxVirtualEnvironmentSdnVnet", Map.ofEntries(
Map.entry("id", example.id()),
Map.entry("zone", example.zone()),
Map.entry("alias", example.alias()),
Map.entry("isolatePorts", example.isolatePorts()),
Map.entry("tag", example.tag()),
Map.entry("vlanAware", example.vlanAware())
));
}
}
variables:
example:
fn::invoke:
function: proxmoxve:Sdn:getVnet
arguments:
id: vnet1
outputs:
dataProxmoxVirtualEnvironmentSdnVnet:
id: ${example.id}
zone: ${example.zone}
alias: ${example.alias}
isolatePorts: ${example.isolatePorts}
tag: ${example.tag}
vlanAware: ${example.vlanAware}
Using getVnet
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 getVnet(args: GetVnetArgs, opts?: InvokeOptions): Promise<GetVnetResult>
function getVnetOutput(args: GetVnetOutputArgs, opts?: InvokeOptions): Output<GetVnetResult>def get_vnet(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVnetResult
def get_vnet_output(id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVnetResult]func LookupVnet(ctx *Context, args *LookupVnetArgs, opts ...InvokeOption) (*LookupVnetResult, error)
func LookupVnetOutput(ctx *Context, args *LookupVnetOutputArgs, opts ...InvokeOption) LookupVnetResultOutput> Note: This function is named LookupVnet in the Go SDK.
public static class GetVnet
{
public static Task<GetVnetResult> InvokeAsync(GetVnetArgs args, InvokeOptions? opts = null)
public static Output<GetVnetResult> Invoke(GetVnetInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVnetResult> getVnet(GetVnetArgs args, InvokeOptions options)
public static Output<GetVnetResult> getVnet(GetVnetArgs args, InvokeOptions options)
fn::invoke:
function: proxmoxve:Sdn/getVnet:getVnet
arguments:
# arguments dictionaryThe following arguments are supported:
- Id string
- The unique identifier of the SDN VNet.
- Id string
- The unique identifier of the SDN VNet.
- id String
- The unique identifier of the SDN VNet.
- id string
- The unique identifier of the SDN VNet.
- id str
- The unique identifier of the SDN VNet.
- id String
- The unique identifier of the SDN VNet.
getVnet Result
The following output properties are available:
- Alias string
- An optional alias for this VNet.
- Id string
- The unique identifier of the SDN VNet.
- Isolate
Ports bool - Isolate ports within this VNet.
- Tag int
- Tag value for VLAN/VXLAN (can't be used with other zone types).
- Vlan
Aware bool - Allow VM VLANs to pass through this VNet.
- Zone string
- The zone to which this VNet belongs.
- Alias string
- An optional alias for this VNet.
- Id string
- The unique identifier of the SDN VNet.
- Isolate
Ports bool - Isolate ports within this VNet.
- Tag int
- Tag value for VLAN/VXLAN (can't be used with other zone types).
- Vlan
Aware bool - Allow VM VLANs to pass through this VNet.
- Zone string
- The zone to which this VNet belongs.
- alias String
- An optional alias for this VNet.
- id String
- The unique identifier of the SDN VNet.
- isolate
Ports Boolean - Isolate ports within this VNet.
- tag Integer
- Tag value for VLAN/VXLAN (can't be used with other zone types).
- vlan
Aware Boolean - Allow VM VLANs to pass through this VNet.
- zone String
- The zone to which this VNet belongs.
- alias string
- An optional alias for this VNet.
- id string
- The unique identifier of the SDN VNet.
- isolate
Ports boolean - Isolate ports within this VNet.
- tag number
- Tag value for VLAN/VXLAN (can't be used with other zone types).
- vlan
Aware boolean - Allow VM VLANs to pass through this VNet.
- zone string
- The zone to which this VNet belongs.
- alias str
- An optional alias for this VNet.
- id str
- The unique identifier of the SDN VNet.
- isolate_
ports bool - Isolate ports within this VNet.
- tag int
- Tag value for VLAN/VXLAN (can't be used with other zone types).
- vlan_
aware bool - Allow VM VLANs to pass through this VNet.
- zone str
- The zone to which this VNet belongs.
- alias String
- An optional alias for this VNet.
- id String
- The unique identifier of the SDN VNet.
- isolate
Ports Boolean - Isolate ports within this VNet.
- tag Number
- Tag value for VLAN/VXLAN (can't be used with other zone types).
- vlan
Aware Boolean - Allow VM VLANs to pass through this VNet.
- zone String
- The zone to which this VNet belongs.
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
