published on Sunday, Apr 5, 2026 by Daniel Muehlbachler-Pietrzykowski
published on Sunday, Apr 5, 2026 by Daniel Muehlbachler-Pietrzykowski
Deprecated: Use
proxmoxve.sdn.Subnetinstead. This resource will be removed in v1.0.
Manages SDN Subnets in Proxmox VE.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as proxmoxve from "@muhlba91/pulumi-proxmoxve";
const finalizer = new proxmoxve.sdn.ApplierLegacy("finalizer", {});
// SDN Zone (Simple) - Basic zone for simple vnets
const exampleZone1 = new proxmoxve.sdn.zone.SimpleLegacy("example_zone_1", {
resourceId: "zone1",
nodes: ["pve"],
mtu: 1500,
dns: "1.1.1.1",
dnsZone: "example.com",
ipam: "pve",
reverseDns: "1.1.1.1",
}, {
dependsOn: [finalizer],
});
// SDN Zone (Simple) - Second zone for demonstration
const exampleZone2 = new proxmoxve.sdn.zone.SimpleLegacy("example_zone_2", {
resourceId: "zone2",
nodes: ["pve"],
mtu: 1500,
}, {
dependsOn: [finalizer],
});
// SDN VNet - Basic vnet
const exampleVnet1 = new proxmoxve.sdn.VnetLegacy("example_vnet_1", {
resourceId: "vnet1",
zone: exampleZone1.resourceId,
}, {
dependsOn: [finalizer],
});
// SDN VNet - VNet with alias and port isolation
const exampleVnet2 = new proxmoxve.sdn.VnetLegacy("example_vnet_2", {
resourceId: "vnet2",
zone: exampleZone2.resourceId,
alias: "Example VNet 2",
isolatePorts: true,
vlanAware: false,
}, {
dependsOn: [finalizer],
});
// Basic Subnet
const basicSubnet = new proxmoxve.sdn.SubnetLegacy("basic_subnet", {
cidr: "192.168.1.0/24",
vnet: exampleVnet1.resourceId,
gateway: "192.168.1.1",
}, {
dependsOn: [finalizer],
});
// Subnet with DHCP Configuration
const dhcpSubnet = new proxmoxve.sdn.SubnetLegacy("dhcp_subnet", {
cidr: "192.168.2.0/24",
vnet: exampleVnet2.resourceId,
gateway: "192.168.2.1",
dhcpDnsServer: "192.168.2.53",
dnsZonePrefix: "internal.example.com",
snat: true,
dhcpRange: {
startAddress: "192.168.2.10",
endAddress: "192.168.2.100",
},
}, {
dependsOn: [finalizer],
});
// SDN Applier for all resources
const subnetApplier = new proxmoxve.sdn.ApplierLegacy("subnet_applier", {}, {
dependsOn: [
exampleZone1,
exampleZone2,
exampleVnet1,
exampleVnet2,
basicSubnet,
dhcpSubnet,
],
});
import pulumi
import pulumi_proxmoxve as proxmoxve
finalizer = proxmoxve.sdn.ApplierLegacy("finalizer")
# SDN Zone (Simple) - Basic zone for simple vnets
example_zone1 = proxmoxve.sdn.zone.SimpleLegacy("example_zone_1",
resource_id="zone1",
nodes=["pve"],
mtu=1500,
dns="1.1.1.1",
dns_zone="example.com",
ipam="pve",
reverse_dns="1.1.1.1",
opts = pulumi.ResourceOptions(depends_on=[finalizer]))
# SDN Zone (Simple) - Second zone for demonstration
example_zone2 = proxmoxve.sdn.zone.SimpleLegacy("example_zone_2",
resource_id="zone2",
nodes=["pve"],
mtu=1500,
opts = pulumi.ResourceOptions(depends_on=[finalizer]))
# SDN VNet - Basic vnet
example_vnet1 = proxmoxve.sdn.VnetLegacy("example_vnet_1",
resource_id="vnet1",
zone=example_zone1.resource_id,
opts = pulumi.ResourceOptions(depends_on=[finalizer]))
# SDN VNet - VNet with alias and port isolation
example_vnet2 = proxmoxve.sdn.VnetLegacy("example_vnet_2",
resource_id="vnet2",
zone=example_zone2.resource_id,
alias="Example VNet 2",
isolate_ports=True,
vlan_aware=False,
opts = pulumi.ResourceOptions(depends_on=[finalizer]))
# Basic Subnet
basic_subnet = proxmoxve.sdn.SubnetLegacy("basic_subnet",
cidr="192.168.1.0/24",
vnet=example_vnet1.resource_id,
gateway="192.168.1.1",
opts = pulumi.ResourceOptions(depends_on=[finalizer]))
# Subnet with DHCP Configuration
dhcp_subnet = proxmoxve.sdn.SubnetLegacy("dhcp_subnet",
cidr="192.168.2.0/24",
vnet=example_vnet2.resource_id,
gateway="192.168.2.1",
dhcp_dns_server="192.168.2.53",
dns_zone_prefix="internal.example.com",
snat=True,
dhcp_range={
"start_address": "192.168.2.10",
"end_address": "192.168.2.100",
},
opts = pulumi.ResourceOptions(depends_on=[finalizer]))
# SDN Applier for all resources
subnet_applier = proxmoxve.sdn.ApplierLegacy("subnet_applier", opts = pulumi.ResourceOptions(depends_on=[
example_zone1,
example_zone2,
example_vnet1,
example_vnet2,
basic_subnet,
dhcp_subnet,
]))
package main
import (
"github.com/muhlba91/pulumi-proxmoxve/sdk/v8/go/proxmoxve/sdn"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
finalizer, err := sdn.NewApplierLegacy(ctx, "finalizer", nil)
if err != nil {
return err
}
// SDN Zone (Simple) - Basic zone for simple vnets
exampleZone1, err := sdn.NewSimpleLegacy(ctx, "example_zone_1", &sdn.SimpleLegacyArgs{
ResourceId: pulumi.String("zone1"),
Nodes: pulumi.StringArray{
pulumi.String("pve"),
},
Mtu: pulumi.Int(1500),
Dns: pulumi.String("1.1.1.1"),
DnsZone: pulumi.String("example.com"),
Ipam: pulumi.String("pve"),
ReverseDns: pulumi.String("1.1.1.1"),
}, pulumi.DependsOn([]pulumi.Resource{
finalizer,
}))
if err != nil {
return err
}
// SDN Zone (Simple) - Second zone for demonstration
exampleZone2, err := sdn.NewSimpleLegacy(ctx, "example_zone_2", &sdn.SimpleLegacyArgs{
ResourceId: pulumi.String("zone2"),
Nodes: pulumi.StringArray{
pulumi.String("pve"),
},
Mtu: pulumi.Int(1500),
}, pulumi.DependsOn([]pulumi.Resource{
finalizer,
}))
if err != nil {
return err
}
// SDN VNet - Basic vnet
exampleVnet1, err := sdn.NewVnetLegacy(ctx, "example_vnet_1", &sdn.VnetLegacyArgs{
ResourceId: pulumi.String("vnet1"),
Zone: exampleZone1.ResourceId,
}, pulumi.DependsOn([]pulumi.Resource{
finalizer,
}))
if err != nil {
return err
}
// SDN VNet - VNet with alias and port isolation
exampleVnet2, err := sdn.NewVnetLegacy(ctx, "example_vnet_2", &sdn.VnetLegacyArgs{
ResourceId: pulumi.String("vnet2"),
Zone: exampleZone2.ResourceId,
Alias: pulumi.String("Example VNet 2"),
IsolatePorts: pulumi.Bool(true),
VlanAware: pulumi.Bool(false),
}, pulumi.DependsOn([]pulumi.Resource{
finalizer,
}))
if err != nil {
return err
}
// Basic Subnet
basicSubnet, err := sdn.NewSubnetLegacy(ctx, "basic_subnet", &sdn.SubnetLegacyArgs{
Cidr: pulumi.String("192.168.1.0/24"),
Vnet: exampleVnet1.ResourceId,
Gateway: pulumi.String("192.168.1.1"),
}, pulumi.DependsOn([]pulumi.Resource{
finalizer,
}))
if err != nil {
return err
}
// Subnet with DHCP Configuration
dhcpSubnet, err := sdn.NewSubnetLegacy(ctx, "dhcp_subnet", &sdn.SubnetLegacyArgs{
Cidr: pulumi.String("192.168.2.0/24"),
Vnet: exampleVnet2.ResourceId,
Gateway: pulumi.String("192.168.2.1"),
DhcpDnsServer: pulumi.String("192.168.2.53"),
DnsZonePrefix: pulumi.String("internal.example.com"),
Snat: pulumi.Bool(true),
DhcpRange: &sdn.SubnetLegacyDhcpRangeArgs{
StartAddress: pulumi.String("192.168.2.10"),
EndAddress: pulumi.String("192.168.2.100"),
},
}, pulumi.DependsOn([]pulumi.Resource{
finalizer,
}))
if err != nil {
return err
}
// SDN Applier for all resources
_, err = sdn.NewApplierLegacy(ctx, "subnet_applier", nil, pulumi.DependsOn([]pulumi.Resource{
exampleZone1,
exampleZone2,
exampleVnet1,
exampleVnet2,
basicSubnet,
dhcpSubnet,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using ProxmoxVE = Pulumi.ProxmoxVE;
return await Deployment.RunAsync(() =>
{
var finalizer = new ProxmoxVE.Sdn.ApplierLegacy("finalizer");
// SDN Zone (Simple) - Basic zone for simple vnets
var exampleZone1 = new ProxmoxVE.Sdn.Zone.SimpleLegacy("example_zone_1", new()
{
ResourceId = "zone1",
Nodes = new[]
{
"pve",
},
Mtu = %!v(PANIC=Format method: fatal: A failure has occurred: unexpected literal type in GenLiteralValueExpression: cty.NumberIntVal(1500) (example.pp:8,16-20)),
Dns = "1.1.1.1",
DnsZone = "example.com",
Ipam = "pve",
ReverseDns = "1.1.1.1",
}, new CustomResourceOptions
{
DependsOn =
{
finalizer,
},
});
// SDN Zone (Simple) - Second zone for demonstration
var exampleZone2 = new ProxmoxVE.Sdn.Zone.SimpleLegacy("example_zone_2", new()
{
ResourceId = "zone2",
Nodes = new[]
{
"pve",
},
Mtu = %!v(PANIC=Format method: fatal: A failure has occurred: unexpected literal type in GenLiteralValueExpression: cty.NumberIntVal(1500) (example.pp:27,16-20)),
}, new CustomResourceOptions
{
DependsOn =
{
finalizer,
},
});
// SDN VNet - Basic vnet
var exampleVnet1 = new ProxmoxVE.Sdn.VnetLegacy("example_vnet_1", new()
{
ResourceId = "vnet1",
Zone = exampleZone1.ResourceId,
}, new CustomResourceOptions
{
DependsOn =
{
finalizer,
},
});
// SDN VNet - VNet with alias and port isolation
var exampleVnet2 = new ProxmoxVE.Sdn.VnetLegacy("example_vnet_2", new()
{
ResourceId = "vnet2",
Zone = exampleZone2.ResourceId,
Alias = "Example VNet 2",
IsolatePorts = true,
VlanAware = false,
}, new CustomResourceOptions
{
DependsOn =
{
finalizer,
},
});
// Basic Subnet
var basicSubnet = new ProxmoxVE.Sdn.SubnetLegacy("basic_subnet", new()
{
Cidr = "192.168.1.0/24",
Vnet = exampleVnet1.ResourceId,
Gateway = "192.168.1.1",
}, new CustomResourceOptions
{
DependsOn =
{
finalizer,
},
});
// Subnet with DHCP Configuration
var dhcpSubnet = new ProxmoxVE.Sdn.SubnetLegacy("dhcp_subnet", new()
{
Cidr = "192.168.2.0/24",
Vnet = exampleVnet2.ResourceId,
Gateway = "192.168.2.1",
DhcpDnsServer = "192.168.2.53",
DnsZonePrefix = "internal.example.com",
Snat = true,
DhcpRange = new ProxmoxVE.Sdn.Inputs.SubnetLegacyDhcpRangeArgs
{
StartAddress = "192.168.2.10",
EndAddress = "192.168.2.100",
},
}, new CustomResourceOptions
{
DependsOn =
{
finalizer,
},
});
// SDN Applier for all resources
var subnetApplier = new ProxmoxVE.Sdn.ApplierLegacy("subnet_applier", new()
{
}, new CustomResourceOptions
{
DependsOn =
{
exampleZone1,
exampleZone2,
exampleVnet1,
exampleVnet2,
basicSubnet,
dhcpSubnet,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import io.muehlbachler.pulumi.proxmoxve.sdn.ApplierLegacy;
import io.muehlbachler.pulumi.proxmoxve.sdn.SimpleLegacy;
import io.muehlbachler.pulumi.proxmoxve.sdn.SimpleLegacyArgs;
import io.muehlbachler.pulumi.proxmoxve.sdn.VnetLegacy;
import io.muehlbachler.pulumi.proxmoxve.sdn.VnetLegacyArgs;
import io.muehlbachler.pulumi.proxmoxve.sdn.SubnetLegacy;
import io.muehlbachler.pulumi.proxmoxve.sdn.SubnetLegacyArgs;
import com.pulumi.proxmoxve.sdn.inputs.SubnetLegacyDhcpRangeArgs;
import io.muehlbachler.pulumi.proxmoxve.sdn.ApplierLegacyArgs;
import com.pulumi.resources.CustomResourceOptions;
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) {
var finalizer = new ApplierLegacy("finalizer");
// SDN Zone (Simple) - Basic zone for simple vnets
var exampleZone1 = new SimpleLegacy("exampleZone1", SimpleLegacyArgs.builder()
.resourceId("zone1")
.nodes("pve")
.mtu(%!v(PANIC=Format method: fatal: A failure has occurred: unexpected literal type in GenLiteralValueExpression: cty.NumberIntVal(1500) (example.pp:8,16-20)))
.dns("1.1.1.1")
.dnsZone("example.com")
.ipam("pve")
.reverseDns("1.1.1.1")
.build(), CustomResourceOptions.builder()
.dependsOn(finalizer)
.build());
// SDN Zone (Simple) - Second zone for demonstration
var exampleZone2 = new SimpleLegacy("exampleZone2", SimpleLegacyArgs.builder()
.resourceId("zone2")
.nodes("pve")
.mtu(%!v(PANIC=Format method: fatal: A failure has occurred: unexpected literal type in GenLiteralValueExpression: cty.NumberIntVal(1500) (example.pp:27,16-20)))
.build(), CustomResourceOptions.builder()
.dependsOn(finalizer)
.build());
// SDN VNet - Basic vnet
var exampleVnet1 = new VnetLegacy("exampleVnet1", VnetLegacyArgs.builder()
.resourceId("vnet1")
.zone(exampleZone1.resourceId())
.build(), CustomResourceOptions.builder()
.dependsOn(finalizer)
.build());
// SDN VNet - VNet with alias and port isolation
var exampleVnet2 = new VnetLegacy("exampleVnet2", VnetLegacyArgs.builder()
.resourceId("vnet2")
.zone(exampleZone2.resourceId())
.alias("Example VNet 2")
.isolatePorts(true)
.vlanAware(false)
.build(), CustomResourceOptions.builder()
.dependsOn(finalizer)
.build());
// Basic Subnet
var basicSubnet = new SubnetLegacy("basicSubnet", SubnetLegacyArgs.builder()
.cidr("192.168.1.0/24")
.vnet(exampleVnet1.resourceId())
.gateway("192.168.1.1")
.build(), CustomResourceOptions.builder()
.dependsOn(finalizer)
.build());
// Subnet with DHCP Configuration
var dhcpSubnet = new SubnetLegacy("dhcpSubnet", SubnetLegacyArgs.builder()
.cidr("192.168.2.0/24")
.vnet(exampleVnet2.resourceId())
.gateway("192.168.2.1")
.dhcpDnsServer("192.168.2.53")
.dnsZonePrefix("internal.example.com")
.snat(true)
.dhcpRange(SubnetLegacyDhcpRangeArgs.builder()
.startAddress("192.168.2.10")
.endAddress("192.168.2.100")
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(finalizer)
.build());
// SDN Applier for all resources
var subnetApplier = new ApplierLegacy("subnetApplier", ApplierLegacyArgs.Empty, CustomResourceOptions.builder()
.dependsOn(
exampleZone1,
exampleZone2,
exampleVnet1,
exampleVnet2,
basicSubnet,
dhcpSubnet)
.build());
}
}
resources:
# SDN Zone (Simple) - Basic zone for simple vnets
exampleZone1:
type: proxmoxve:sdn/zone:SimpleLegacy
name: example_zone_1
properties:
resourceId: zone1
nodes:
- pve
mtu: 1500 # Optional attributes
dns: 1.1.1.1
dnsZone: example.com
ipam: pve
reverseDns: 1.1.1.1
options:
dependsOn:
- ${finalizer}
# SDN Zone (Simple) - Second zone for demonstration
exampleZone2:
type: proxmoxve:sdn/zone:SimpleLegacy
name: example_zone_2
properties:
resourceId: zone2
nodes:
- pve
mtu: 1500
options:
dependsOn:
- ${finalizer}
# SDN VNet - Basic vnet
exampleVnet1:
type: proxmoxve:sdn:VnetLegacy
name: example_vnet_1
properties:
resourceId: vnet1
zone: ${exampleZone1.resourceId}
options:
dependsOn:
- ${finalizer}
# SDN VNet - VNet with alias and port isolation
exampleVnet2:
type: proxmoxve:sdn:VnetLegacy
name: example_vnet_2
properties:
resourceId: vnet2
zone: ${exampleZone2.resourceId}
alias: Example VNet 2
isolatePorts: true
vlanAware: false
options:
dependsOn:
- ${finalizer}
# Basic Subnet
basicSubnet:
type: proxmoxve:sdn:SubnetLegacy
name: basic_subnet
properties:
cidr: 192.168.1.0/24
vnet: ${exampleVnet1.resourceId}
gateway: 192.168.1.1
options:
dependsOn:
- ${finalizer}
# Subnet with DHCP Configuration
dhcpSubnet:
type: proxmoxve:sdn:SubnetLegacy
name: dhcp_subnet
properties:
cidr: 192.168.2.0/24
vnet: ${exampleVnet2.resourceId}
gateway: 192.168.2.1
dhcpDnsServer: 192.168.2.53
dnsZonePrefix: internal.example.com
snat: true
dhcpRange:
startAddress: 192.168.2.10
endAddress: 192.168.2.100
options:
dependsOn:
- ${finalizer}
# SDN Applier for all resources
subnetApplier:
type: proxmoxve:sdn:ApplierLegacy
name: subnet_applier
options:
dependsOn:
- ${exampleZone1}
- ${exampleZone2}
- ${exampleVnet1}
- ${exampleVnet2}
- ${basicSubnet}
- ${dhcpSubnet}
finalizer:
type: proxmoxve:sdn:ApplierLegacy
Create SubnetLegacy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SubnetLegacy(name: string, args: SubnetLegacyArgs, opts?: CustomResourceOptions);@overload
def SubnetLegacy(resource_name: str,
args: SubnetLegacyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SubnetLegacy(resource_name: str,
opts: Optional[ResourceOptions] = None,
cidr: Optional[str] = None,
vnet: Optional[str] = None,
dhcp_dns_server: Optional[str] = None,
dhcp_range: Optional[SubnetLegacyDhcpRangeArgs] = None,
dns_zone_prefix: Optional[str] = None,
gateway: Optional[str] = None,
snat: Optional[bool] = None)func NewSubnetLegacy(ctx *Context, name string, args SubnetLegacyArgs, opts ...ResourceOption) (*SubnetLegacy, error)public SubnetLegacy(string name, SubnetLegacyArgs args, CustomResourceOptions? opts = null)
public SubnetLegacy(String name, SubnetLegacyArgs args)
public SubnetLegacy(String name, SubnetLegacyArgs args, CustomResourceOptions options)
type: proxmoxve:sdn:SubnetLegacy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SubnetLegacyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SubnetLegacyArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SubnetLegacyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SubnetLegacyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SubnetLegacyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var subnetLegacyResource = new ProxmoxVE.Sdn.SubnetLegacy("subnetLegacyResource", new()
{
Cidr = "string",
Vnet = "string",
DhcpDnsServer = "string",
DhcpRange = new ProxmoxVE.Sdn.Inputs.SubnetLegacyDhcpRangeArgs
{
EndAddress = "string",
StartAddress = "string",
},
DnsZonePrefix = "string",
Gateway = "string",
Snat = false,
});
example, err := sdn.NewSubnetLegacy(ctx, "subnetLegacyResource", &sdn.SubnetLegacyArgs{
Cidr: pulumi.String("string"),
Vnet: pulumi.String("string"),
DhcpDnsServer: pulumi.String("string"),
DhcpRange: &sdn.SubnetLegacyDhcpRangeArgs{
EndAddress: pulumi.String("string"),
StartAddress: pulumi.String("string"),
},
DnsZonePrefix: pulumi.String("string"),
Gateway: pulumi.String("string"),
Snat: pulumi.Bool(false),
})
var subnetLegacyResource = new SubnetLegacy("subnetLegacyResource", SubnetLegacyArgs.builder()
.cidr("string")
.vnet("string")
.dhcpDnsServer("string")
.dhcpRange(SubnetLegacyDhcpRangeArgs.builder()
.endAddress("string")
.startAddress("string")
.build())
.dnsZonePrefix("string")
.gateway("string")
.snat(false)
.build());
subnet_legacy_resource = proxmoxve.sdn.SubnetLegacy("subnetLegacyResource",
cidr="string",
vnet="string",
dhcp_dns_server="string",
dhcp_range={
"end_address": "string",
"start_address": "string",
},
dns_zone_prefix="string",
gateway="string",
snat=False)
const subnetLegacyResource = new proxmoxve.sdn.SubnetLegacy("subnetLegacyResource", {
cidr: "string",
vnet: "string",
dhcpDnsServer: "string",
dhcpRange: {
endAddress: "string",
startAddress: "string",
},
dnsZonePrefix: "string",
gateway: "string",
snat: false,
});
type: proxmoxve:sdn:SubnetLegacy
properties:
cidr: string
dhcpDnsServer: string
dhcpRange:
endAddress: string
startAddress: string
dnsZonePrefix: string
gateway: string
snat: false
vnet: string
SubnetLegacy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SubnetLegacy resource accepts the following input properties:
- Cidr string
- A CIDR network address, for example 10.0.0.0/8
- Vnet string
- The VNet to which this subnet belongs.
- Dhcp
Dns stringServer - The DNS server used for DHCP.
- Dhcp
Range Pulumi.Proxmox VE. Sdn. Inputs. Subnet Legacy Dhcp Range - DHCP range (start and end IPs).
- Dns
Zone stringPrefix - Prefix used for DNS zone delegation.
- Gateway string
- The gateway address for the subnet.
- Snat bool
- Whether SNAT is enabled for the subnet.
- Cidr string
- A CIDR network address, for example 10.0.0.0/8
- Vnet string
- The VNet to which this subnet belongs.
- Dhcp
Dns stringServer - The DNS server used for DHCP.
- Dhcp
Range SubnetLegacy Dhcp Range Args - DHCP range (start and end IPs).
- Dns
Zone stringPrefix - Prefix used for DNS zone delegation.
- Gateway string
- The gateway address for the subnet.
- Snat bool
- Whether SNAT is enabled for the subnet.
- cidr String
- A CIDR network address, for example 10.0.0.0/8
- vnet String
- The VNet to which this subnet belongs.
- dhcp
Dns StringServer - The DNS server used for DHCP.
- dhcp
Range SubnetLegacy Dhcp Range - DHCP range (start and end IPs).
- dns
Zone StringPrefix - Prefix used for DNS zone delegation.
- gateway String
- The gateway address for the subnet.
- snat Boolean
- Whether SNAT is enabled for the subnet.
- cidr string
- A CIDR network address, for example 10.0.0.0/8
- vnet string
- The VNet to which this subnet belongs.
- dhcp
Dns stringServer - The DNS server used for DHCP.
- dhcp
Range SubnetLegacy Dhcp Range - DHCP range (start and end IPs).
- dns
Zone stringPrefix - Prefix used for DNS zone delegation.
- gateway string
- The gateway address for the subnet.
- snat boolean
- Whether SNAT is enabled for the subnet.
- cidr str
- A CIDR network address, for example 10.0.0.0/8
- vnet str
- The VNet to which this subnet belongs.
- dhcp_
dns_ strserver - The DNS server used for DHCP.
- dhcp_
range SubnetLegacy Dhcp Range Args - DHCP range (start and end IPs).
- dns_
zone_ strprefix - Prefix used for DNS zone delegation.
- gateway str
- The gateway address for the subnet.
- snat bool
- Whether SNAT is enabled for the subnet.
- cidr String
- A CIDR network address, for example 10.0.0.0/8
- vnet String
- The VNet to which this subnet belongs.
- dhcp
Dns StringServer - The DNS server used for DHCP.
- dhcp
Range Property Map - DHCP range (start and end IPs).
- dns
Zone StringPrefix - Prefix used for DNS zone delegation.
- gateway String
- The gateway address for the subnet.
- snat Boolean
- Whether SNAT is enabled for the subnet.
Outputs
All input properties are implicitly available as output properties. Additionally, the SubnetLegacy resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing SubnetLegacy Resource
Get an existing SubnetLegacy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SubnetLegacyState, opts?: CustomResourceOptions): SubnetLegacy@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cidr: Optional[str] = None,
dhcp_dns_server: Optional[str] = None,
dhcp_range: Optional[SubnetLegacyDhcpRangeArgs] = None,
dns_zone_prefix: Optional[str] = None,
gateway: Optional[str] = None,
snat: Optional[bool] = None,
vnet: Optional[str] = None) -> SubnetLegacyfunc GetSubnetLegacy(ctx *Context, name string, id IDInput, state *SubnetLegacyState, opts ...ResourceOption) (*SubnetLegacy, error)public static SubnetLegacy Get(string name, Input<string> id, SubnetLegacyState? state, CustomResourceOptions? opts = null)public static SubnetLegacy get(String name, Output<String> id, SubnetLegacyState state, CustomResourceOptions options)resources: _: type: proxmoxve:sdn:SubnetLegacy get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Cidr string
- A CIDR network address, for example 10.0.0.0/8
- Dhcp
Dns stringServer - The DNS server used for DHCP.
- Dhcp
Range Pulumi.Proxmox VE. Sdn. Inputs. Subnet Legacy Dhcp Range - DHCP range (start and end IPs).
- Dns
Zone stringPrefix - Prefix used for DNS zone delegation.
- Gateway string
- The gateway address for the subnet.
- Snat bool
- Whether SNAT is enabled for the subnet.
- Vnet string
- The VNet to which this subnet belongs.
- Cidr string
- A CIDR network address, for example 10.0.0.0/8
- Dhcp
Dns stringServer - The DNS server used for DHCP.
- Dhcp
Range SubnetLegacy Dhcp Range Args - DHCP range (start and end IPs).
- Dns
Zone stringPrefix - Prefix used for DNS zone delegation.
- Gateway string
- The gateway address for the subnet.
- Snat bool
- Whether SNAT is enabled for the subnet.
- Vnet string
- The VNet to which this subnet belongs.
- cidr String
- A CIDR network address, for example 10.0.0.0/8
- dhcp
Dns StringServer - The DNS server used for DHCP.
- dhcp
Range SubnetLegacy Dhcp Range - DHCP range (start and end IPs).
- dns
Zone StringPrefix - Prefix used for DNS zone delegation.
- gateway String
- The gateway address for the subnet.
- snat Boolean
- Whether SNAT is enabled for the subnet.
- vnet String
- The VNet to which this subnet belongs.
- cidr string
- A CIDR network address, for example 10.0.0.0/8
- dhcp
Dns stringServer - The DNS server used for DHCP.
- dhcp
Range SubnetLegacy Dhcp Range - DHCP range (start and end IPs).
- dns
Zone stringPrefix - Prefix used for DNS zone delegation.
- gateway string
- The gateway address for the subnet.
- snat boolean
- Whether SNAT is enabled for the subnet.
- vnet string
- The VNet to which this subnet belongs.
- cidr str
- A CIDR network address, for example 10.0.0.0/8
- dhcp_
dns_ strserver - The DNS server used for DHCP.
- dhcp_
range SubnetLegacy Dhcp Range Args - DHCP range (start and end IPs).
- dns_
zone_ strprefix - Prefix used for DNS zone delegation.
- gateway str
- The gateway address for the subnet.
- snat bool
- Whether SNAT is enabled for the subnet.
- vnet str
- The VNet to which this subnet belongs.
- cidr String
- A CIDR network address, for example 10.0.0.0/8
- dhcp
Dns StringServer - The DNS server used for DHCP.
- dhcp
Range Property Map - DHCP range (start and end IPs).
- dns
Zone StringPrefix - Prefix used for DNS zone delegation.
- gateway String
- The gateway address for the subnet.
- snat Boolean
- Whether SNAT is enabled for the subnet.
- vnet String
- The VNet to which this subnet belongs.
Supporting Types
SubnetLegacyDhcpRange, SubnetLegacyDhcpRangeArgs
- End
Address string - End of the DHCP range.
- Start
Address string - Start of the DHCP range.
- End
Address string - End of the DHCP range.
- Start
Address string - Start of the DHCP range.
- end
Address String - End of the DHCP range.
- start
Address String - Start of the DHCP range.
- end
Address string - End of the DHCP range.
- start
Address string - Start of the DHCP range.
- end_
address str - End of the DHCP range.
- start_
address str - Start of the DHCP range.
- end
Address String - End of the DHCP range.
- start
Address String - Start of the DHCP range.
Import
!/usr/bin/env sh
SDN subnet can be imported using its unique identifier in the format:
$ pulumi import proxmoxve:sdn/subnetLegacy:SubnetLegacy basic_subnet vnet1/zone1-192.168.1.0-24
$ pulumi import proxmoxve:sdn/subnetLegacy:SubnetLegacy dhcp_subnet vnet2/zone2-192.168.2.0-24
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- proxmoxve muhlba91/pulumi-proxmoxve
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
proxmoxTerraform Provider.
published on Sunday, Apr 5, 2026 by Daniel Muehlbachler-Pietrzykowski
