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

    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 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.
    RouterId string
    Unique identifier of the router the network is attached to. Retrieved from the selectelvpcrouter_v2 resource. Changing this creates a new router interface.
    ForceDestroy 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.
    PortId 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_id or subnet_id. Changing this creates a new router interface.
    SubnetId string
    Unique identifier of the subnet to attach. The port for the interface is created automatically. Retrieved from the selectelvpcnetworksubnetv2 resource. Specify either subnet_id or port_id. Changing this creates a new router interface.
    Timeouts VpcRouterInterfaceV2Timeouts
    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 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.
    RouterId string
    Unique identifier of the router the network is attached to. Retrieved from the selectelvpcrouter_v2 resource. Changing this creates a new router interface.
    ForceDestroy 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.
    PortId 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_id or subnet_id. Changing this creates a new router interface.
    SubnetId string
    Unique identifier of the subnet to attach. The port for the interface is created automatically. Retrieved from the selectelvpcnetworksubnetv2 resource. Specify either subnet_id or port_id. Changing this creates a new router interface.
    Timeouts VpcRouterInterfaceV2TimeoutsArgs
    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_id or subnet_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_id or port_id. Changing this creates a new router interface.
    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 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.
    routerId String
    Unique identifier of the router the network is attached to. Retrieved from the selectelvpcrouter_v2 resource. Changing this creates a new router interface.
    forceDestroy 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.
    portId 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_id or subnet_id. Changing this creates a new router interface.
    subnetId String
    Unique identifier of the subnet to attach. The port for the interface is created automatically. Retrieved from the selectelvpcnetworksubnetv2 resource. Specify either subnet_id or port_id. Changing this creates a new router interface.
    timeouts VpcRouterInterfaceV2Timeouts
    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 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.
    routerId string
    Unique identifier of the router the network is attached to. Retrieved from the selectelvpcrouter_v2 resource. Changing this creates a new router interface.
    forceDestroy 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.
    portId 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_id or subnet_id. Changing this creates a new router interface.
    subnetId string
    Unique identifier of the subnet to attach. The port for the interface is created automatically. Retrieved from the selectelvpcnetworksubnetv2 resource. Specify either subnet_id or port_id. Changing this creates a new router interface.
    timeouts VpcRouterInterfaceV2Timeouts
    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_id or subnet_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_id or port_id. Changing this creates a new router interface.
    timeouts VpcRouterInterfaceV2TimeoutsArgs
    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 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.
    routerId String
    Unique identifier of the router the network is attached to. Retrieved from the selectelvpcrouter_v2 resource. Changing this creates a new router interface.
    forceDestroy 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.
    portId 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_id or subnet_id. Changing this creates a new router interface.
    subnetId String
    Unique identifier of the subnet to attach. The port for the interface is created automatically. Retrieved from the selectelvpcnetworksubnetv2 resource. Specify either subnet_id or port_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.
    NetworkId string
    Unique identifier of the network containing the interface port.
    Id string
    The provider-assigned unique ID for this managed resource.
    NetworkId string
    Unique identifier of the network containing the interface port.
    id string
    The provider-assigned unique ID for this managed resource.
    network_id string
    Unique identifier of the network containing the interface port.
    id String
    The provider-assigned unique ID for this managed resource.
    networkId String
    Unique identifier of the network containing the interface port.
    id string
    The provider-assigned unique ID for this managed resource.
    networkId 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.
    id String
    The provider-assigned unique ID for this managed resource.
    networkId String
    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) -> VpcRouterInterfaceV2
    func 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.
    The following state arguments are supported:
    ForceDestroy 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.
    NetworkId string
    Unique identifier of the network containing the interface port.
    PortId 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_id or subnet_id. Changing this creates a new router interface.
    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 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.
    RouterId string
    Unique identifier of the router the network is attached to. Retrieved from the selectelvpcrouter_v2 resource. Changing this creates a new router interface.
    SubnetId string
    Unique identifier of the subnet to attach. The port for the interface is created automatically. Retrieved from the selectelvpcnetworksubnetv2 resource. Specify either subnet_id or port_id. Changing this creates a new router interface.
    Timeouts VpcRouterInterfaceV2Timeouts
    ForceDestroy 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.
    NetworkId string
    Unique identifier of the network containing the interface port.
    PortId 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_id or subnet_id. Changing this creates a new router interface.
    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 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.
    RouterId string
    Unique identifier of the router the network is attached to. Retrieved from the selectelvpcrouter_v2 resource. Changing this creates a new router interface.
    SubnetId string
    Unique identifier of the subnet to attach. The port for the interface is created automatically. Retrieved from the selectelvpcnetworksubnetv2 resource. Specify either subnet_id or port_id. Changing this creates a new router interface.
    Timeouts VpcRouterInterfaceV2TimeoutsArgs
    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_id or subnet_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_id or port_id. Changing this creates a new router interface.
    timeouts object
    forceDestroy 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.
    networkId String
    Unique identifier of the network containing the interface port.
    portId 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_id or subnet_id. Changing this creates a new router interface.
    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 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.
    routerId String
    Unique identifier of the router the network is attached to. Retrieved from the selectelvpcrouter_v2 resource. Changing this creates a new router interface.
    subnetId String
    Unique identifier of the subnet to attach. The port for the interface is created automatically. Retrieved from the selectelvpcnetworksubnetv2 resource. Specify either subnet_id or port_id. Changing this creates a new router interface.
    timeouts VpcRouterInterfaceV2Timeouts
    forceDestroy 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.
    networkId string
    Unique identifier of the network containing the interface port.
    portId 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_id or subnet_id. Changing this creates a new router interface.
    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 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.
    routerId string
    Unique identifier of the router the network is attached to. Retrieved from the selectelvpcrouter_v2 resource. Changing this creates a new router interface.
    subnetId string
    Unique identifier of the subnet to attach. The port for the interface is created automatically. Retrieved from the selectelvpcnetworksubnetv2 resource. Specify either subnet_id or port_id. Changing this creates a new router interface.
    timeouts VpcRouterInterfaceV2Timeouts
    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_id or subnet_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_id or port_id. Changing this creates a new router interface.
    timeouts VpcRouterInterfaceV2TimeoutsArgs
    forceDestroy 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.
    networkId String
    Unique identifier of the network containing the interface port.
    portId 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_id or subnet_id. Changing this creates a new router interface.
    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 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.
    routerId String
    Unique identifier of the router the network is attached to. Retrieved from the selectelvpcrouter_v2 resource. Changing this creates a new router interface.
    subnetId String
    Unique identifier of the subnet to attach. The port for the interface is created automatically. Retrieved from the selectelvpcnetworksubnetv2 resource. Specify either subnet_id or port_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 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