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

    Creates and manages a cloud router using the v2 public API. For more information about cloud routers, 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

    Router with default settings

    import * as pulumi from "@pulumi/pulumi";
    import * as selectel from "@pulumi/selectel";
    
    const router1 = new selectel.VpcRouterV2("router_1", {
        projectId: project1.id,
        region: "ru-6",
    });
    
    import pulumi
    import pulumi_selectel as selectel
    
    router1 = selectel.VpcRouterV2("router_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.NewVpcRouterV2(ctx, "router_1", &selectel.VpcRouterV2Args{
    			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 router1 = new Selectel.VpcRouterV2("router_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.VpcRouterV2;
    import com.pulumi.selectel.VpcRouterV2Args;
    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 router1 = new VpcRouterV2("router1", VpcRouterV2Args.builder()
                .projectId(project1.id())
                .region("ru-6")
                .build());
    
        }
    }
    
    resources:
      router1:
        type: selectel:VpcRouterV2
        name: router_1
        properties:
          projectId: ${project1.id}
          region: ru-6
    
    Example coming soon!
    

    Router with high availability

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

    Create VpcRouterV2 Resource

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

    Constructor syntax

    new VpcRouterV2(name: string, args: VpcRouterV2Args, opts?: CustomResourceOptions);
    @overload
    def VpcRouterV2(resource_name: str,
                    args: VpcRouterV2Args,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def VpcRouterV2(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    project_id: Optional[str] = None,
                    region: Optional[str] = None,
                    admin_state_up: Optional[bool] = None,
                    availability_zone_hints: Optional[Sequence[str]] = None,
                    description: Optional[str] = None,
                    enable_snat: Optional[bool] = None,
                    external_network_id: Optional[str] = None,
                    ha: Optional[bool] = None,
                    name: Optional[str] = None,
                    tags: Optional[Sequence[str]] = None,
                    timeouts: Optional[VpcRouterV2TimeoutsArgs] = None)
    func NewVpcRouterV2(ctx *Context, name string, args VpcRouterV2Args, opts ...ResourceOption) (*VpcRouterV2, error)
    public VpcRouterV2(string name, VpcRouterV2Args args, CustomResourceOptions? opts = null)
    public VpcRouterV2(String name, VpcRouterV2Args args)
    public VpcRouterV2(String name, VpcRouterV2Args args, CustomResourceOptions options)
    
    type: selectel:VpcRouterV2
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "selectel_vpc_router_v2" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args VpcRouterV2Args
    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 VpcRouterV2Args
    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 VpcRouterV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VpcRouterV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VpcRouterV2Args
    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 vpcRouterV2Resource = new Selectel.VpcRouterV2("vpcRouterV2Resource", new()
    {
        ProjectId = "string",
        Region = "string",
        AdminStateUp = false,
        AvailabilityZoneHints = new[]
        {
            "string",
        },
        Description = "string",
        EnableSnat = false,
        ExternalNetworkId = "string",
        Ha = false,
        Name = "string",
        Tags = new[]
        {
            "string",
        },
        Timeouts = new Selectel.Inputs.VpcRouterV2TimeoutsArgs
        {
            Delete = "string",
        },
    });
    
    example, err := selectel.NewVpcRouterV2(ctx, "vpcRouterV2Resource", &selectel.VpcRouterV2Args{
    	ProjectId:    pulumi.String("string"),
    	Region:       pulumi.String("string"),
    	AdminStateUp: pulumi.Bool(false),
    	AvailabilityZoneHints: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Description:       pulumi.String("string"),
    	EnableSnat:        pulumi.Bool(false),
    	ExternalNetworkId: pulumi.String("string"),
    	Ha:                pulumi.Bool(false),
    	Name:              pulumi.String("string"),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Timeouts: &selectel.VpcRouterV2TimeoutsArgs{
    		Delete: pulumi.String("string"),
    	},
    })
    
    resource "selectel_vpc_router_v2" "vpcRouterV2Resource" {
      lifecycle {
        create_before_destroy = true
      }
      project_id              = "string"
      region                  = "string"
      admin_state_up          = false
      availability_zone_hints = ["string"]
      description             = "string"
      enable_snat             = false
      external_network_id     = "string"
      ha                      = false
      name                    = "string"
      tags                    = ["string"]
      timeouts = {
        delete = "string"
      }
    }
    
    var vpcRouterV2Resource = new VpcRouterV2("vpcRouterV2Resource", VpcRouterV2Args.builder()
        .projectId("string")
        .region("string")
        .adminStateUp(false)
        .availabilityZoneHints("string")
        .description("string")
        .enableSnat(false)
        .externalNetworkId("string")
        .ha(false)
        .name("string")
        .tags("string")
        .timeouts(VpcRouterV2TimeoutsArgs.builder()
            .delete("string")
            .build())
        .build());
    
    vpc_router_v2_resource = selectel.VpcRouterV2("vpcRouterV2Resource",
        project_id="string",
        region="string",
        admin_state_up=False,
        availability_zone_hints=["string"],
        description="string",
        enable_snat=False,
        external_network_id="string",
        ha=False,
        name="string",
        tags=["string"],
        timeouts={
            "delete": "string",
        })
    
    const vpcRouterV2Resource = new selectel.VpcRouterV2("vpcRouterV2Resource", {
        projectId: "string",
        region: "string",
        adminStateUp: false,
        availabilityZoneHints: ["string"],
        description: "string",
        enableSnat: false,
        externalNetworkId: "string",
        ha: false,
        name: "string",
        tags: ["string"],
        timeouts: {
            "delete": "string",
        },
    });
    
    type: selectel:VpcRouterV2
    properties:
        adminStateUp: false
        availabilityZoneHints:
            - string
        description: string
        enableSnat: false
        externalNetworkId: string
        ha: false
        name: string
        projectId: string
        region: string
        tags:
            - string
        timeouts:
            delete: string
    

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

    ProjectId string
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new router.
    Region string
    Pool where the router is located, for example, ru-6. Learn more about available pools in Product availability by location. Changing this creates a new router.
    AdminStateUp bool
    Specifies if the router is administratively up. The default value is true.
    AvailabilityZoneHints List<string>
    Pool segments requested for allocating the router. Learn more about available pools in Product availability by location. Changing this creates a new router.
    Description string
    Description of the router.
    EnableSnat bool
    Specifies if source NAT is enabled on the gateway. Requires external_network_id.
    ExternalNetworkId string
    Unique identifier of the external network the gateway is attached to. Retrieved from the selectelvpcnetwork_v2 data source with external = true filter.
    Ha bool
    Specifies if the router runs in high availability mode. Changing it on an existing router disables the router for the time of the change, so traffic through it is interrupted. If not specified, high availability is disabled.
    Name string
    Name of the router.
    Tags List<string>
    Tags of the router.
    Timeouts VpcRouterV2Timeouts
    ProjectId string
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new router.
    Region string
    Pool where the router is located, for example, ru-6. Learn more about available pools in Product availability by location. Changing this creates a new router.
    AdminStateUp bool
    Specifies if the router is administratively up. The default value is true.
    AvailabilityZoneHints []string
    Pool segments requested for allocating the router. Learn more about available pools in Product availability by location. Changing this creates a new router.
    Description string
    Description of the router.
    EnableSnat bool
    Specifies if source NAT is enabled on the gateway. Requires external_network_id.
    ExternalNetworkId string
    Unique identifier of the external network the gateway is attached to. Retrieved from the selectelvpcnetwork_v2 data source with external = true filter.
    Ha bool
    Specifies if the router runs in high availability mode. Changing it on an existing router disables the router for the time of the change, so traffic through it is interrupted. If not specified, high availability is disabled.
    Name string
    Name of the router.
    Tags []string
    Tags of the router.
    Timeouts VpcRouterV2TimeoutsArgs
    project_id string
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new router.
    region string
    Pool where the router is located, for example, ru-6. Learn more about available pools in Product availability by location. Changing this creates a new router.
    admin_state_up bool
    Specifies if the router is administratively up. The default value is true.
    availability_zone_hints list(string)
    Pool segments requested for allocating the router. Learn more about available pools in Product availability by location. Changing this creates a new router.
    description string
    Description of the router.
    enable_snat bool
    Specifies if source NAT is enabled on the gateway. Requires external_network_id.
    external_network_id string
    Unique identifier of the external network the gateway is attached to. Retrieved from the selectelvpcnetwork_v2 data source with external = true filter.
    ha bool
    Specifies if the router runs in high availability mode. Changing it on an existing router disables the router for the time of the change, so traffic through it is interrupted. If not specified, high availability is disabled.
    name string
    Name of the router.
    tags list(string)
    Tags of the router.
    timeouts object
    projectId String
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new router.
    region String
    Pool where the router is located, for example, ru-6. Learn more about available pools in Product availability by location. Changing this creates a new router.
    adminStateUp Boolean
    Specifies if the router is administratively up. The default value is true.
    availabilityZoneHints List<String>
    Pool segments requested for allocating the router. Learn more about available pools in Product availability by location. Changing this creates a new router.
    description String
    Description of the router.
    enableSnat Boolean
    Specifies if source NAT is enabled on the gateway. Requires external_network_id.
    externalNetworkId String
    Unique identifier of the external network the gateway is attached to. Retrieved from the selectelvpcnetwork_v2 data source with external = true filter.
    ha Boolean
    Specifies if the router runs in high availability mode. Changing it on an existing router disables the router for the time of the change, so traffic through it is interrupted. If not specified, high availability is disabled.
    name String
    Name of the router.
    tags List<String>
    Tags of the router.
    timeouts VpcRouterV2Timeouts
    projectId string
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new router.
    region string
    Pool where the router is located, for example, ru-6. Learn more about available pools in Product availability by location. Changing this creates a new router.
    adminStateUp boolean
    Specifies if the router is administratively up. The default value is true.
    availabilityZoneHints string[]
    Pool segments requested for allocating the router. Learn more about available pools in Product availability by location. Changing this creates a new router.
    description string
    Description of the router.
    enableSnat boolean
    Specifies if source NAT is enabled on the gateway. Requires external_network_id.
    externalNetworkId string
    Unique identifier of the external network the gateway is attached to. Retrieved from the selectelvpcnetwork_v2 data source with external = true filter.
    ha boolean
    Specifies if the router runs in high availability mode. Changing it on an existing router disables the router for the time of the change, so traffic through it is interrupted. If not specified, high availability is disabled.
    name string
    Name of the router.
    tags string[]
    Tags of the router.
    timeouts VpcRouterV2Timeouts
    project_id str
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new router.
    region str
    Pool where the router is located, for example, ru-6. Learn more about available pools in Product availability by location. Changing this creates a new router.
    admin_state_up bool
    Specifies if the router is administratively up. The default value is true.
    availability_zone_hints Sequence[str]
    Pool segments requested for allocating the router. Learn more about available pools in Product availability by location. Changing this creates a new router.
    description str
    Description of the router.
    enable_snat bool
    Specifies if source NAT is enabled on the gateway. Requires external_network_id.
    external_network_id str
    Unique identifier of the external network the gateway is attached to. Retrieved from the selectelvpcnetwork_v2 data source with external = true filter.
    ha bool
    Specifies if the router runs in high availability mode. Changing it on an existing router disables the router for the time of the change, so traffic through it is interrupted. If not specified, high availability is disabled.
    name str
    Name of the router.
    tags Sequence[str]
    Tags of the router.
    timeouts VpcRouterV2TimeoutsArgs
    projectId String
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new router.
    region String
    Pool where the router is located, for example, ru-6. Learn more about available pools in Product availability by location. Changing this creates a new router.
    adminStateUp Boolean
    Specifies if the router is administratively up. The default value is true.
    availabilityZoneHints List<String>
    Pool segments requested for allocating the router. Learn more about available pools in Product availability by location. Changing this creates a new router.
    description String
    Description of the router.
    enableSnat Boolean
    Specifies if source NAT is enabled on the gateway. Requires external_network_id.
    externalNetworkId String
    Unique identifier of the external network the gateway is attached to. Retrieved from the selectelvpcnetwork_v2 data source with external = true filter.
    ha Boolean
    Specifies if the router runs in high availability mode. Changing it on an existing router disables the router for the time of the change, so traffic through it is interrupted. If not specified, high availability is disabled.
    name String
    Name of the router.
    tags List<String>
    Tags of the router.
    timeouts Property Map

    Outputs

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

    AllTags List<string>
    All tags of the router.
    AvailabilityZones List<string>
    Pool segments where the router is actually allocated.
    Blocked bool
    Specifies if the router is administratively blocked.
    ExternalFixedIps List<VpcRouterV2ExternalFixedIp>
    Gateway addresses of the router.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Status of the router.
    AllTags []string
    All tags of the router.
    AvailabilityZones []string
    Pool segments where the router is actually allocated.
    Blocked bool
    Specifies if the router is administratively blocked.
    ExternalFixedIps []VpcRouterV2ExternalFixedIp
    Gateway addresses of the router.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Status of the router.
    all_tags list(string)
    All tags of the router.
    availability_zones list(string)
    Pool segments where the router is actually allocated.
    blocked bool
    Specifies if the router is administratively blocked.
    external_fixed_ips list(object)
    Gateway addresses of the router.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Status of the router.
    allTags List<String>
    All tags of the router.
    availabilityZones List<String>
    Pool segments where the router is actually allocated.
    blocked Boolean
    Specifies if the router is administratively blocked.
    externalFixedIps List<VpcRouterV2ExternalFixedIp>
    Gateway addresses of the router.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Status of the router.
    allTags string[]
    All tags of the router.
    availabilityZones string[]
    Pool segments where the router is actually allocated.
    blocked boolean
    Specifies if the router is administratively blocked.
    externalFixedIps VpcRouterV2ExternalFixedIp[]
    Gateway addresses of the router.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Status of the router.
    all_tags Sequence[str]
    All tags of the router.
    availability_zones Sequence[str]
    Pool segments where the router is actually allocated.
    blocked bool
    Specifies if the router is administratively blocked.
    external_fixed_ips Sequence[VpcRouterV2ExternalFixedIp]
    Gateway addresses of the router.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    Status of the router.
    allTags List<String>
    All tags of the router.
    availabilityZones List<String>
    Pool segments where the router is actually allocated.
    blocked Boolean
    Specifies if the router is administratively blocked.
    externalFixedIps List<Property Map>
    Gateway addresses of the router.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Status of the router.

    Look up Existing VpcRouterV2 Resource

    Get an existing VpcRouterV2 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?: VpcRouterV2State, opts?: CustomResourceOptions): VpcRouterV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            admin_state_up: Optional[bool] = None,
            all_tags: Optional[Sequence[str]] = None,
            availability_zone_hints: Optional[Sequence[str]] = None,
            availability_zones: Optional[Sequence[str]] = None,
            blocked: Optional[bool] = None,
            description: Optional[str] = None,
            enable_snat: Optional[bool] = None,
            external_fixed_ips: Optional[Sequence[VpcRouterV2ExternalFixedIpArgs]] = None,
            external_network_id: Optional[str] = None,
            ha: Optional[bool] = None,
            name: Optional[str] = None,
            project_id: Optional[str] = None,
            region: Optional[str] = None,
            status: Optional[str] = None,
            tags: Optional[Sequence[str]] = None,
            timeouts: Optional[VpcRouterV2TimeoutsArgs] = None) -> VpcRouterV2
    func GetVpcRouterV2(ctx *Context, name string, id IDInput, state *VpcRouterV2State, opts ...ResourceOption) (*VpcRouterV2, error)
    public static VpcRouterV2 Get(string name, Input<string> id, VpcRouterV2State? state, CustomResourceOptions? opts = null)
    public static VpcRouterV2 get(String name, Output<String> id, VpcRouterV2State state, CustomResourceOptions options)
    resources:  _:    type: selectel:VpcRouterV2    get:      id: ${id}
    import {
      to = selectel_vpc_router_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:
    AdminStateUp bool
    Specifies if the router is administratively up. The default value is true.
    AllTags List<string>
    All tags of the router.
    AvailabilityZoneHints List<string>
    Pool segments requested for allocating the router. Learn more about available pools in Product availability by location. Changing this creates a new router.
    AvailabilityZones List<string>
    Pool segments where the router is actually allocated.
    Blocked bool
    Specifies if the router is administratively blocked.
    Description string
    Description of the router.
    EnableSnat bool
    Specifies if source NAT is enabled on the gateway. Requires external_network_id.
    ExternalFixedIps List<VpcRouterV2ExternalFixedIp>
    Gateway addresses of the router.
    ExternalNetworkId string
    Unique identifier of the external network the gateway is attached to. Retrieved from the selectelvpcnetwork_v2 data source with external = true filter.
    Ha bool
    Specifies if the router runs in high availability mode. Changing it on an existing router disables the router for the time of the change, so traffic through it is interrupted. If not specified, high availability is disabled.
    Name string
    Name of the router.
    ProjectId string
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new router.
    Region string
    Pool where the router is located, for example, ru-6. Learn more about available pools in Product availability by location. Changing this creates a new router.
    Status string
    Status of the router.
    Tags List<string>
    Tags of the router.
    Timeouts VpcRouterV2Timeouts
    AdminStateUp bool
    Specifies if the router is administratively up. The default value is true.
    AllTags []string
    All tags of the router.
    AvailabilityZoneHints []string
    Pool segments requested for allocating the router. Learn more about available pools in Product availability by location. Changing this creates a new router.
    AvailabilityZones []string
    Pool segments where the router is actually allocated.
    Blocked bool
    Specifies if the router is administratively blocked.
    Description string
    Description of the router.
    EnableSnat bool
    Specifies if source NAT is enabled on the gateway. Requires external_network_id.
    ExternalFixedIps []VpcRouterV2ExternalFixedIpArgs
    Gateway addresses of the router.
    ExternalNetworkId string
    Unique identifier of the external network the gateway is attached to. Retrieved from the selectelvpcnetwork_v2 data source with external = true filter.
    Ha bool
    Specifies if the router runs in high availability mode. Changing it on an existing router disables the router for the time of the change, so traffic through it is interrupted. If not specified, high availability is disabled.
    Name string
    Name of the router.
    ProjectId string
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new router.
    Region string
    Pool where the router is located, for example, ru-6. Learn more about available pools in Product availability by location. Changing this creates a new router.
    Status string
    Status of the router.
    Tags []string
    Tags of the router.
    Timeouts VpcRouterV2TimeoutsArgs
    admin_state_up bool
    Specifies if the router is administratively up. The default value is true.
    all_tags list(string)
    All tags of the router.
    availability_zone_hints list(string)
    Pool segments requested for allocating the router. Learn more about available pools in Product availability by location. Changing this creates a new router.
    availability_zones list(string)
    Pool segments where the router is actually allocated.
    blocked bool
    Specifies if the router is administratively blocked.
    description string
    Description of the router.
    enable_snat bool
    Specifies if source NAT is enabled on the gateway. Requires external_network_id.
    external_fixed_ips list(object)
    Gateway addresses of the router.
    external_network_id string
    Unique identifier of the external network the gateway is attached to. Retrieved from the selectelvpcnetwork_v2 data source with external = true filter.
    ha bool
    Specifies if the router runs in high availability mode. Changing it on an existing router disables the router for the time of the change, so traffic through it is interrupted. If not specified, high availability is disabled.
    name string
    Name of the router.
    project_id string
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new router.
    region string
    Pool where the router is located, for example, ru-6. Learn more about available pools in Product availability by location. Changing this creates a new router.
    status string
    Status of the router.
    tags list(string)
    Tags of the router.
    timeouts object
    adminStateUp Boolean
    Specifies if the router is administratively up. The default value is true.
    allTags List<String>
    All tags of the router.
    availabilityZoneHints List<String>
    Pool segments requested for allocating the router. Learn more about available pools in Product availability by location. Changing this creates a new router.
    availabilityZones List<String>
    Pool segments where the router is actually allocated.
    blocked Boolean
    Specifies if the router is administratively blocked.
    description String
    Description of the router.
    enableSnat Boolean
    Specifies if source NAT is enabled on the gateway. Requires external_network_id.
    externalFixedIps List<VpcRouterV2ExternalFixedIp>
    Gateway addresses of the router.
    externalNetworkId String
    Unique identifier of the external network the gateway is attached to. Retrieved from the selectelvpcnetwork_v2 data source with external = true filter.
    ha Boolean
    Specifies if the router runs in high availability mode. Changing it on an existing router disables the router for the time of the change, so traffic through it is interrupted. If not specified, high availability is disabled.
    name String
    Name of the router.
    projectId String
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new router.
    region String
    Pool where the router is located, for example, ru-6. Learn more about available pools in Product availability by location. Changing this creates a new router.
    status String
    Status of the router.
    tags List<String>
    Tags of the router.
    timeouts VpcRouterV2Timeouts
    adminStateUp boolean
    Specifies if the router is administratively up. The default value is true.
    allTags string[]
    All tags of the router.
    availabilityZoneHints string[]
    Pool segments requested for allocating the router. Learn more about available pools in Product availability by location. Changing this creates a new router.
    availabilityZones string[]
    Pool segments where the router is actually allocated.
    blocked boolean
    Specifies if the router is administratively blocked.
    description string
    Description of the router.
    enableSnat boolean
    Specifies if source NAT is enabled on the gateway. Requires external_network_id.
    externalFixedIps VpcRouterV2ExternalFixedIp[]
    Gateway addresses of the router.
    externalNetworkId string
    Unique identifier of the external network the gateway is attached to. Retrieved from the selectelvpcnetwork_v2 data source with external = true filter.
    ha boolean
    Specifies if the router runs in high availability mode. Changing it on an existing router disables the router for the time of the change, so traffic through it is interrupted. If not specified, high availability is disabled.
    name string
    Name of the router.
    projectId string
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new router.
    region string
    Pool where the router is located, for example, ru-6. Learn more about available pools in Product availability by location. Changing this creates a new router.
    status string
    Status of the router.
    tags string[]
    Tags of the router.
    timeouts VpcRouterV2Timeouts
    admin_state_up bool
    Specifies if the router is administratively up. The default value is true.
    all_tags Sequence[str]
    All tags of the router.
    availability_zone_hints Sequence[str]
    Pool segments requested for allocating the router. Learn more about available pools in Product availability by location. Changing this creates a new router.
    availability_zones Sequence[str]
    Pool segments where the router is actually allocated.
    blocked bool
    Specifies if the router is administratively blocked.
    description str
    Description of the router.
    enable_snat bool
    Specifies if source NAT is enabled on the gateway. Requires external_network_id.
    external_fixed_ips Sequence[VpcRouterV2ExternalFixedIpArgs]
    Gateway addresses of the router.
    external_network_id str
    Unique identifier of the external network the gateway is attached to. Retrieved from the selectelvpcnetwork_v2 data source with external = true filter.
    ha bool
    Specifies if the router runs in high availability mode. Changing it on an existing router disables the router for the time of the change, so traffic through it is interrupted. If not specified, high availability is disabled.
    name str
    Name of the router.
    project_id str
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new router.
    region str
    Pool where the router is located, for example, ru-6. Learn more about available pools in Product availability by location. Changing this creates a new router.
    status str
    Status of the router.
    tags Sequence[str]
    Tags of the router.
    timeouts VpcRouterV2TimeoutsArgs
    adminStateUp Boolean
    Specifies if the router is administratively up. The default value is true.
    allTags List<String>
    All tags of the router.
    availabilityZoneHints List<String>
    Pool segments requested for allocating the router. Learn more about available pools in Product availability by location. Changing this creates a new router.
    availabilityZones List<String>
    Pool segments where the router is actually allocated.
    blocked Boolean
    Specifies if the router is administratively blocked.
    description String
    Description of the router.
    enableSnat Boolean
    Specifies if source NAT is enabled on the gateway. Requires external_network_id.
    externalFixedIps List<Property Map>
    Gateway addresses of the router.
    externalNetworkId String
    Unique identifier of the external network the gateway is attached to. Retrieved from the selectelvpcnetwork_v2 data source with external = true filter.
    ha Boolean
    Specifies if the router runs in high availability mode. Changing it on an existing router disables the router for the time of the change, so traffic through it is interrupted. If not specified, high availability is disabled.
    name String
    Name of the router.
    projectId String
    Unique identifier of the associated project, for example, a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects. Changing this creates a new router.
    region String
    Pool where the router is located, for example, ru-6. Learn more about available pools in Product availability by location. Changing this creates a new router.
    status String
    Status of the router.
    tags List<String>
    Tags of the router.
    timeouts Property Map

    Supporting Types

    VpcRouterV2ExternalFixedIp, VpcRouterV2ExternalFixedIpArgs

    IpAddress string
    SubnetId string
    IpAddress string
    SubnetId string
    ip_address string
    subnet_id string
    ipAddress String
    subnetId String
    ipAddress string
    subnetId string
    ipAddress String
    subnetId String

    VpcRouterV2Timeouts, VpcRouterV2TimeoutsArgs

    Delete string
    Delete string
    delete string
    delete String
    delete string
    delete str
    delete String

    Import

    All versions

    Use the pulumi import command:

    export OS_DOMAIN_NAME=<domain_name>

    export OS_USERNAME=

    export OS_PASSWORD=

    export INFRA_PROJECT_ID=<project_id>

    export INFRA_REGION=

    $ pulumi import selectel:index/vpcRouterV2:VpcRouterV2 router_1 <id>
    

    <domain_name>, <username>, and <password> are the arguments of the provider configuration.

    Other identity attributes are described above in the import or resource sections.

    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