1. Registry
  2. Packages
  3. Selectel Provider
  4. API Docs
  5. getVpcNetworkSubnetV2
Viewing docs for selectel 9.5.0
published on Friday, Oct 30, 2026 by selectel
selectel
Viewing docs for selectel 9.5.0
published on Friday, Oct 30, 2026 by selectel

    Provides a subnet of a private network. For more information about private network subnets, see the official Selectel documentation.

    If you are upgrading from a version earlier than 9.1.0, follow the upgrade guide to migrate your resources from the OpenStack provider.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as selectel from "@pulumi/selectel";
    
    const subnet1 = selectel.getVpcNetworkSubnetV2({
        projectId: project1.id,
        region: "ru-6",
        cidr: "192.168.199.0/24",
    });
    
    import pulumi
    import pulumi_selectel as selectel
    
    subnet1 = selectel.get_vpc_network_subnet_v2(project_id=project1["id"],
        region="ru-6",
        cidr="192.168.199.0/24")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v9/selectel"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := selectel.LookupVpcNetworkSubnetV2(ctx, &selectel.LookupVpcNetworkSubnetV2Args{
    			ProjectId: project1.Id,
    			Region:    "ru-6",
    			Cidr:      pulumi.StringRef("192.168.199.0/24"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Selectel = Pulumi.Selectel;
    
    return await Deployment.RunAsync(() => 
    {
        var subnet1 = Selectel.GetVpcNetworkSubnetV2.Invoke(new()
        {
            ProjectId = project1.Id,
            Region = "ru-6",
            Cidr = "192.168.199.0/24",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.selectel.SelectelFunctions;
    import com.pulumi.selectel.inputs.GetVpcNetworkSubnetV2Args;
    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 subnet1 = SelectelFunctions.getVpcNetworkSubnetV2(GetVpcNetworkSubnetV2Args.builder()
                .projectId(project1.id())
                .region("ru-6")
                .cidr("192.168.199.0/24")
                .build());
    
        }
    }
    
    variables:
      subnet1:
        fn::invoke:
          function: selectel:getVpcNetworkSubnetV2
          arguments:
            projectId: ${project1.id}
            region: ru-6
            cidr: 192.168.199.0/24
    
    Example coming soon!
    

    Using getVpcNetworkSubnetV2

    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 getVpcNetworkSubnetV2(args: GetVpcNetworkSubnetV2Args, opts?: InvokeOptions): Promise<GetVpcNetworkSubnetV2Result>
    function getVpcNetworkSubnetV2Output(args: GetVpcNetworkSubnetV2OutputArgs, opts?: InvokeOutputOptions): Output<GetVpcNetworkSubnetV2Result>
    def get_vpc_network_subnet_v2(cidr: Optional[str] = None,
                                  description: Optional[str] = None,
                                  enable_dhcp: Optional[bool] = None,
                                  gateway_ip: Optional[str] = None,
                                  ip_version: Optional[float] = None,
                                  ipv6_address_mode: Optional[str] = None,
                                  ipv6_ra_mode: Optional[str] = None,
                                  name: Optional[str] = None,
                                  network_id: Optional[str] = None,
                                  project_id: Optional[str] = None,
                                  region: Optional[str] = None,
                                  subnet_id: Optional[str] = None,
                                  tags: Optional[Sequence[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetVpcNetworkSubnetV2Result
    def get_vpc_network_subnet_v2_output(cidr: pulumi.Input[Optional[str]] = None,
                                  description: pulumi.Input[Optional[str]] = None,
                                  enable_dhcp: pulumi.Input[Optional[bool]] = None,
                                  gateway_ip: pulumi.Input[Optional[str]] = None,
                                  ip_version: pulumi.Input[Optional[float]] = None,
                                  ipv6_address_mode: pulumi.Input[Optional[str]] = None,
                                  ipv6_ra_mode: pulumi.Input[Optional[str]] = None,
                                  name: pulumi.Input[Optional[str]] = None,
                                  network_id: pulumi.Input[Optional[str]] = None,
                                  project_id: pulumi.Input[Optional[str]] = None,
                                  region: pulumi.Input[Optional[str]] = None,
                                  subnet_id: pulumi.Input[Optional[str]] = None,
                                  tags: pulumi.Input[Optional[Sequence[pulumi.Input[str]]]] = None,
                                  opts: Optional[InvokeOutputOptions] = None) -> Output[GetVpcNetworkSubnetV2Result]
    func LookupVpcNetworkSubnetV2(ctx *Context, args *LookupVpcNetworkSubnetV2Args, opts ...InvokeOption) (*LookupVpcNetworkSubnetV2Result, error)
    func LookupVpcNetworkSubnetV2Output(ctx *Context, args *LookupVpcNetworkSubnetV2OutputArgs, opts ...InvokeOption) LookupVpcNetworkSubnetV2ResultOutput

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

    public static class GetVpcNetworkSubnetV2 
    {
        public static Task<GetVpcNetworkSubnetV2Result> InvokeAsync(GetVpcNetworkSubnetV2Args args, InvokeOptions? opts = null)
        public static Output<GetVpcNetworkSubnetV2Result> Invoke(GetVpcNetworkSubnetV2InvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetVpcNetworkSubnetV2Result> Invoke(GetVpcNetworkSubnetV2InvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetVpcNetworkSubnetV2Result> getVpcNetworkSubnetV2(GetVpcNetworkSubnetV2Args args, InvokeOptions options)
    public static Output<GetVpcNetworkSubnetV2Result> getVpcNetworkSubnetV2(GetVpcNetworkSubnetV2Args args, InvokeOptions options)
    public static Output<GetVpcNetworkSubnetV2Result> getVpcNetworkSubnetV2(GetVpcNetworkSubnetV2Args args, InvokeOutputOptions options)
    
    fn::invoke:
      function: selectel:index/getVpcNetworkSubnetV2:getVpcNetworkSubnetV2
      arguments:
        # arguments dictionary
    data "selectel_get_vpc_network_subnet_v2" "name" {
        # arguments
    }

    The following arguments are supported:

    ProjectId string
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects.
    Region string
    Pool where the subnet is located, for example, ru-6. Learn more about available pools in Product availability by location.
    Cidr string
    CIDR of the subnet, for example 192.168.1.0/24.
    Description string
    Description of the subnet.
    EnableDhcp bool
    Specifies if DHCP is enabled for the subnet.
    GatewayIp string
    Gateway of the subnet, for example 192.168.1.1.
    IpVersion double
    Internet protocol version. Available versions are 4 or 6.
    Ipv6AddressMode string
    IPv6 address assignment mode. Available modes are slaac, dhcpv6-stateful, or dhcpv6-stateless.
    Ipv6RaMode string
    IPv6 router advertisement mode. Available modes are slaac, dhcpv6-stateful, or dhcpv6-stateless.
    Name string
    Name of the subnet.
    NetworkId string
    Unique identifier of the parent network. To get the network ID, in the Control panel, go to Products ⟶ Cloud Servers ⟶ Network ⟶ the Private networks tab ⟶ the network page ⟶ copy the ID under the network name.
    SubnetId string
    Unique identifier of the subnet. To get the subnet ID, in the Control panel, go to Products ⟶ Cloud Servers ⟶ Network ⟶ the Private networks tab ⟶ the network page ⟶ the Subnets tab ⟶ copy the ID of the required subnet.
    Tags List<string>
    Tags of the subnet.
    ProjectId string
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects.
    Region string
    Pool where the subnet is located, for example, ru-6. Learn more about available pools in Product availability by location.
    Cidr string
    CIDR of the subnet, for example 192.168.1.0/24.
    Description string
    Description of the subnet.
    EnableDhcp bool
    Specifies if DHCP is enabled for the subnet.
    GatewayIp string
    Gateway of the subnet, for example 192.168.1.1.
    IpVersion float64
    Internet protocol version. Available versions are 4 or 6.
    Ipv6AddressMode string
    IPv6 address assignment mode. Available modes are slaac, dhcpv6-stateful, or dhcpv6-stateless.
    Ipv6RaMode string
    IPv6 router advertisement mode. Available modes are slaac, dhcpv6-stateful, or dhcpv6-stateless.
    Name string
    Name of the subnet.
    NetworkId string
    Unique identifier of the parent network. To get the network ID, in the Control panel, go to Products ⟶ Cloud Servers ⟶ Network ⟶ the Private networks tab ⟶ the network page ⟶ copy the ID under the network name.
    SubnetId string
    Unique identifier of the subnet. To get the subnet ID, in the Control panel, go to Products ⟶ Cloud Servers ⟶ Network ⟶ the Private networks tab ⟶ the network page ⟶ the Subnets tab ⟶ copy the ID of the required subnet.
    Tags []string
    Tags of the subnet.
    project_id string
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects.
    region string
    Pool where the subnet is located, for example, ru-6. Learn more about available pools in Product availability by location.
    cidr string
    CIDR of the subnet, for example 192.168.1.0/24.
    description string
    Description of the subnet.
    enable_dhcp bool
    Specifies if DHCP is enabled for the subnet.
    gateway_ip string
    Gateway of the subnet, for example 192.168.1.1.
    ip_version number
    Internet protocol version. Available versions are 4 or 6.
    ipv6_address_mode string
    IPv6 address assignment mode. Available modes are slaac, dhcpv6-stateful, or dhcpv6-stateless.
    ipv6_ra_mode string
    IPv6 router advertisement mode. Available modes are slaac, dhcpv6-stateful, or dhcpv6-stateless.
    name string
    Name of the subnet.
    network_id string
    Unique identifier of the parent network. To get the network ID, in the Control panel, go to Products ⟶ Cloud Servers ⟶ Network ⟶ the Private networks tab ⟶ the network page ⟶ copy the ID under the network name.
    subnet_id string
    Unique identifier of the subnet. To get the subnet ID, in the Control panel, go to Products ⟶ Cloud Servers ⟶ Network ⟶ the Private networks tab ⟶ the network page ⟶ the Subnets tab ⟶ copy the ID of the required subnet.
    tags list(string)
    Tags of the subnet.
    projectId String
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects.
    region String
    Pool where the subnet is located, for example, ru-6. Learn more about available pools in Product availability by location.
    cidr String
    CIDR of the subnet, for example 192.168.1.0/24.
    description String
    Description of the subnet.
    enableDhcp Boolean
    Specifies if DHCP is enabled for the subnet.
    gatewayIp String
    Gateway of the subnet, for example 192.168.1.1.
    ipVersion Double
    Internet protocol version. Available versions are 4 or 6.
    ipv6AddressMode String
    IPv6 address assignment mode. Available modes are slaac, dhcpv6-stateful, or dhcpv6-stateless.
    ipv6RaMode String
    IPv6 router advertisement mode. Available modes are slaac, dhcpv6-stateful, or dhcpv6-stateless.
    name String
    Name of the subnet.
    networkId String
    Unique identifier of the parent network. To get the network ID, in the Control panel, go to Products ⟶ Cloud Servers ⟶ Network ⟶ the Private networks tab ⟶ the network page ⟶ copy the ID under the network name.
    subnetId String
    Unique identifier of the subnet. To get the subnet ID, in the Control panel, go to Products ⟶ Cloud Servers ⟶ Network ⟶ the Private networks tab ⟶ the network page ⟶ the Subnets tab ⟶ copy the ID of the required subnet.
    tags List<String>
    Tags of the subnet.
    projectId string
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects.
    region string
    Pool where the subnet is located, for example, ru-6. Learn more about available pools in Product availability by location.
    cidr string
    CIDR of the subnet, for example 192.168.1.0/24.
    description string
    Description of the subnet.
    enableDhcp boolean
    Specifies if DHCP is enabled for the subnet.
    gatewayIp string
    Gateway of the subnet, for example 192.168.1.1.
    ipVersion number
    Internet protocol version. Available versions are 4 or 6.
    ipv6AddressMode string
    IPv6 address assignment mode. Available modes are slaac, dhcpv6-stateful, or dhcpv6-stateless.
    ipv6RaMode string
    IPv6 router advertisement mode. Available modes are slaac, dhcpv6-stateful, or dhcpv6-stateless.
    name string
    Name of the subnet.
    networkId string
    Unique identifier of the parent network. To get the network ID, in the Control panel, go to Products ⟶ Cloud Servers ⟶ Network ⟶ the Private networks tab ⟶ the network page ⟶ copy the ID under the network name.
    subnetId string
    Unique identifier of the subnet. To get the subnet ID, in the Control panel, go to Products ⟶ Cloud Servers ⟶ Network ⟶ the Private networks tab ⟶ the network page ⟶ the Subnets tab ⟶ copy the ID of the required subnet.
    tags string[]
    Tags of the subnet.
    project_id str
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects.
    region str
    Pool where the subnet is located, for example, ru-6. Learn more about available pools in Product availability by location.
    cidr str
    CIDR of the subnet, for example 192.168.1.0/24.
    description str
    Description of the subnet.
    enable_dhcp bool
    Specifies if DHCP is enabled for the subnet.
    gateway_ip str
    Gateway of the subnet, for example 192.168.1.1.
    ip_version float
    Internet protocol version. Available versions are 4 or 6.
    ipv6_address_mode str
    IPv6 address assignment mode. Available modes are slaac, dhcpv6-stateful, or dhcpv6-stateless.
    ipv6_ra_mode str
    IPv6 router advertisement mode. Available modes are slaac, dhcpv6-stateful, or dhcpv6-stateless.
    name str
    Name of the subnet.
    network_id str
    Unique identifier of the parent network. To get the network ID, in the Control panel, go to Products ⟶ Cloud Servers ⟶ Network ⟶ the Private networks tab ⟶ the network page ⟶ copy the ID under the network name.
    subnet_id str
    Unique identifier of the subnet. To get the subnet ID, in the Control panel, go to Products ⟶ Cloud Servers ⟶ Network ⟶ the Private networks tab ⟶ the network page ⟶ the Subnets tab ⟶ copy the ID of the required subnet.
    tags Sequence[str]
    Tags of the subnet.
    projectId String
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects.
    region String
    Pool where the subnet is located, for example, ru-6. Learn more about available pools in Product availability by location.
    cidr String
    CIDR of the subnet, for example 192.168.1.0/24.
    description String
    Description of the subnet.
    enableDhcp Boolean
    Specifies if DHCP is enabled for the subnet.
    gatewayIp String
    Gateway of the subnet, for example 192.168.1.1.
    ipVersion Number
    Internet protocol version. Available versions are 4 or 6.
    ipv6AddressMode String
    IPv6 address assignment mode. Available modes are slaac, dhcpv6-stateful, or dhcpv6-stateless.
    ipv6RaMode String
    IPv6 router advertisement mode. Available modes are slaac, dhcpv6-stateful, or dhcpv6-stateless.
    name String
    Name of the subnet.
    networkId String
    Unique identifier of the parent network. To get the network ID, in the Control panel, go to Products ⟶ Cloud Servers ⟶ Network ⟶ the Private networks tab ⟶ the network page ⟶ copy the ID under the network name.
    subnetId String
    Unique identifier of the subnet. To get the subnet ID, in the Control panel, go to Products ⟶ Cloud Servers ⟶ Network ⟶ the Private networks tab ⟶ the network page ⟶ the Subnets tab ⟶ copy the ID of the required subnet.
    tags List<String>
    Tags of the subnet.

    getVpcNetworkSubnetV2 Result

    The following output properties are available:

    AllTags List<string>
    All tags of the subnet.
    AllocationPools List<GetVpcNetworkSubnetV2AllocationPool>
    Allocation pools of the subnet.
    Blocked bool
    Specifies if the subnet is administratively blocked.
    Cidr string
    CIDR of the subnet, for example 192.168.1.0/24.
    Description string
    Description of the subnet.
    DnsNameservers List<string>
    DNS nameservers of the subnet.
    EnableDhcp bool
    Specifies if DHCP is enabled for the subnet.
    GatewayIp string
    Gateway of the subnet, for example 192.168.1.1.
    HostRoutes List<GetVpcNetworkSubnetV2HostRoute>
    Host routes of the subnet.
    Id string
    Unique identifier of the subnet.
    IpVersion double
    Internet protocol version. Available versions are 4 or 6.
    Ipv6AddressMode string
    IPv6 address assignment mode. Available modes are slaac, dhcpv6-stateful, or dhcpv6-stateless.
    Ipv6RaMode string
    IPv6 router advertisement mode. Available modes are slaac, dhcpv6-stateful, or dhcpv6-stateless.
    Name string
    Name of the subnet.
    NetworkId string
    Unique identifier of the parent network. To get the network ID, in the Control panel, go to Products ⟶ Cloud Servers ⟶ Network ⟶ the Private networks tab ⟶ the network page ⟶ copy the ID under the network name.
    ProjectId string
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects.
    Region string
    Pool where the subnet is located, for example, ru-6. Learn more about available pools in Product availability by location.
    ServiceTypes List<string>
    Service types of the subnet.
    SubnetId string
    Unique identifier of the subnet. To get the subnet ID, in the Control panel, go to Products ⟶ Cloud Servers ⟶ Network ⟶ the Private networks tab ⟶ the network page ⟶ the Subnets tab ⟶ copy the ID of the required subnet.
    Tags List<string>
    Tags of the subnet.
    AllTags []string
    All tags of the subnet.
    AllocationPools []GetVpcNetworkSubnetV2AllocationPool
    Allocation pools of the subnet.
    Blocked bool
    Specifies if the subnet is administratively blocked.
    Cidr string
    CIDR of the subnet, for example 192.168.1.0/24.
    Description string
    Description of the subnet.
    DnsNameservers []string
    DNS nameservers of the subnet.
    EnableDhcp bool
    Specifies if DHCP is enabled for the subnet.
    GatewayIp string
    Gateway of the subnet, for example 192.168.1.1.
    HostRoutes []GetVpcNetworkSubnetV2HostRoute
    Host routes of the subnet.
    Id string
    Unique identifier of the subnet.
    IpVersion float64
    Internet protocol version. Available versions are 4 or 6.
    Ipv6AddressMode string
    IPv6 address assignment mode. Available modes are slaac, dhcpv6-stateful, or dhcpv6-stateless.
    Ipv6RaMode string
    IPv6 router advertisement mode. Available modes are slaac, dhcpv6-stateful, or dhcpv6-stateless.
    Name string
    Name of the subnet.
    NetworkId string
    Unique identifier of the parent network. To get the network ID, in the Control panel, go to Products ⟶ Cloud Servers ⟶ Network ⟶ the Private networks tab ⟶ the network page ⟶ copy the ID under the network name.
    ProjectId string
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects.
    Region string
    Pool where the subnet is located, for example, ru-6. Learn more about available pools in Product availability by location.
    ServiceTypes []string
    Service types of the subnet.
    SubnetId string
    Unique identifier of the subnet. To get the subnet ID, in the Control panel, go to Products ⟶ Cloud Servers ⟶ Network ⟶ the Private networks tab ⟶ the network page ⟶ the Subnets tab ⟶ copy the ID of the required subnet.
    Tags []string
    Tags of the subnet.
    all_tags list(string)
    All tags of the subnet.
    allocation_pools list(object)
    Allocation pools of the subnet.
    blocked bool
    Specifies if the subnet is administratively blocked.
    cidr string
    CIDR of the subnet, for example 192.168.1.0/24.
    description string
    Description of the subnet.
    dns_nameservers list(string)
    DNS nameservers of the subnet.
    enable_dhcp bool
    Specifies if DHCP is enabled for the subnet.
    gateway_ip string
    Gateway of the subnet, for example 192.168.1.1.
    host_routes list(object)
    Host routes of the subnet.
    id string
    Unique identifier of the subnet.
    ip_version number
    Internet protocol version. Available versions are 4 or 6.
    ipv6_address_mode string
    IPv6 address assignment mode. Available modes are slaac, dhcpv6-stateful, or dhcpv6-stateless.
    ipv6_ra_mode string
    IPv6 router advertisement mode. Available modes are slaac, dhcpv6-stateful, or dhcpv6-stateless.
    name string
    Name of the subnet.
    network_id string
    Unique identifier of the parent network. To get the network ID, in the Control panel, go to Products ⟶ Cloud Servers ⟶ Network ⟶ the Private networks tab ⟶ the network page ⟶ copy the ID under the network name.
    project_id string
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects.
    region string
    Pool where the subnet is located, for example, ru-6. Learn more about available pools in Product availability by location.
    service_types list(string)
    Service types of the subnet.
    subnet_id string
    Unique identifier of the subnet. To get the subnet ID, in the Control panel, go to Products ⟶ Cloud Servers ⟶ Network ⟶ the Private networks tab ⟶ the network page ⟶ the Subnets tab ⟶ copy the ID of the required subnet.
    tags list(string)
    Tags of the subnet.
    allTags List<String>
    All tags of the subnet.
    allocationPools List<GetVpcNetworkSubnetV2AllocationPool>
    Allocation pools of the subnet.
    blocked Boolean
    Specifies if the subnet is administratively blocked.
    cidr String
    CIDR of the subnet, for example 192.168.1.0/24.
    description String
    Description of the subnet.
    dnsNameservers List<String>
    DNS nameservers of the subnet.
    enableDhcp Boolean
    Specifies if DHCP is enabled for the subnet.
    gatewayIp String
    Gateway of the subnet, for example 192.168.1.1.
    hostRoutes List<GetVpcNetworkSubnetV2HostRoute>
    Host routes of the subnet.
    id String
    Unique identifier of the subnet.
    ipVersion Double
    Internet protocol version. Available versions are 4 or 6.
    ipv6AddressMode String
    IPv6 address assignment mode. Available modes are slaac, dhcpv6-stateful, or dhcpv6-stateless.
    ipv6RaMode String
    IPv6 router advertisement mode. Available modes are slaac, dhcpv6-stateful, or dhcpv6-stateless.
    name String
    Name of the subnet.
    networkId String
    Unique identifier of the parent network. To get the network ID, in the Control panel, go to Products ⟶ Cloud Servers ⟶ Network ⟶ the Private networks tab ⟶ the network page ⟶ copy the ID under the network name.
    projectId String
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects.
    region String
    Pool where the subnet is located, for example, ru-6. Learn more about available pools in Product availability by location.
    serviceTypes List<String>
    Service types of the subnet.
    subnetId String
    Unique identifier of the subnet. To get the subnet ID, in the Control panel, go to Products ⟶ Cloud Servers ⟶ Network ⟶ the Private networks tab ⟶ the network page ⟶ the Subnets tab ⟶ copy the ID of the required subnet.
    tags List<String>
    Tags of the subnet.
    allTags string[]
    All tags of the subnet.
    allocationPools GetVpcNetworkSubnetV2AllocationPool[]
    Allocation pools of the subnet.
    blocked boolean
    Specifies if the subnet is administratively blocked.
    cidr string
    CIDR of the subnet, for example 192.168.1.0/24.
    description string
    Description of the subnet.
    dnsNameservers string[]
    DNS nameservers of the subnet.
    enableDhcp boolean
    Specifies if DHCP is enabled for the subnet.
    gatewayIp string
    Gateway of the subnet, for example 192.168.1.1.
    hostRoutes GetVpcNetworkSubnetV2HostRoute[]
    Host routes of the subnet.
    id string
    Unique identifier of the subnet.
    ipVersion number
    Internet protocol version. Available versions are 4 or 6.
    ipv6AddressMode string
    IPv6 address assignment mode. Available modes are slaac, dhcpv6-stateful, or dhcpv6-stateless.
    ipv6RaMode string
    IPv6 router advertisement mode. Available modes are slaac, dhcpv6-stateful, or dhcpv6-stateless.
    name string
    Name of the subnet.
    networkId string
    Unique identifier of the parent network. To get the network ID, in the Control panel, go to Products ⟶ Cloud Servers ⟶ Network ⟶ the Private networks tab ⟶ the network page ⟶ copy the ID under the network name.
    projectId string
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects.
    region string
    Pool where the subnet is located, for example, ru-6. Learn more about available pools in Product availability by location.
    serviceTypes string[]
    Service types of the subnet.
    subnetId string
    Unique identifier of the subnet. To get the subnet ID, in the Control panel, go to Products ⟶ Cloud Servers ⟶ Network ⟶ the Private networks tab ⟶ the network page ⟶ the Subnets tab ⟶ copy the ID of the required subnet.
    tags string[]
    Tags of the subnet.
    all_tags Sequence[str]
    All tags of the subnet.
    allocation_pools Sequence[GetVpcNetworkSubnetV2AllocationPool]
    Allocation pools of the subnet.
    blocked bool
    Specifies if the subnet is administratively blocked.
    cidr str
    CIDR of the subnet, for example 192.168.1.0/24.
    description str
    Description of the subnet.
    dns_nameservers Sequence[str]
    DNS nameservers of the subnet.
    enable_dhcp bool
    Specifies if DHCP is enabled for the subnet.
    gateway_ip str
    Gateway of the subnet, for example 192.168.1.1.
    host_routes Sequence[GetVpcNetworkSubnetV2HostRoute]
    Host routes of the subnet.
    id str
    Unique identifier of the subnet.
    ip_version float
    Internet protocol version. Available versions are 4 or 6.
    ipv6_address_mode str
    IPv6 address assignment mode. Available modes are slaac, dhcpv6-stateful, or dhcpv6-stateless.
    ipv6_ra_mode str
    IPv6 router advertisement mode. Available modes are slaac, dhcpv6-stateful, or dhcpv6-stateless.
    name str
    Name of the subnet.
    network_id str
    Unique identifier of the parent network. To get the network ID, in the Control panel, go to Products ⟶ Cloud Servers ⟶ Network ⟶ the Private networks tab ⟶ the network page ⟶ copy the ID under the network name.
    project_id str
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects.
    region str
    Pool where the subnet is located, for example, ru-6. Learn more about available pools in Product availability by location.
    service_types Sequence[str]
    Service types of the subnet.
    subnet_id str
    Unique identifier of the subnet. To get the subnet ID, in the Control panel, go to Products ⟶ Cloud Servers ⟶ Network ⟶ the Private networks tab ⟶ the network page ⟶ the Subnets tab ⟶ copy the ID of the required subnet.
    tags Sequence[str]
    Tags of the subnet.
    allTags List<String>
    All tags of the subnet.
    allocationPools List<Property Map>
    Allocation pools of the subnet.
    blocked Boolean
    Specifies if the subnet is administratively blocked.
    cidr String
    CIDR of the subnet, for example 192.168.1.0/24.
    description String
    Description of the subnet.
    dnsNameservers List<String>
    DNS nameservers of the subnet.
    enableDhcp Boolean
    Specifies if DHCP is enabled for the subnet.
    gatewayIp String
    Gateway of the subnet, for example 192.168.1.1.
    hostRoutes List<Property Map>
    Host routes of the subnet.
    id String
    Unique identifier of the subnet.
    ipVersion Number
    Internet protocol version. Available versions are 4 or 6.
    ipv6AddressMode String
    IPv6 address assignment mode. Available modes are slaac, dhcpv6-stateful, or dhcpv6-stateless.
    ipv6RaMode String
    IPv6 router advertisement mode. Available modes are slaac, dhcpv6-stateful, or dhcpv6-stateless.
    name String
    Name of the subnet.
    networkId String
    Unique identifier of the parent network. To get the network ID, in the Control panel, go to Products ⟶ Cloud Servers ⟶ Network ⟶ the Private networks tab ⟶ the network page ⟶ copy the ID under the network name.
    projectId String
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects.
    region String
    Pool where the subnet is located, for example, ru-6. Learn more about available pools in Product availability by location.
    serviceTypes List<String>
    Service types of the subnet.
    subnetId String
    Unique identifier of the subnet. To get the subnet ID, in the Control panel, go to Products ⟶ Cloud Servers ⟶ Network ⟶ the Private networks tab ⟶ the network page ⟶ the Subnets tab ⟶ copy the ID of the required subnet.
    tags List<String>
    Tags of the subnet.

    Supporting Types

    GetVpcNetworkSubnetV2AllocationPool

    End string
    Start string
    End string
    Start string
    end string
    start string
    end String
    start String
    end string
    start string
    end str
    start str
    end String
    start String

    GetVpcNetworkSubnetV2HostRoute

    Package Details

    Repository
    selectel selectel/terraform-provider-selectel
    License
    Notes
    This Pulumi package is based on the selectel Terraform Provider.
    selectel
    Viewing docs for selectel 9.5.0
    published on Friday, Oct 30, 2026 by selectel

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial