1. Registry
  2. Packages
  3. Selectel Provider
  4. API Docs
  5. VpcSubnetV2
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

    !> Deprecated since 9.1.0 This resource is no longer maintained and will be removed in a future major release. To continue receiving updates, please migrate to selectel_vpc_public_subnet_v2. To migrate an existing resource, follow the upgrade guide.

    Creates and manages a public subnet using the v2 public API. For more information about public subnets, see the official Selectel documentation.

    For project networks and their subnets, use selectel_vpc_network_v2 and selectel_vpc_network_subnet_v2.

    Creates a public subnet in a service network. You cannot select a network during subnet creation or modify service network settings.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as selectel from "@pulumi/selectel";
    
    const subnet1 = new selectel.VpcSubnetV2("subnet_1", {
        projectId: project1.id,
        region: "ru-6",
    });
    
    import pulumi
    import pulumi_selectel as selectel
    
    subnet1 = selectel.VpcSubnetV2("subnet_1",
        project_id=project1["id"],
        region="ru-6")
    
    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.NewVpcSubnetV2(ctx, "subnet_1", &selectel.VpcSubnetV2Args{
    			ProjectId: pulumi.Any(project1.Id),
    			Region:    pulumi.String("ru-6"),
    		})
    		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 = new Selectel.VpcSubnetV2("subnet_1", new()
        {
            ProjectId = project1.Id,
            Region = "ru-6",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.selectel.VpcSubnetV2;
    import com.pulumi.selectel.VpcSubnetV2Args;
    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 subnet1 = new VpcSubnetV2("subnet1", VpcSubnetV2Args.builder()
                .projectId(project1.id())
                .region("ru-6")
                .build());
    
        }
    }
    
    resources:
      subnet1:
        type: selectel:VpcSubnetV2
        name: subnet_1
        properties:
          projectId: ${project1.id}
          region: ru-6
    
    Example coming soon!
    

    Create VpcSubnetV2 Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new VpcSubnetV2(name: string, args: VpcSubnetV2Args, opts?: CustomResourceOptions);
    @overload
    def VpcSubnetV2(resource_name: str,
                    args: VpcSubnetV2Args,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def VpcSubnetV2(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    project_id: Optional[str] = None,
                    region: Optional[str] = None,
                    ip_version: Optional[str] = None,
                    prefix_length: Optional[float] = None)
    func NewVpcSubnetV2(ctx *Context, name string, args VpcSubnetV2Args, opts ...ResourceOption) (*VpcSubnetV2, error)
    public VpcSubnetV2(string name, VpcSubnetV2Args args, CustomResourceOptions? opts = null)
    public VpcSubnetV2(String name, VpcSubnetV2Args args)
    public VpcSubnetV2(String name, VpcSubnetV2Args args, CustomResourceOptions options)
    
    type: selectel:VpcSubnetV2
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "selectel_vpc_subnet_v2" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args VpcSubnetV2Args
    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 VpcSubnetV2Args
    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 VpcSubnetV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VpcSubnetV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VpcSubnetV2Args
    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 vpcSubnetV2Resource = new Selectel.VpcSubnetV2("vpcSubnetV2Resource", new()
    {
        ProjectId = "string",
        Region = "string",
        IpVersion = "string",
        PrefixLength = 0.0,
    });
    
    example, err := selectel.NewVpcSubnetV2(ctx, "vpcSubnetV2Resource", &selectel.VpcSubnetV2Args{
    	ProjectId:    pulumi.String("string"),
    	Region:       pulumi.String("string"),
    	IpVersion:    pulumi.String("string"),
    	PrefixLength: pulumi.Float64(0),
    })
    
    resource "selectel_vpc_subnet_v2" "vpcSubnetV2Resource" {
      lifecycle {
        create_before_destroy = true
      }
      project_id    = "string"
      region        = "string"
      ip_version    = "string"
      prefix_length = 0
    }
    
    var vpcSubnetV2Resource = new VpcSubnetV2("vpcSubnetV2Resource", VpcSubnetV2Args.builder()
        .projectId("string")
        .region("string")
        .ipVersion("string")
        .prefixLength(0.0)
        .build());
    
    vpc_subnet_v2_resource = selectel.VpcSubnetV2("vpcSubnetV2Resource",
        project_id="string",
        region="string",
        ip_version="string",
        prefix_length=float(0))
    
    const vpcSubnetV2Resource = new selectel.VpcSubnetV2("vpcSubnetV2Resource", {
        projectId: "string",
        region: "string",
        ipVersion: "string",
        prefixLength: 0,
    });
    
    type: selectel:VpcSubnetV2
    properties:
        ipVersion: string
        prefixLength: 0
        projectId: string
        region: string
    

    VpcSubnetV2 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 VpcSubnetV2 resource accepts the following input properties:

    ProjectId string
    Unique identifier of the associated project. Changing this creates a new public subnet. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    Region string
    Pool where the public subnet is located, for example, ru-6. Changing this creates a new public subnet. Learn more about available pools in the Availability matrix.
    IpVersion string
    Internet protocol version supported in the public subnet. Changing this creates a new public subnet. The only available value is ipv4, which is also the default value.
    PrefixLength double
    Prefix length of the public subnet. Available values are from 24 to 29. The default value is 29. Changing this creates a new public subnet.
    ProjectId string
    Unique identifier of the associated project. Changing this creates a new public subnet. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    Region string
    Pool where the public subnet is located, for example, ru-6. Changing this creates a new public subnet. Learn more about available pools in the Availability matrix.
    IpVersion string
    Internet protocol version supported in the public subnet. Changing this creates a new public subnet. The only available value is ipv4, which is also the default value.
    PrefixLength float64
    Prefix length of the public subnet. Available values are from 24 to 29. The default value is 29. Changing this creates a new public subnet.
    project_id string
    Unique identifier of the associated project. Changing this creates a new public subnet. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region string
    Pool where the public subnet is located, for example, ru-6. Changing this creates a new public subnet. Learn more about available pools in the Availability matrix.
    ip_version string
    Internet protocol version supported in the public subnet. Changing this creates a new public subnet. The only available value is ipv4, which is also the default value.
    prefix_length number
    Prefix length of the public subnet. Available values are from 24 to 29. The default value is 29. Changing this creates a new public subnet.
    projectId String
    Unique identifier of the associated project. Changing this creates a new public subnet. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region String
    Pool where the public subnet is located, for example, ru-6. Changing this creates a new public subnet. Learn more about available pools in the Availability matrix.
    ipVersion String
    Internet protocol version supported in the public subnet. Changing this creates a new public subnet. The only available value is ipv4, which is also the default value.
    prefixLength Double
    Prefix length of the public subnet. Available values are from 24 to 29. The default value is 29. Changing this creates a new public subnet.
    projectId string
    Unique identifier of the associated project. Changing this creates a new public subnet. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region string
    Pool where the public subnet is located, for example, ru-6. Changing this creates a new public subnet. Learn more about available pools in the Availability matrix.
    ipVersion string
    Internet protocol version supported in the public subnet. Changing this creates a new public subnet. The only available value is ipv4, which is also the default value.
    prefixLength number
    Prefix length of the public subnet. Available values are from 24 to 29. The default value is 29. Changing this creates a new public subnet.
    project_id str
    Unique identifier of the associated project. Changing this creates a new public subnet. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region str
    Pool where the public subnet is located, for example, ru-6. Changing this creates a new public subnet. Learn more about available pools in the Availability matrix.
    ip_version str
    Internet protocol version supported in the public subnet. Changing this creates a new public subnet. The only available value is ipv4, which is also the default value.
    prefix_length float
    Prefix length of the public subnet. Available values are from 24 to 29. The default value is 29. Changing this creates a new public subnet.
    projectId String
    Unique identifier of the associated project. Changing this creates a new public subnet. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region String
    Pool where the public subnet is located, for example, ru-6. Changing this creates a new public subnet. Learn more about available pools in the Availability matrix.
    ipVersion String
    Internet protocol version supported in the public subnet. Changing this creates a new public subnet. The only available value is ipv4, which is also the default value.
    prefixLength Number
    Prefix length of the public subnet. Available values are from 24 to 29. The default value is 29. Changing this creates a new public subnet.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VpcSubnetV2 resource produces the following output properties:

    Cidr string
    CIDR of the public subnet.
    Id string
    The provider-assigned unique ID for this managed resource.
    NetworkId string
    Unique identifier of the parent service network — an identifier of the same type as in the selectel.VpcNetworkV2 resource.
    Servers List<VpcSubnetV2Server>
    List of cloud servers that are located in the public subnet.
    Status string
    Status of the cloud server.
    SubnetId string
    Unique identifier of the associated subnet in the parent service network — an identifier of the same type as in the selectel.VpcNetworkSubnetV2 resource. Do not use it to import the public subnet — the import uses a different identifier, see Import.
    Cidr string
    CIDR of the public subnet.
    Id string
    The provider-assigned unique ID for this managed resource.
    NetworkId string
    Unique identifier of the parent service network — an identifier of the same type as in the selectel.VpcNetworkV2 resource.
    Servers []VpcSubnetV2Server
    List of cloud servers that are located in the public subnet.
    Status string
    Status of the cloud server.
    SubnetId string
    Unique identifier of the associated subnet in the parent service network — an identifier of the same type as in the selectel.VpcNetworkSubnetV2 resource. Do not use it to import the public subnet — the import uses a different identifier, see Import.
    cidr string
    CIDR of the public subnet.
    id string
    The provider-assigned unique ID for this managed resource.
    network_id string
    Unique identifier of the parent service network — an identifier of the same type as in the selectel.VpcNetworkV2 resource.
    servers list(object)
    List of cloud servers that are located in the public subnet.
    status string
    Status of the cloud server.
    subnet_id string
    Unique identifier of the associated subnet in the parent service network — an identifier of the same type as in the selectel.VpcNetworkSubnetV2 resource. Do not use it to import the public subnet — the import uses a different identifier, see Import.
    cidr String
    CIDR of the public subnet.
    id String
    The provider-assigned unique ID for this managed resource.
    networkId String
    Unique identifier of the parent service network — an identifier of the same type as in the selectel.VpcNetworkV2 resource.
    servers List<VpcSubnetV2Server>
    List of cloud servers that are located in the public subnet.
    status String
    Status of the cloud server.
    subnetId String
    Unique identifier of the associated subnet in the parent service network — an identifier of the same type as in the selectel.VpcNetworkSubnetV2 resource. Do not use it to import the public subnet — the import uses a different identifier, see Import.
    cidr string
    CIDR of the public subnet.
    id string
    The provider-assigned unique ID for this managed resource.
    networkId string
    Unique identifier of the parent service network — an identifier of the same type as in the selectel.VpcNetworkV2 resource.
    servers VpcSubnetV2Server[]
    List of cloud servers that are located in the public subnet.
    status string
    Status of the cloud server.
    subnetId string
    Unique identifier of the associated subnet in the parent service network — an identifier of the same type as in the selectel.VpcNetworkSubnetV2 resource. Do not use it to import the public subnet — the import uses a different identifier, see Import.
    cidr str
    CIDR of the public subnet.
    id str
    The provider-assigned unique ID for this managed resource.
    network_id str
    Unique identifier of the parent service network — an identifier of the same type as in the selectel.VpcNetworkV2 resource.
    servers Sequence[VpcSubnetV2Server]
    List of cloud servers that are located in the public subnet.
    status str
    Status of the cloud server.
    subnet_id str
    Unique identifier of the associated subnet in the parent service network — an identifier of the same type as in the selectel.VpcNetworkSubnetV2 resource. Do not use it to import the public subnet — the import uses a different identifier, see Import.
    cidr String
    CIDR of the public subnet.
    id String
    The provider-assigned unique ID for this managed resource.
    networkId String
    Unique identifier of the parent service network — an identifier of the same type as in the selectel.VpcNetworkV2 resource.
    servers List<Property Map>
    List of cloud servers that are located in the public subnet.
    status String
    Status of the cloud server.
    subnetId String
    Unique identifier of the associated subnet in the parent service network — an identifier of the same type as in the selectel.VpcNetworkSubnetV2 resource. Do not use it to import the public subnet — the import uses a different identifier, see Import.

    Look up Existing VpcSubnetV2 Resource

    Get an existing VpcSubnetV2 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?: VpcSubnetV2State, opts?: CustomResourceOptions): VpcSubnetV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cidr: Optional[str] = None,
            ip_version: Optional[str] = None,
            network_id: Optional[str] = None,
            prefix_length: Optional[float] = None,
            project_id: Optional[str] = None,
            region: Optional[str] = None,
            servers: Optional[Sequence[VpcSubnetV2ServerArgs]] = None,
            status: Optional[str] = None,
            subnet_id: Optional[str] = None) -> VpcSubnetV2
    func GetVpcSubnetV2(ctx *Context, name string, id IDInput, state *VpcSubnetV2State, opts ...ResourceOption) (*VpcSubnetV2, error)
    public static VpcSubnetV2 Get(string name, Input<string> id, VpcSubnetV2State? state, CustomResourceOptions? opts = null)
    public static VpcSubnetV2 get(String name, Output<String> id, VpcSubnetV2State state, CustomResourceOptions options)
    resources:  _:    type: selectel:VpcSubnetV2    get:      id: ${id}
    import {
      to = selectel_vpc_subnet_v2.example
      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.
    The following state arguments are supported:
    Cidr string
    CIDR of the public subnet.
    IpVersion string
    Internet protocol version supported in the public subnet. Changing this creates a new public subnet. The only available value is ipv4, which is also the default value.
    NetworkId string
    Unique identifier of the parent service network — an identifier of the same type as in the selectel.VpcNetworkV2 resource.
    PrefixLength double
    Prefix length of the public subnet. Available values are from 24 to 29. The default value is 29. Changing this creates a new public subnet.
    ProjectId string
    Unique identifier of the associated project. Changing this creates a new public subnet. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    Region string
    Pool where the public subnet is located, for example, ru-6. Changing this creates a new public subnet. Learn more about available pools in the Availability matrix.
    Servers List<VpcSubnetV2Server>
    List of cloud servers that are located in the public subnet.
    Status string
    Status of the cloud server.
    SubnetId string
    Unique identifier of the associated subnet in the parent service network — an identifier of the same type as in the selectel.VpcNetworkSubnetV2 resource. Do not use it to import the public subnet — the import uses a different identifier, see Import.
    Cidr string
    CIDR of the public subnet.
    IpVersion string
    Internet protocol version supported in the public subnet. Changing this creates a new public subnet. The only available value is ipv4, which is also the default value.
    NetworkId string
    Unique identifier of the parent service network — an identifier of the same type as in the selectel.VpcNetworkV2 resource.
    PrefixLength float64
    Prefix length of the public subnet. Available values are from 24 to 29. The default value is 29. Changing this creates a new public subnet.
    ProjectId string
    Unique identifier of the associated project. Changing this creates a new public subnet. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    Region string
    Pool where the public subnet is located, for example, ru-6. Changing this creates a new public subnet. Learn more about available pools in the Availability matrix.
    Servers []VpcSubnetV2ServerArgs
    List of cloud servers that are located in the public subnet.
    Status string
    Status of the cloud server.
    SubnetId string
    Unique identifier of the associated subnet in the parent service network — an identifier of the same type as in the selectel.VpcNetworkSubnetV2 resource. Do not use it to import the public subnet — the import uses a different identifier, see Import.
    cidr string
    CIDR of the public subnet.
    ip_version string
    Internet protocol version supported in the public subnet. Changing this creates a new public subnet. The only available value is ipv4, which is also the default value.
    network_id string
    Unique identifier of the parent service network — an identifier of the same type as in the selectel.VpcNetworkV2 resource.
    prefix_length number
    Prefix length of the public subnet. Available values are from 24 to 29. The default value is 29. Changing this creates a new public subnet.
    project_id string
    Unique identifier of the associated project. Changing this creates a new public subnet. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region string
    Pool where the public subnet is located, for example, ru-6. Changing this creates a new public subnet. Learn more about available pools in the Availability matrix.
    servers list(object)
    List of cloud servers that are located in the public subnet.
    status string
    Status of the cloud server.
    subnet_id string
    Unique identifier of the associated subnet in the parent service network — an identifier of the same type as in the selectel.VpcNetworkSubnetV2 resource. Do not use it to import the public subnet — the import uses a different identifier, see Import.
    cidr String
    CIDR of the public subnet.
    ipVersion String
    Internet protocol version supported in the public subnet. Changing this creates a new public subnet. The only available value is ipv4, which is also the default value.
    networkId String
    Unique identifier of the parent service network — an identifier of the same type as in the selectel.VpcNetworkV2 resource.
    prefixLength Double
    Prefix length of the public subnet. Available values are from 24 to 29. The default value is 29. Changing this creates a new public subnet.
    projectId String
    Unique identifier of the associated project. Changing this creates a new public subnet. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region String
    Pool where the public subnet is located, for example, ru-6. Changing this creates a new public subnet. Learn more about available pools in the Availability matrix.
    servers List<VpcSubnetV2Server>
    List of cloud servers that are located in the public subnet.
    status String
    Status of the cloud server.
    subnetId String
    Unique identifier of the associated subnet in the parent service network — an identifier of the same type as in the selectel.VpcNetworkSubnetV2 resource. Do not use it to import the public subnet — the import uses a different identifier, see Import.
    cidr string
    CIDR of the public subnet.
    ipVersion string
    Internet protocol version supported in the public subnet. Changing this creates a new public subnet. The only available value is ipv4, which is also the default value.
    networkId string
    Unique identifier of the parent service network — an identifier of the same type as in the selectel.VpcNetworkV2 resource.
    prefixLength number
    Prefix length of the public subnet. Available values are from 24 to 29. The default value is 29. Changing this creates a new public subnet.
    projectId string
    Unique identifier of the associated project. Changing this creates a new public subnet. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region string
    Pool where the public subnet is located, for example, ru-6. Changing this creates a new public subnet. Learn more about available pools in the Availability matrix.
    servers VpcSubnetV2Server[]
    List of cloud servers that are located in the public subnet.
    status string
    Status of the cloud server.
    subnetId string
    Unique identifier of the associated subnet in the parent service network — an identifier of the same type as in the selectel.VpcNetworkSubnetV2 resource. Do not use it to import the public subnet — the import uses a different identifier, see Import.
    cidr str
    CIDR of the public subnet.
    ip_version str
    Internet protocol version supported in the public subnet. Changing this creates a new public subnet. The only available value is ipv4, which is also the default value.
    network_id str
    Unique identifier of the parent service network — an identifier of the same type as in the selectel.VpcNetworkV2 resource.
    prefix_length float
    Prefix length of the public subnet. Available values are from 24 to 29. The default value is 29. Changing this creates a new public subnet.
    project_id str
    Unique identifier of the associated project. Changing this creates a new public subnet. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region str
    Pool where the public subnet is located, for example, ru-6. Changing this creates a new public subnet. Learn more about available pools in the Availability matrix.
    servers Sequence[VpcSubnetV2ServerArgs]
    List of cloud servers that are located in the public subnet.
    status str
    Status of the cloud server.
    subnet_id str
    Unique identifier of the associated subnet in the parent service network — an identifier of the same type as in the selectel.VpcNetworkSubnetV2 resource. Do not use it to import the public subnet — the import uses a different identifier, see Import.
    cidr String
    CIDR of the public subnet.
    ipVersion String
    Internet protocol version supported in the public subnet. Changing this creates a new public subnet. The only available value is ipv4, which is also the default value.
    networkId String
    Unique identifier of the parent service network — an identifier of the same type as in the selectel.VpcNetworkV2 resource.
    prefixLength Number
    Prefix length of the public subnet. Available values are from 24 to 29. The default value is 29. Changing this creates a new public subnet.
    projectId String
    Unique identifier of the associated project. Changing this creates a new public subnet. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region String
    Pool where the public subnet is located, for example, ru-6. Changing this creates a new public subnet. Learn more about available pools in the Availability matrix.
    servers List<Property Map>
    List of cloud servers that are located in the public subnet.
    status String
    Status of the cloud server.
    subnetId String
    Unique identifier of the associated subnet in the parent service network — an identifier of the same type as in the selectel.VpcNetworkSubnetV2 resource. Do not use it to import the public subnet — the import uses a different identifier, see Import.

    Supporting Types

    VpcSubnetV2Server, VpcSubnetV2ServerArgs

    Id string
    Unique identifier of the cloud server.
    Name string
    Name of the cloud server.
    Status string
    Status of the cloud server.
    Id string
    Unique identifier of the cloud server.
    Name string
    Name of the cloud server.
    Status string
    Status of the cloud server.
    id string
    Unique identifier of the cloud server.
    name string
    Name of the cloud server.
    status string
    Status of the cloud server.
    id String
    Unique identifier of the cloud server.
    name String
    Name of the cloud server.
    status String
    Status of the cloud server.
    id string
    Unique identifier of the cloud server.
    name string
    Name of the cloud server.
    status string
    Status of the cloud server.
    id str
    Unique identifier of the cloud server.
    name str
    Name of the cloud server.
    status str
    Status of the cloud server.
    id String
    Unique identifier of the cloud server.
    name String
    Name of the cloud server.
    status String
    Status of the cloud server.

    Import

    You can import a public subnet:

    export OS_DOMAIN_NAME=<account_id>

    export OS_USERNAME=

    export OS_PASSWORD=

    export INFRA_PROJECT_ID=<project_id>

    $ pulumi import selectel:index/vpcSubnetV2:VpcSubnetV2 subnet_1 <public_subnet_id>
    

    where:

    • <account_id> — Selectel account ID. The account ID is in the top right corner of the Control panel. Learn more about Registration.

    • <username> — Name of the service user. To get the name, in the Control panel, go to Identity & Access Management ⟶ User management ⟶ the Service users tab ⟶ copy the name of the required user. Learn more about Service users.

    • <password> — Password of the service user.

    • <project_id> — Unique identifier of the associated project. To get the project ID, in the Control panel, go to Cloud Platform ⟶ project name ⟶ copy the ID of the required project. Learn more about Projects.

    • <public_subnet_id> — Unique identifier of the public subnet — the id field in the response of the Get list of subnets method in Cloud Platform Projects and Resources API. Do not use the value of the subnet_id attribute — it identifies the associated subnet in the parent service network, not the public subnet.

    To learn more about importing existing cloud resources, see Importing resources.

    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