published on Friday, Oct 30, 2026 by selectel
published on Friday, Oct 30, 2026 by selectel
Creates and manages an interface that attaches a cloud router to a network 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 interface attached through a subnet
import * as pulumi from "@pulumi/pulumi";
import * as selectel from "@pulumi/selectel";
const interface1 = new selectel.VpcRouterInterfaceV2("interface_1", {
projectId: project1.id,
region: "ru-6",
routerId: router1.id,
subnetId: subnet1.id,
});
import pulumi
import pulumi_selectel as selectel
interface1 = selectel.VpcRouterInterfaceV2("interface_1",
project_id=project1["id"],
region="ru-6",
router_id=router1["id"],
subnet_id=subnet1["id"])
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.NewVpcRouterInterfaceV2(ctx, "interface_1", &selectel.VpcRouterInterfaceV2Args{
ProjectId: pulumi.Any(project1.Id),
Region: pulumi.String("ru-6"),
RouterId: pulumi.Any(router1.Id),
SubnetId: pulumi.Any(subnet1.Id),
})
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 interface1 = new Selectel.VpcRouterInterfaceV2("interface_1", new()
{
ProjectId = project1.Id,
Region = "ru-6",
RouterId = router1.Id,
SubnetId = subnet1.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.selectel.VpcRouterInterfaceV2;
import com.pulumi.selectel.VpcRouterInterfaceV2Args;
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 interface1 = new VpcRouterInterfaceV2("interface1", VpcRouterInterfaceV2Args.builder()
.projectId(project1.id())
.region("ru-6")
.routerId(router1.id())
.subnetId(subnet1.id())
.build());
}
}
resources:
interface1:
type: selectel:VpcRouterInterfaceV2
name: interface_1
properties:
projectId: ${project1.id}
region: ru-6
routerId: ${router1.id}
subnetId: ${subnet1.id}
Example coming soon!
Router interface attached through an existing port
import * as pulumi from "@pulumi/pulumi";
import * as selectel from "@pulumi/selectel";
const interface2 = new selectel.VpcRouterInterfaceV2("interface_2", {
projectId: project1.id,
region: "ru-6",
routerId: router1.id,
portId: port1.id,
});
import pulumi
import pulumi_selectel as selectel
interface2 = selectel.VpcRouterInterfaceV2("interface_2",
project_id=project1["id"],
region="ru-6",
router_id=router1["id"],
port_id=port1["id"])
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.NewVpcRouterInterfaceV2(ctx, "interface_2", &selectel.VpcRouterInterfaceV2Args{
ProjectId: pulumi.Any(project1.Id),
Region: pulumi.String("ru-6"),
RouterId: pulumi.Any(router1.Id),
PortId: pulumi.Any(port1.Id),
})
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 interface2 = new Selectel.VpcRouterInterfaceV2("interface_2", new()
{
ProjectId = project1.Id,
Region = "ru-6",
RouterId = router1.Id,
PortId = port1.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.selectel.VpcRouterInterfaceV2;
import com.pulumi.selectel.VpcRouterInterfaceV2Args;
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 interface2 = new VpcRouterInterfaceV2("interface2", VpcRouterInterfaceV2Args.builder()
.projectId(project1.id())
.region("ru-6")
.routerId(router1.id())
.portId(port1.id())
.build());
}
}
resources:
interface2:
type: selectel:VpcRouterInterfaceV2
name: interface_2
properties:
projectId: ${project1.id}
region: ru-6
routerId: ${router1.id}
portId: ${port1.id}
Example coming soon!
Create VpcRouterInterfaceV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpcRouterInterfaceV2(name: string, args: VpcRouterInterfaceV2Args, opts?: CustomResourceOptions);@overload
def VpcRouterInterfaceV2(resource_name: str,
args: VpcRouterInterfaceV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def VpcRouterInterfaceV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
router_id: Optional[str] = None,
force_destroy: Optional[bool] = None,
port_id: Optional[str] = None,
subnet_id: Optional[str] = None,
timeouts: Optional[VpcRouterInterfaceV2TimeoutsArgs] = None)func NewVpcRouterInterfaceV2(ctx *Context, name string, args VpcRouterInterfaceV2Args, opts ...ResourceOption) (*VpcRouterInterfaceV2, error)public VpcRouterInterfaceV2(string name, VpcRouterInterfaceV2Args args, CustomResourceOptions? opts = null)
public VpcRouterInterfaceV2(String name, VpcRouterInterfaceV2Args args)
public VpcRouterInterfaceV2(String name, VpcRouterInterfaceV2Args args, CustomResourceOptions options)
type: selectel:VpcRouterInterfaceV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "selectel_vpc_router_interface_v2" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args VpcRouterInterfaceV2Args
- 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 VpcRouterInterfaceV2Args
- 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 VpcRouterInterfaceV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpcRouterInterfaceV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpcRouterInterfaceV2Args
- 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 vpcRouterInterfaceV2Resource = new Selectel.VpcRouterInterfaceV2("vpcRouterInterfaceV2Resource", new()
{
ProjectId = "string",
Region = "string",
RouterId = "string",
ForceDestroy = false,
PortId = "string",
SubnetId = "string",
Timeouts = new Selectel.Inputs.VpcRouterInterfaceV2TimeoutsArgs
{
Delete = "string",
},
});
example, err := selectel.NewVpcRouterInterfaceV2(ctx, "vpcRouterInterfaceV2Resource", &selectel.VpcRouterInterfaceV2Args{
ProjectId: pulumi.String("string"),
Region: pulumi.String("string"),
RouterId: pulumi.String("string"),
ForceDestroy: pulumi.Bool(false),
PortId: pulumi.String("string"),
SubnetId: pulumi.String("string"),
Timeouts: &selectel.VpcRouterInterfaceV2TimeoutsArgs{
Delete: pulumi.String("string"),
},
})
resource "selectel_vpc_router_interface_v2" "vpcRouterInterfaceV2Resource" {
lifecycle {
create_before_destroy = true
}
project_id = "string"
region = "string"
router_id = "string"
force_destroy = false
port_id = "string"
subnet_id = "string"
timeouts = {
delete = "string"
}
}
var vpcRouterInterfaceV2Resource = new VpcRouterInterfaceV2("vpcRouterInterfaceV2Resource", VpcRouterInterfaceV2Args.builder()
.projectId("string")
.region("string")
.routerId("string")
.forceDestroy(false)
.portId("string")
.subnetId("string")
.timeouts(VpcRouterInterfaceV2TimeoutsArgs.builder()
.delete("string")
.build())
.build());
vpc_router_interface_v2_resource = selectel.VpcRouterInterfaceV2("vpcRouterInterfaceV2Resource",
project_id="string",
region="string",
router_id="string",
force_destroy=False,
port_id="string",
subnet_id="string",
timeouts={
"delete": "string",
})
const vpcRouterInterfaceV2Resource = new selectel.VpcRouterInterfaceV2("vpcRouterInterfaceV2Resource", {
projectId: "string",
region: "string",
routerId: "string",
forceDestroy: false,
portId: "string",
subnetId: "string",
timeouts: {
"delete": "string",
},
});
type: selectel:VpcRouterInterfaceV2
properties:
forceDestroy: false
portId: string
projectId: string
region: string
routerId: string
subnetId: string
timeouts:
delete: string
VpcRouterInterfaceV2 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 VpcRouterInterfaceV2 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 interface. - Region string
- Pool where the router interface is located, for example,
ru-6. Learn more about available pools in Product availability by location. Changing this creates a new router interface. - Router
Id string - Unique identifier of the router the network is attached to. Retrieved from the selectelvpcrouter_v2 resource. Changing this creates a new router interface.
- Force
Destroy bool - Specifies if static routes of the router that point into the attached subnet are deleted before the interface is detached. The default value is
false. - Port
Id string - Unique identifier of the port to attach. The port must have exactly one fixed IP. Retrieved from the selectelvpcport_v2 resource. Specify either
port_idorsubnet_id. Changing this creates a new router interface. - Subnet
Id string - Unique identifier of the subnet to attach. The port for the interface is created automatically. Retrieved from the selectelvpcnetworksubnetv2 resource. Specify either
subnet_idorport_id. Changing this creates a new router interface. - Timeouts
Vpc
Router Interface 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 interface. - Region string
- Pool where the router interface is located, for example,
ru-6. Learn more about available pools in Product availability by location. Changing this creates a new router interface. - Router
Id string - Unique identifier of the router the network is attached to. Retrieved from the selectelvpcrouter_v2 resource. Changing this creates a new router interface.
- Force
Destroy bool - Specifies if static routes of the router that point into the attached subnet are deleted before the interface is detached. The default value is
false. - Port
Id string - Unique identifier of the port to attach. The port must have exactly one fixed IP. Retrieved from the selectelvpcport_v2 resource. Specify either
port_idorsubnet_id. Changing this creates a new router interface. - Subnet
Id string - Unique identifier of the subnet to attach. The port for the interface is created automatically. Retrieved from the selectelvpcnetworksubnetv2 resource. Specify either
subnet_idorport_id. Changing this creates a new router interface. - Timeouts
Vpc
Router Interface 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 interface. - region string
- Pool where the router interface is located, for example,
ru-6. Learn more about available pools in Product availability by location. Changing this creates a new router interface. - router_
id string - Unique identifier of the router the network is attached to. Retrieved from the selectelvpcrouter_v2 resource. Changing this creates a new router interface.
- force_
destroy bool - Specifies if static routes of the router that point into the attached subnet are deleted before the interface is detached. The default value is
false. - port_
id string - Unique identifier of the port to attach. The port must have exactly one fixed IP. Retrieved from the selectelvpcport_v2 resource. Specify either
port_idorsubnet_id. Changing this creates a new router interface. - subnet_
id string - Unique identifier of the subnet to attach. The port for the interface is created automatically. Retrieved from the selectelvpcnetworksubnetv2 resource. Specify either
subnet_idorport_id. Changing this creates a new router interface. - 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 interface. - region String
- Pool where the router interface is located, for example,
ru-6. Learn more about available pools in Product availability by location. Changing this creates a new router interface. - router
Id String - Unique identifier of the router the network is attached to. Retrieved from the selectelvpcrouter_v2 resource. Changing this creates a new router interface.
- force
Destroy Boolean - Specifies if static routes of the router that point into the attached subnet are deleted before the interface is detached. The default value is
false. - port
Id String - Unique identifier of the port to attach. The port must have exactly one fixed IP. Retrieved from the selectelvpcport_v2 resource. Specify either
port_idorsubnet_id. Changing this creates a new router interface. - subnet
Id String - Unique identifier of the subnet to attach. The port for the interface is created automatically. Retrieved from the selectelvpcnetworksubnetv2 resource. Specify either
subnet_idorport_id. Changing this creates a new router interface. - timeouts
Vpc
Router Interface 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 interface. - region string
- Pool where the router interface is located, for example,
ru-6. Learn more about available pools in Product availability by location. Changing this creates a new router interface. - router
Id string - Unique identifier of the router the network is attached to. Retrieved from the selectelvpcrouter_v2 resource. Changing this creates a new router interface.
- force
Destroy boolean - Specifies if static routes of the router that point into the attached subnet are deleted before the interface is detached. The default value is
false. - port
Id string - Unique identifier of the port to attach. The port must have exactly one fixed IP. Retrieved from the selectelvpcport_v2 resource. Specify either
port_idorsubnet_id. Changing this creates a new router interface. - subnet
Id string - Unique identifier of the subnet to attach. The port for the interface is created automatically. Retrieved from the selectelvpcnetworksubnetv2 resource. Specify either
subnet_idorport_id. Changing this creates a new router interface. - timeouts
Vpc
Router Interface 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 interface. - region str
- Pool where the router interface is located, for example,
ru-6. Learn more about available pools in Product availability by location. Changing this creates a new router interface. - router_
id str - Unique identifier of the router the network is attached to. Retrieved from the selectelvpcrouter_v2 resource. Changing this creates a new router interface.
- force_
destroy bool - Specifies if static routes of the router that point into the attached subnet are deleted before the interface is detached. The default value is
false. - port_
id str - Unique identifier of the port to attach. The port must have exactly one fixed IP. Retrieved from the selectelvpcport_v2 resource. Specify either
port_idorsubnet_id. Changing this creates a new router interface. - subnet_
id str - Unique identifier of the subnet to attach. The port for the interface is created automatically. Retrieved from the selectelvpcnetworksubnetv2 resource. Specify either
subnet_idorport_id. Changing this creates a new router interface. - timeouts
Vpc
Router Interface 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 interface. - region String
- Pool where the router interface is located, for example,
ru-6. Learn more about available pools in Product availability by location. Changing this creates a new router interface. - router
Id String - Unique identifier of the router the network is attached to. Retrieved from the selectelvpcrouter_v2 resource. Changing this creates a new router interface.
- force
Destroy Boolean - Specifies if static routes of the router that point into the attached subnet are deleted before the interface is detached. The default value is
false. - port
Id String - Unique identifier of the port to attach. The port must have exactly one fixed IP. Retrieved from the selectelvpcport_v2 resource. Specify either
port_idorsubnet_id. Changing this creates a new router interface. - subnet
Id String - Unique identifier of the subnet to attach. The port for the interface is created automatically. Retrieved from the selectelvpcnetworksubnetv2 resource. Specify either
subnet_idorport_id. Changing this creates a new router interface. - timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the VpcRouterInterfaceV2 resource produces the following output properties:
- id string
- The provider-assigned unique ID for this managed resource.
- network_
id string - Unique identifier of the network containing the interface port.
- id str
- The provider-assigned unique ID for this managed resource.
- network_
id str - Unique identifier of the network containing the interface port.
Look up Existing VpcRouterInterfaceV2 Resource
Get an existing VpcRouterInterfaceV2 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?: VpcRouterInterfaceV2State, opts?: CustomResourceOptions): VpcRouterInterfaceV2@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
force_destroy: Optional[bool] = None,
network_id: Optional[str] = None,
port_id: Optional[str] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
router_id: Optional[str] = None,
subnet_id: Optional[str] = None,
timeouts: Optional[VpcRouterInterfaceV2TimeoutsArgs] = None) -> VpcRouterInterfaceV2func GetVpcRouterInterfaceV2(ctx *Context, name string, id IDInput, state *VpcRouterInterfaceV2State, opts ...ResourceOption) (*VpcRouterInterfaceV2, error)public static VpcRouterInterfaceV2 Get(string name, Input<string> id, VpcRouterInterfaceV2State? state, CustomResourceOptions? opts = null)public static VpcRouterInterfaceV2 get(String name, Output<String> id, VpcRouterInterfaceV2State state, CustomResourceOptions options)resources: _: type: selectel:VpcRouterInterfaceV2 get: id: ${id}import {
to = selectel_vpc_router_interface_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.
- Force
Destroy bool - Specifies if static routes of the router that point into the attached subnet are deleted before the interface is detached. The default value is
false. - Network
Id string - Unique identifier of the network containing the interface port.
- Port
Id string - Unique identifier of the port to attach. The port must have exactly one fixed IP. Retrieved from the selectelvpcport_v2 resource. Specify either
port_idorsubnet_id. Changing this creates a new router interface. - 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 interface. - Region string
- Pool where the router interface is located, for example,
ru-6. Learn more about available pools in Product availability by location. Changing this creates a new router interface. - Router
Id string - Unique identifier of the router the network is attached to. Retrieved from the selectelvpcrouter_v2 resource. Changing this creates a new router interface.
- Subnet
Id string - Unique identifier of the subnet to attach. The port for the interface is created automatically. Retrieved from the selectelvpcnetworksubnetv2 resource. Specify either
subnet_idorport_id. Changing this creates a new router interface. - Timeouts
Vpc
Router Interface V2Timeouts
- Force
Destroy bool - Specifies if static routes of the router that point into the attached subnet are deleted before the interface is detached. The default value is
false. - Network
Id string - Unique identifier of the network containing the interface port.
- Port
Id string - Unique identifier of the port to attach. The port must have exactly one fixed IP. Retrieved from the selectelvpcport_v2 resource. Specify either
port_idorsubnet_id. Changing this creates a new router interface. - 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 interface. - Region string
- Pool where the router interface is located, for example,
ru-6. Learn more about available pools in Product availability by location. Changing this creates a new router interface. - Router
Id string - Unique identifier of the router the network is attached to. Retrieved from the selectelvpcrouter_v2 resource. Changing this creates a new router interface.
- Subnet
Id string - Unique identifier of the subnet to attach. The port for the interface is created automatically. Retrieved from the selectelvpcnetworksubnetv2 resource. Specify either
subnet_idorport_id. Changing this creates a new router interface. - Timeouts
Vpc
Router Interface V2Timeouts Args
- force_
destroy bool - Specifies if static routes of the router that point into the attached subnet are deleted before the interface is detached. The default value is
false. - network_
id string - Unique identifier of the network containing the interface port.
- port_
id string - Unique identifier of the port to attach. The port must have exactly one fixed IP. Retrieved from the selectelvpcport_v2 resource. Specify either
port_idorsubnet_id. Changing this creates a new router interface. - 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 interface. - region string
- Pool where the router interface is located, for example,
ru-6. Learn more about available pools in Product availability by location. Changing this creates a new router interface. - router_
id string - Unique identifier of the router the network is attached to. Retrieved from the selectelvpcrouter_v2 resource. Changing this creates a new router interface.
- subnet_
id string - Unique identifier of the subnet to attach. The port for the interface is created automatically. Retrieved from the selectelvpcnetworksubnetv2 resource. Specify either
subnet_idorport_id. Changing this creates a new router interface. - timeouts object
- force
Destroy Boolean - Specifies if static routes of the router that point into the attached subnet are deleted before the interface is detached. The default value is
false. - network
Id String - Unique identifier of the network containing the interface port.
- port
Id String - Unique identifier of the port to attach. The port must have exactly one fixed IP. Retrieved from the selectelvpcport_v2 resource. Specify either
port_idorsubnet_id. Changing this creates a new router interface. - 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 interface. - region String
- Pool where the router interface is located, for example,
ru-6. Learn more about available pools in Product availability by location. Changing this creates a new router interface. - router
Id String - Unique identifier of the router the network is attached to. Retrieved from the selectelvpcrouter_v2 resource. Changing this creates a new router interface.
- subnet
Id String - Unique identifier of the subnet to attach. The port for the interface is created automatically. Retrieved from the selectelvpcnetworksubnetv2 resource. Specify either
subnet_idorport_id. Changing this creates a new router interface. - timeouts
Vpc
Router Interface V2Timeouts
- force
Destroy boolean - Specifies if static routes of the router that point into the attached subnet are deleted before the interface is detached. The default value is
false. - network
Id string - Unique identifier of the network containing the interface port.
- port
Id string - Unique identifier of the port to attach. The port must have exactly one fixed IP. Retrieved from the selectelvpcport_v2 resource. Specify either
port_idorsubnet_id. Changing this creates a new router interface. - 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 interface. - region string
- Pool where the router interface is located, for example,
ru-6. Learn more about available pools in Product availability by location. Changing this creates a new router interface. - router
Id string - Unique identifier of the router the network is attached to. Retrieved from the selectelvpcrouter_v2 resource. Changing this creates a new router interface.
- subnet
Id string - Unique identifier of the subnet to attach. The port for the interface is created automatically. Retrieved from the selectelvpcnetworksubnetv2 resource. Specify either
subnet_idorport_id. Changing this creates a new router interface. - timeouts
Vpc
Router Interface V2Timeouts
- force_
destroy bool - Specifies if static routes of the router that point into the attached subnet are deleted before the interface is detached. The default value is
false. - network_
id str - Unique identifier of the network containing the interface port.
- port_
id str - Unique identifier of the port to attach. The port must have exactly one fixed IP. Retrieved from the selectelvpcport_v2 resource. Specify either
port_idorsubnet_id. Changing this creates a new router interface. - 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 interface. - region str
- Pool where the router interface is located, for example,
ru-6. Learn more about available pools in Product availability by location. Changing this creates a new router interface. - router_
id str - Unique identifier of the router the network is attached to. Retrieved from the selectelvpcrouter_v2 resource. Changing this creates a new router interface.
- subnet_
id str - Unique identifier of the subnet to attach. The port for the interface is created automatically. Retrieved from the selectelvpcnetworksubnetv2 resource. Specify either
subnet_idorport_id. Changing this creates a new router interface. - timeouts
Vpc
Router Interface V2Timeouts Args
- force
Destroy Boolean - Specifies if static routes of the router that point into the attached subnet are deleted before the interface is detached. The default value is
false. - network
Id String - Unique identifier of the network containing the interface port.
- port
Id String - Unique identifier of the port to attach. The port must have exactly one fixed IP. Retrieved from the selectelvpcport_v2 resource. Specify either
port_idorsubnet_id. Changing this creates a new router interface. - 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 interface. - region String
- Pool where the router interface is located, for example,
ru-6. Learn more about available pools in Product availability by location. Changing this creates a new router interface. - router
Id String - Unique identifier of the router the network is attached to. Retrieved from the selectelvpcrouter_v2 resource. Changing this creates a new router interface.
- subnet
Id String - Unique identifier of the subnet to attach. The port for the interface is created automatically. Retrieved from the selectelvpcnetworksubnetv2 resource. Specify either
subnet_idorport_id. Changing this creates a new router interface. - timeouts Property Map
Supporting Types
VpcRouterInterfaceV2Timeouts, VpcRouterInterfaceV2TimeoutsArgs
- 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/vpcRouterInterfaceV2:VpcRouterInterfaceV2 interface_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