1. Packages
  2. Proxmox Virtual Environment (Proxmox VE)
  3. API Docs
  4. Sdn
  5. getSubnet
Proxmox Virtual Environment (Proxmox VE) v7.7.0 published on Sunday, Oct 12, 2025 by Daniel Muehlbachler-Pietrzykowski

proxmoxve.Sdn.getSubnet

Explore with Pulumi AI

proxmoxve logo
Proxmox Virtual Environment (Proxmox VE) v7.7.0 published on Sunday, Oct 12, 2025 by Daniel Muehlbachler-Pietrzykowski

    Retrieve details about a specific SDN Subnet in Proxmox VE.

    Using getSubnet

    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 getSubnet(args: GetSubnetArgs, opts?: InvokeOptions): Promise<GetSubnetResult>
    function getSubnetOutput(args: GetSubnetOutputArgs, opts?: InvokeOptions): Output<GetSubnetResult>
    def get_subnet(cidr: Optional[str] = None,
                   dhcp_range: Optional[GetSubnetDhcpRange] = None,
                   vnet: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetSubnetResult
    def get_subnet_output(cidr: Optional[pulumi.Input[str]] = None,
                   dhcp_range: Optional[pulumi.Input[GetSubnetDhcpRangeArgs]] = None,
                   vnet: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetSubnetResult]
    func LookupSubnet(ctx *Context, args *LookupSubnetArgs, opts ...InvokeOption) (*LookupSubnetResult, error)
    func LookupSubnetOutput(ctx *Context, args *LookupSubnetOutputArgs, opts ...InvokeOption) LookupSubnetResultOutput

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

    public static class GetSubnet 
    {
        public static Task<GetSubnetResult> InvokeAsync(GetSubnetArgs args, InvokeOptions? opts = null)
        public static Output<GetSubnetResult> Invoke(GetSubnetInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSubnetResult> getSubnet(GetSubnetArgs args, InvokeOptions options)
    public static Output<GetSubnetResult> getSubnet(GetSubnetArgs args, InvokeOptions options)
    
    fn::invoke:
      function: proxmoxve:Sdn/getSubnet:getSubnet
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Cidr string
    A CIDR network address, for example 10.0.0.0/8
    Vnet string
    The VNet this subnet belongs to.
    DhcpRange Pulumi.ProxmoxVE.Sdn.Inputs.GetSubnetDhcpRange
    DHCP range (start and end IPs).
    Cidr string
    A CIDR network address, for example 10.0.0.0/8
    Vnet string
    The VNet this subnet belongs to.
    DhcpRange GetSubnetDhcpRange
    DHCP range (start and end IPs).
    cidr String
    A CIDR network address, for example 10.0.0.0/8
    vnet String
    The VNet this subnet belongs to.
    dhcpRange GetSubnetDhcpRange
    DHCP range (start and end IPs).
    cidr string
    A CIDR network address, for example 10.0.0.0/8
    vnet string
    The VNet this subnet belongs to.
    dhcpRange GetSubnetDhcpRange
    DHCP range (start and end IPs).
    cidr str
    A CIDR network address, for example 10.0.0.0/8
    vnet str
    The VNet this subnet belongs to.
    dhcp_range GetSubnetDhcpRange
    DHCP range (start and end IPs).
    cidr String
    A CIDR network address, for example 10.0.0.0/8
    vnet String
    The VNet this subnet belongs to.
    dhcpRange Property Map
    DHCP range (start and end IPs).

    getSubnet Result

    The following output properties are available:

    Cidr string
    A CIDR network address, for example 10.0.0.0/8
    DhcpDnsServer string
    The DNS server used for DHCP.
    DhcpRange Pulumi.ProxmoxVE.Sdn.Outputs.GetSubnetDhcpRange
    DHCP range (start and end IPs).
    DnsZonePrefix string
    Prefix used for DNS zone delegation.
    Gateway string
    The gateway address for the subnet.
    Id string
    The full ID in the format 'vnet-id/subnet-id'.
    Snat bool
    Whether SNAT is enabled for the subnet.
    Vnet string
    The VNet this subnet belongs to.
    Cidr string
    A CIDR network address, for example 10.0.0.0/8
    DhcpDnsServer string
    The DNS server used for DHCP.
    DhcpRange GetSubnetDhcpRange
    DHCP range (start and end IPs).
    DnsZonePrefix string
    Prefix used for DNS zone delegation.
    Gateway string
    The gateway address for the subnet.
    Id string
    The full ID in the format 'vnet-id/subnet-id'.
    Snat bool
    Whether SNAT is enabled for the subnet.
    Vnet string
    The VNet this subnet belongs to.
    cidr String
    A CIDR network address, for example 10.0.0.0/8
    dhcpDnsServer String
    The DNS server used for DHCP.
    dhcpRange GetSubnetDhcpRange
    DHCP range (start and end IPs).
    dnsZonePrefix String
    Prefix used for DNS zone delegation.
    gateway String
    The gateway address for the subnet.
    id String
    The full ID in the format 'vnet-id/subnet-id'.
    snat Boolean
    Whether SNAT is enabled for the subnet.
    vnet String
    The VNet this subnet belongs to.
    cidr string
    A CIDR network address, for example 10.0.0.0/8
    dhcpDnsServer string
    The DNS server used for DHCP.
    dhcpRange GetSubnetDhcpRange
    DHCP range (start and end IPs).
    dnsZonePrefix string
    Prefix used for DNS zone delegation.
    gateway string
    The gateway address for the subnet.
    id string
    The full ID in the format 'vnet-id/subnet-id'.
    snat boolean
    Whether SNAT is enabled for the subnet.
    vnet string
    The VNet this subnet belongs to.
    cidr str
    A CIDR network address, for example 10.0.0.0/8
    dhcp_dns_server str
    The DNS server used for DHCP.
    dhcp_range GetSubnetDhcpRange
    DHCP range (start and end IPs).
    dns_zone_prefix str
    Prefix used for DNS zone delegation.
    gateway str
    The gateway address for the subnet.
    id str
    The full ID in the format 'vnet-id/subnet-id'.
    snat bool
    Whether SNAT is enabled for the subnet.
    vnet str
    The VNet this subnet belongs to.
    cidr String
    A CIDR network address, for example 10.0.0.0/8
    dhcpDnsServer String
    The DNS server used for DHCP.
    dhcpRange Property Map
    DHCP range (start and end IPs).
    dnsZonePrefix String
    Prefix used for DNS zone delegation.
    gateway String
    The gateway address for the subnet.
    id String
    The full ID in the format 'vnet-id/subnet-id'.
    snat Boolean
    Whether SNAT is enabled for the subnet.
    vnet String
    The VNet this subnet belongs to.

    Supporting Types

    GetSubnetDhcpRange

    EndAddress string
    End of the DHCP range.
    StartAddress string
    Start of the DHCP range.
    EndAddress string
    End of the DHCP range.
    StartAddress string
    Start of the DHCP range.
    endAddress String
    End of the DHCP range.
    startAddress String
    Start of the DHCP range.
    endAddress string
    End of the DHCP range.
    startAddress string
    Start of the DHCP range.
    end_address str
    End of the DHCP range.
    start_address str
    Start of the DHCP range.
    endAddress String
    End of the DHCP range.
    startAddress String
    Start of the DHCP range.

    Package Details

    Repository
    proxmoxve muhlba91/pulumi-proxmoxve
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the proxmox Terraform Provider.
    proxmoxve logo
    Proxmox Virtual Environment (Proxmox VE) v7.7.0 published on Sunday, Oct 12, 2025 by Daniel Muehlbachler-Pietrzykowski
      AI Agentic Workflows: Register now