published on Friday, Oct 30, 2026 by selectel
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:
- 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 boolUp - Specifies if the router is administratively up. The default value is
true. - Availability
Zone List<string>Hints - 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 stringId - Unique identifier of the external network the gateway is attached to. Retrieved from the selectelvpcnetwork_v2 data source with
external = truefilter. - 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.
- List<string>
- Tags of the router.
- Timeouts
Vpc
Router V2Timeouts
- 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 boolUp - Specifies if the router is administratively up. The default value is
true. - Availability
Zone []stringHints - 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 stringId - Unique identifier of the external network the gateway is attached to. Retrieved from the selectelvpcnetwork_v2 data source with
external = truefilter. - 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.
- []string
- Tags of the router.
- Timeouts
Vpc
Router V2Timeouts Args
- 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_ boolup - Specifies if the router is administratively up. The default value is
true. - availability_
zone_ list(string)hints - 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_ stringid - Unique identifier of the external network the gateway is attached to. Retrieved from the selectelvpcnetwork_v2 data source with
external = truefilter. - 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.
- list(string)
- Tags of the router.
- timeouts object
- 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 BooleanUp - Specifies if the router is administratively up. The default value is
true. - availability
Zone List<String>Hints - 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 Boolean - Specifies if source NAT is enabled on the gateway. Requires
external_network_id. - external
Network StringId - Unique identifier of the external network the gateway is attached to. Retrieved from the selectelvpcnetwork_v2 data source with
external = truefilter. - 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.
- List<String>
- Tags of the router.
- timeouts
Vpc
Router V2Timeouts
- 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 booleanUp - Specifies if the router is administratively up. The default value is
true. - availability
Zone string[]Hints - 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 boolean - Specifies if source NAT is enabled on the gateway. Requires
external_network_id. - external
Network stringId - Unique identifier of the external network the gateway is attached to. Retrieved from the selectelvpcnetwork_v2 data source with
external = truefilter. - 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.
- string[]
- Tags of the router.
- timeouts
Vpc
Router V2Timeouts
- 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_ boolup - Specifies if the router is administratively up. The default value is
true. - availability_
zone_ Sequence[str]hints - 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_ strid - Unique identifier of the external network the gateway is attached to. Retrieved from the selectelvpcnetwork_v2 data source with
external = truefilter. - 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.
- Sequence[str]
- Tags of the router.
- timeouts
Vpc
Router V2Timeouts Args
- 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 BooleanUp - Specifies if the router is administratively up. The default value is
true. - availability
Zone List<String>Hints - 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 Boolean - Specifies if source NAT is enabled on the gateway. Requires
external_network_id. - external
Network StringId - Unique identifier of the external network the gateway is attached to. Retrieved from the selectelvpcnetwork_v2 data source with
external = truefilter. - 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.
- 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:
- 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 List<VpcIps Router V2External Fixed Ip> - Gateway addresses of the router.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- Status of the router.
- []string
- All tags of the router.
- Availability
Zones []string - Pool segments where the router is actually allocated.
- Blocked bool
- Specifies if the router is administratively blocked.
- External
Fixed []VpcIps Router V2External Fixed Ip - Gateway addresses of the router.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- Status of the router.
- 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_ list(object)ips - Gateway addresses of the router.
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- Status of the router.
- List<String>
- All tags of the router.
- availability
Zones List<String> - Pool segments where the router is actually allocated.
- blocked Boolean
- Specifies if the router is administratively blocked.
- external
Fixed List<VpcIps Router V2External Fixed Ip> - Gateway addresses of the router.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- Status of the router.
- string[]
- All tags of the router.
- availability
Zones string[] - Pool segments where the router is actually allocated.
- blocked boolean
- Specifies if the router is administratively blocked.
- external
Fixed VpcIps Router V2External Fixed Ip[] - Gateway addresses of the router.
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- Status of the router.
- 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_ Sequence[Vpcips Router V2External Fixed Ip] - Gateway addresses of the router.
- id str
- The provider-assigned unique ID for this managed resource.
- status str
- Status of the router.
- List<String>
- All tags of the router.
- availability
Zones List<String> - Pool segments where the router is actually allocated.
- blocked Boolean
- Specifies if the router is administratively blocked.
- external
Fixed List<Property Map>Ips - 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) -> VpcRouterV2func 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.
- Admin
State boolUp - Specifies if the router is administratively up. The default value is
true. - List<string>
- All tags of the router.
- Availability
Zone List<string>Hints - 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 List<VpcIps Router V2External Fixed Ip> - Gateway addresses of the router.
- External
Network stringId - Unique identifier of the external network the gateway is attached to. Retrieved from the selectelvpcnetwork_v2 data source with
external = truefilter. - 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.
- List<string>
- Tags of the router.
- Timeouts
Vpc
Router V2Timeouts
- Admin
State boolUp - Specifies if the router is administratively up. The default value is
true. - []string
- All tags of the router.
- Availability
Zone []stringHints - 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 []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 []VpcIps Router V2External Fixed Ip Args - Gateway addresses of the router.
- External
Network stringId - Unique identifier of the external network the gateway is attached to. Retrieved from the selectelvpcnetwork_v2 data source with
external = truefilter. - 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.
- []string
- Tags of the router.
- Timeouts
Vpc
Router V2Timeouts Args
- admin_
state_ boolup - Specifies if the router is administratively up. The default value is
true. - list(string)
- All tags of the router.
- availability_
zone_ list(string)hints - 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_ list(object)ips - Gateway addresses of the router.
- external_
network_ stringid - Unique identifier of the external network the gateway is attached to. Retrieved from the selectelvpcnetwork_v2 data source with
external = truefilter. - 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.
- list(string)
- Tags of the router.
- timeouts object
- admin
State BooleanUp - Specifies if the router is administratively up. The default value is
true. - List<String>
- All tags of the router.
- availability
Zone List<String>Hints - 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 Boolean
- Specifies if the router is administratively blocked.
- description String
- Description of the router.
- enable
Snat Boolean - Specifies if source NAT is enabled on the gateway. Requires
external_network_id. - external
Fixed List<VpcIps Router V2External Fixed Ip> - Gateway addresses of the router.
- external
Network StringId - Unique identifier of the external network the gateway is attached to. Retrieved from the selectelvpcnetwork_v2 data source with
external = truefilter. - 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.
- 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.
- List<String>
- Tags of the router.
- timeouts
Vpc
Router V2Timeouts
- admin
State booleanUp - Specifies if the router is administratively up. The default value is
true. - string[]
- All tags of the router.
- availability
Zone string[]Hints - 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 string[] - Pool segments where the router is actually allocated.
- blocked boolean
- Specifies if the router is administratively blocked.
- description string
- Description of the router.
- enable
Snat boolean - Specifies if source NAT is enabled on the gateway. Requires
external_network_id. - external
Fixed VpcIps Router V2External Fixed Ip[] - Gateway addresses of the router.
- external
Network stringId - Unique identifier of the external network the gateway is attached to. Retrieved from the selectelvpcnetwork_v2 data source with
external = truefilter. - 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.
- 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.
- string[]
- Tags of the router.
- timeouts
Vpc
Router V2Timeouts
- admin_
state_ boolup - Specifies if the router is administratively up. The default value is
true. - Sequence[str]
- All tags of the router.
- availability_
zone_ Sequence[str]hints - 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_ Sequence[Vpcips Router V2External Fixed Ip Args] - Gateway addresses of the router.
- external_
network_ strid - Unique identifier of the external network the gateway is attached to. Retrieved from the selectelvpcnetwork_v2 data source with
external = truefilter. - 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.
- Sequence[str]
- Tags of the router.
- timeouts
Vpc
Router V2Timeouts Args
- admin
State BooleanUp - Specifies if the router is administratively up. The default value is
true. - List<String>
- All tags of the router.
- availability
Zone List<String>Hints - 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 Boolean
- Specifies if the router is administratively blocked.
- description String
- Description of the router.
- enable
Snat Boolean - Specifies if source NAT is enabled on the gateway. Requires
external_network_id. - external
Fixed List<Property Map>Ips - Gateway addresses of the router.
- external
Network StringId - Unique identifier of the external network the gateway is attached to. Retrieved from the selectelvpcnetwork_v2 data source with
external = truefilter. - 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.
- 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.
- List<String>
- Tags of the router.
- timeouts Property Map
Supporting Types
VpcRouterV2ExternalFixedIp, VpcRouterV2ExternalFixedIpArgs
- ip_
address string - subnet_
id string
- ip_
address str - subnet_
id str
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
selectelTerraform Provider.
published on Friday, Oct 30, 2026 by selectel