Viewing docs for selectel 9.5.0
published on Friday, Oct 30, 2026 by selectel
published on Friday, Oct 30, 2026 by selectel
selectel
Viewing docs for selectel 9.5.0
published on Friday, Oct 30, 2026 by selectel
published on Friday, Oct 30, 2026 by selectel
Provides a cloud router. 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
import * as pulumi from "@pulumi/pulumi";
import * as selectel from "@pulumi/selectel";
const router1 = selectel.getVpcRouterV2({
projectId: project1.id,
region: "ru-6",
name: "router-1",
});
import pulumi
import pulumi_selectel as selectel
router1 = selectel.get_vpc_router_v2(project_id=project1["id"],
region="ru-6",
name="router-1")
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.LookupVpcRouterV2(ctx, &selectel.LookupVpcRouterV2Args{
ProjectId: project1.Id,
Region: "ru-6",
Name: pulumi.StringRef("router-1"),
}, nil)
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 = Selectel.GetVpcRouterV2.Invoke(new()
{
ProjectId = project1.Id,
Region = "ru-6",
Name = "router-1",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.selectel.SelectelFunctions;
import com.pulumi.selectel.inputs.GetVpcRouterV2Args;
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) {
final var router1 = SelectelFunctions.getVpcRouterV2(GetVpcRouterV2Args.builder()
.projectId(project1.id())
.region("ru-6")
.name("router-1")
.build());
}
}
variables:
router1:
fn::invoke:
function: selectel:getVpcRouterV2
arguments:
projectId: ${project1.id}
region: ru-6
name: router-1
Example coming soon!
Using getVpcRouterV2
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getVpcRouterV2(args: GetVpcRouterV2Args, opts?: InvokeOptions): Promise<GetVpcRouterV2Result>
function getVpcRouterV2Output(args: GetVpcRouterV2OutputArgs, opts?: InvokeOutputOptions): Output<GetVpcRouterV2Result>def get_vpc_router_v2(admin_state_up: Optional[bool] = None,
description: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
router_id: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
opts: Optional[InvokeOptions] = None) -> GetVpcRouterV2Result
def get_vpc_router_v2_output(admin_state_up: pulumi.Input[Optional[bool]] = None,
description: pulumi.Input[Optional[str]] = None,
name: pulumi.Input[Optional[str]] = None,
project_id: pulumi.Input[Optional[str]] = None,
region: pulumi.Input[Optional[str]] = None,
router_id: pulumi.Input[Optional[str]] = None,
tags: pulumi.Input[Optional[Sequence[pulumi.Input[str]]]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetVpcRouterV2Result]func LookupVpcRouterV2(ctx *Context, args *LookupVpcRouterV2Args, opts ...InvokeOption) (*LookupVpcRouterV2Result, error)
func LookupVpcRouterV2Output(ctx *Context, args *LookupVpcRouterV2OutputArgs, opts ...InvokeOption) LookupVpcRouterV2ResultOutput> Note: This function is named LookupVpcRouterV2 in the Go SDK.
public static class GetVpcRouterV2
{
public static Task<GetVpcRouterV2Result> InvokeAsync(GetVpcRouterV2Args args, InvokeOptions? opts = null)
public static Output<GetVpcRouterV2Result> Invoke(GetVpcRouterV2InvokeArgs args, InvokeOptions? opts = null)
public static Output<GetVpcRouterV2Result> Invoke(GetVpcRouterV2InvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetVpcRouterV2Result> getVpcRouterV2(GetVpcRouterV2Args args, InvokeOptions options)
public static Output<GetVpcRouterV2Result> getVpcRouterV2(GetVpcRouterV2Args args, InvokeOptions options)
public static Output<GetVpcRouterV2Result> getVpcRouterV2(GetVpcRouterV2Args args, InvokeOutputOptions options)
fn::invoke:
function: selectel:index/getVpcRouterV2:getVpcRouterV2
arguments:
# arguments dictionarydata "selectel_get_vpc_router_v2" "name" {
# arguments
}The following arguments are supported:
- Project
Id string - Unique identifier of the associated project, for example,
a07abc12310546f1b9291ab3013a7d75. Retrieved from the selectelvpcproject_v2 resource. Learn more about Projects. - Region string
- Pool where the router is located, for example,
ru-6. Learn more about available pools in Product availability by location. - Admin
State boolUp - Specifies if the router is administratively up.
- Description string
- Description of the router.
- Name string
- Name of the router.
- Router
Id string - Unique identifier of the router. To get the router ID, in the Control panel, go to Products ⟶ Cloud Servers ⟶ Network ⟶ the Cloud routers tab ⟶ copy the ID in the card of the required router.
- List<string>
- Tags 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. - Region string
- Pool where the router is located, for example,
ru-6. Learn more about available pools in Product availability by location. - Admin
State boolUp - Specifies if the router is administratively up.
- Description string
- Description of the router.
- Name string
- Name of the router.
- Router
Id string - Unique identifier of the router. To get the router ID, in the Control panel, go to Products ⟶ Cloud Servers ⟶ Network ⟶ the Cloud routers tab ⟶ copy the ID in the card of the required router.
- []string
- Tags 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. - region string
- Pool where the router is located, for example,
ru-6. Learn more about available pools in Product availability by location. - admin_
state_ boolup - Specifies if the router is administratively up.
- description string
- Description of the router.
- name string
- Name of the router.
- router_
id string - Unique identifier of the router. To get the router ID, in the Control panel, go to Products ⟶ Cloud Servers ⟶ Network ⟶ the Cloud routers tab ⟶ copy the ID in the card of the required router.
- list(string)
- Tags 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. - region String
- Pool where the router is located, for example,
ru-6. Learn more about available pools in Product availability by location. - admin
State BooleanUp - Specifies if the router is administratively up.
- description String
- Description of the router.
- name String
- Name of the router.
- router
Id String - Unique identifier of the router. To get the router ID, in the Control panel, go to Products ⟶ Cloud Servers ⟶ Network ⟶ the Cloud routers tab ⟶ copy the ID in the card of the required router.
- List<String>
- Tags 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. - region string
- Pool where the router is located, for example,
ru-6. Learn more about available pools in Product availability by location. - admin
State booleanUp - Specifies if the router is administratively up.
- description string
- Description of the router.
- name string
- Name of the router.
- router
Id string - Unique identifier of the router. To get the router ID, in the Control panel, go to Products ⟶ Cloud Servers ⟶ Network ⟶ the Cloud routers tab ⟶ copy the ID in the card of the required router.
- string[]
- Tags 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. - region str
- Pool where the router is located, for example,
ru-6. Learn more about available pools in Product availability by location. - admin_
state_ boolup - Specifies if the router is administratively up.
- description str
- Description of the router.
- name str
- Name of the router.
- router_
id str - Unique identifier of the router. To get the router ID, in the Control panel, go to Products ⟶ Cloud Servers ⟶ Network ⟶ the Cloud routers tab ⟶ copy the ID in the card of the required router.
- Sequence[str]
- Tags 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. - region String
- Pool where the router is located, for example,
ru-6. Learn more about available pools in Product availability by location. - admin
State BooleanUp - Specifies if the router is administratively up.
- description String
- Description of the router.
- name String
- Name of the router.
- router
Id String - Unique identifier of the router. To get the router ID, in the Control panel, go to Products ⟶ Cloud Servers ⟶ Network ⟶ the Cloud routers tab ⟶ copy the ID in the card of the required router.
- List<String>
- Tags of the router.
getVpcRouterV2 Result
The following output properties are available:
- Admin
State boolUp - Specifies if the router is administratively up.
- List<string>
- All tags of the router.
- Availability
Zone List<string>Hints - Pool segments requested for allocating the 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.
- External
Fixed List<GetIps Vpc Router V2External Fixed Ip> - Gateway addresses of the router.
- External
Network stringId - Unique identifier of the external network the gateway is attached to.
- Ha bool
- Specifies if the router runs in high availability mode.
- Id string
- Unique identifier of the router.
- 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. - Region string
- Pool where the router is located, for example,
ru-6. Learn more about available pools in Product availability by location. - Router
Id string - Unique identifier of the router. To get the router ID, in the Control panel, go to Products ⟶ Cloud Servers ⟶ Network ⟶ the Cloud routers tab ⟶ copy the ID in the card of the required router.
- Routes
List<Get
Vpc Router V2Route> - Static routes of the router.
- Status string
- Status of the router.
- List<string>
- Tags of the router.
- Admin
State boolUp - Specifies if the router is administratively up.
- []string
- All tags of the router.
- Availability
Zone []stringHints - Pool segments requested for allocating the 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.
- External
Fixed []GetIps Vpc Router V2External Fixed Ip - Gateway addresses of the router.
- External
Network stringId - Unique identifier of the external network the gateway is attached to.
- Ha bool
- Specifies if the router runs in high availability mode.
- Id string
- Unique identifier of the router.
- 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. - Region string
- Pool where the router is located, for example,
ru-6. Learn more about available pools in Product availability by location. - Router
Id string - Unique identifier of the router. To get the router ID, in the Control panel, go to Products ⟶ Cloud Servers ⟶ Network ⟶ the Cloud routers tab ⟶ copy the ID in the card of the required router.
- Routes
[]Get
Vpc Router V2Route - Static routes of the router.
- Status string
- Status of the router.
- []string
- Tags of the router.
- admin_
state_ boolup - Specifies if the router is administratively up.
- list(string)
- All tags of the router.
- availability_
zone_ list(string)hints - Pool segments requested for allocating the 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.
- external_
fixed_ list(object)ips - Gateway addresses of the router.
- external_
network_ stringid - Unique identifier of the external network the gateway is attached to.
- ha bool
- Specifies if the router runs in high availability mode.
- id string
- Unique identifier of the router.
- 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. - region string
- Pool where the router is located, for example,
ru-6. Learn more about available pools in Product availability by location. - router_
id string - Unique identifier of the router. To get the router ID, in the Control panel, go to Products ⟶ Cloud Servers ⟶ Network ⟶ the Cloud routers tab ⟶ copy the ID in the card of the required router.
- routes list(object)
- Static routes of the router.
- status string
- Status of the router.
- list(string)
- Tags of the router.
- admin
State BooleanUp - Specifies if the router is administratively up.
- List<String>
- All tags of the router.
- availability
Zone List<String>Hints - Pool segments requested for allocating the 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.
- external
Fixed List<GetIps Vpc Router V2External Fixed Ip> - Gateway addresses of the router.
- external
Network StringId - Unique identifier of the external network the gateway is attached to.
- ha Boolean
- Specifies if the router runs in high availability mode.
- id String
- Unique identifier of the router.
- 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. - region String
- Pool where the router is located, for example,
ru-6. Learn more about available pools in Product availability by location. - router
Id String - Unique identifier of the router. To get the router ID, in the Control panel, go to Products ⟶ Cloud Servers ⟶ Network ⟶ the Cloud routers tab ⟶ copy the ID in the card of the required router.
- routes
List<Get
Vpc Router V2Route> - Static routes of the router.
- status String
- Status of the router.
- List<String>
- Tags of the router.
- admin
State booleanUp - Specifies if the router is administratively up.
- string[]
- All tags of the router.
- availability
Zone string[]Hints - Pool segments requested for allocating the 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.
- external
Fixed GetIps Vpc Router V2External Fixed Ip[] - Gateway addresses of the router.
- external
Network stringId - Unique identifier of the external network the gateway is attached to.
- ha boolean
- Specifies if the router runs in high availability mode.
- id string
- Unique identifier of the router.
- 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. - region string
- Pool where the router is located, for example,
ru-6. Learn more about available pools in Product availability by location. - router
Id string - Unique identifier of the router. To get the router ID, in the Control panel, go to Products ⟶ Cloud Servers ⟶ Network ⟶ the Cloud routers tab ⟶ copy the ID in the card of the required router.
- routes
Get
Vpc Router V2Route[] - Static routes of the router.
- status string
- Status of the router.
- string[]
- Tags of the router.
- admin_
state_ boolup - Specifies if the router is administratively up.
- Sequence[str]
- All tags of the router.
- availability_
zone_ Sequence[str]hints - Pool segments requested for allocating the 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.
- external_
fixed_ Sequence[Getips Vpc Router V2External Fixed Ip] - Gateway addresses of the router.
- external_
network_ strid - Unique identifier of the external network the gateway is attached to.
- ha bool
- Specifies if the router runs in high availability mode.
- id str
- Unique identifier of the router.
- 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. - region str
- Pool where the router is located, for example,
ru-6. Learn more about available pools in Product availability by location. - router_
id str - Unique identifier of the router. To get the router ID, in the Control panel, go to Products ⟶ Cloud Servers ⟶ Network ⟶ the Cloud routers tab ⟶ copy the ID in the card of the required router.
- routes
Sequence[Get
Vpc Router V2Route] - Static routes of the router.
- status str
- Status of the router.
- Sequence[str]
- Tags of the router.
- admin
State BooleanUp - Specifies if the router is administratively up.
- List<String>
- All tags of the router.
- availability
Zone List<String>Hints - Pool segments requested for allocating the 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.
- 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.
- ha Boolean
- Specifies if the router runs in high availability mode.
- id String
- Unique identifier of the router.
- 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. - region String
- Pool where the router is located, for example,
ru-6. Learn more about available pools in Product availability by location. - router
Id String - Unique identifier of the router. To get the router ID, in the Control panel, go to Products ⟶ Cloud Servers ⟶ Network ⟶ the Cloud routers tab ⟶ copy the ID in the card of the required router.
- routes List<Property Map>
- Static routes of the router.
- status String
- Status of the router.
- List<String>
- Tags of the router.
Supporting Types
GetVpcRouterV2ExternalFixedIp
- ip_
address string - subnet_
id string
- ip_
address str - subnet_
id str
GetVpcRouterV2Route
- Destination
Cidr string - Next
Hop string
- Destination
Cidr string - Next
Hop string
- destination_
cidr string - next_
hop string
- destination
Cidr String - next
Hop String
- destination
Cidr string - next
Hop string
- destination_
cidr str - next_
hop str
- destination
Cidr String - next
Hop String
Package Details
- Repository
- selectel selectel/terraform-provider-selectel
- License
- Notes
- This Pulumi package is based on the
selectelTerraform Provider.
selectel
Viewing docs for selectel 9.5.0
published on Friday, Oct 30, 2026 by selectel
published on Friday, Oct 30, 2026 by selectel