published on Thursday, Mar 26, 2026 by opentelekomcloud
published on Thursday, Mar 26, 2026 by opentelekomcloud
Up-to-date reference of API arguments for VPC route table you can get at documentation portal
Manages an individual route within a VPC route table. This resource allows managing routes independently of the route table lifecycle, including adding routes to the default route table.
Example Usage
Route on Default Route Table
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const vpc1 = new opentelekomcloud.VpcV1("vpc_1", {
name: "vpc-1",
cidr: "192.168.0.0/16",
});
const vpc2 = new opentelekomcloud.VpcV1("vpc_2", {
name: "vpc-2",
cidr: "172.16.0.0/16",
});
const peering = new opentelekomcloud.VpcPeeringConnectionV2("peering", {
name: "my_peering",
vpcId: vpc1.vpcV1Id,
peerVpcId: vpc2.vpcV1Id,
});
const route = new opentelekomcloud.VpcRouteTableRouteV1("route", {
vpcId: vpc1.vpcV1Id,
destination: "172.16.0.0/16",
type: "peering",
nexthop: peering.vpcPeeringConnectionV2Id,
description: "peering route",
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
vpc1 = opentelekomcloud.VpcV1("vpc_1",
name="vpc-1",
cidr="192.168.0.0/16")
vpc2 = opentelekomcloud.VpcV1("vpc_2",
name="vpc-2",
cidr="172.16.0.0/16")
peering = opentelekomcloud.VpcPeeringConnectionV2("peering",
name="my_peering",
vpc_id=vpc1.vpc_v1_id,
peer_vpc_id=vpc2.vpc_v1_id)
route = opentelekomcloud.VpcRouteTableRouteV1("route",
vpc_id=vpc1.vpc_v1_id,
destination="172.16.0.0/16",
type="peering",
nexthop=peering.vpc_peering_connection_v2_id,
description="peering route")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
vpc1, err := opentelekomcloud.NewVpcV1(ctx, "vpc_1", &opentelekomcloud.VpcV1Args{
Name: pulumi.String("vpc-1"),
Cidr: pulumi.String("192.168.0.0/16"),
})
if err != nil {
return err
}
vpc2, err := opentelekomcloud.NewVpcV1(ctx, "vpc_2", &opentelekomcloud.VpcV1Args{
Name: pulumi.String("vpc-2"),
Cidr: pulumi.String("172.16.0.0/16"),
})
if err != nil {
return err
}
peering, err := opentelekomcloud.NewVpcPeeringConnectionV2(ctx, "peering", &opentelekomcloud.VpcPeeringConnectionV2Args{
Name: pulumi.String("my_peering"),
VpcId: vpc1.VpcV1Id,
PeerVpcId: vpc2.VpcV1Id,
})
if err != nil {
return err
}
_, err = opentelekomcloud.NewVpcRouteTableRouteV1(ctx, "route", &opentelekomcloud.VpcRouteTableRouteV1Args{
VpcId: vpc1.VpcV1Id,
Destination: pulumi.String("172.16.0.0/16"),
Type: pulumi.String("peering"),
Nexthop: peering.VpcPeeringConnectionV2Id,
Description: pulumi.String("peering route"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var vpc1 = new Opentelekomcloud.VpcV1("vpc_1", new()
{
Name = "vpc-1",
Cidr = "192.168.0.0/16",
});
var vpc2 = new Opentelekomcloud.VpcV1("vpc_2", new()
{
Name = "vpc-2",
Cidr = "172.16.0.0/16",
});
var peering = new Opentelekomcloud.VpcPeeringConnectionV2("peering", new()
{
Name = "my_peering",
VpcId = vpc1.VpcV1Id,
PeerVpcId = vpc2.VpcV1Id,
});
var route = new Opentelekomcloud.VpcRouteTableRouteV1("route", new()
{
VpcId = vpc1.VpcV1Id,
Destination = "172.16.0.0/16",
Type = "peering",
Nexthop = peering.VpcPeeringConnectionV2Id,
Description = "peering route",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.VpcV1;
import com.pulumi.opentelekomcloud.VpcV1Args;
import com.pulumi.opentelekomcloud.VpcPeeringConnectionV2;
import com.pulumi.opentelekomcloud.VpcPeeringConnectionV2Args;
import com.pulumi.opentelekomcloud.VpcRouteTableRouteV1;
import com.pulumi.opentelekomcloud.VpcRouteTableRouteV1Args;
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 vpc1 = new VpcV1("vpc1", VpcV1Args.builder()
.name("vpc-1")
.cidr("192.168.0.0/16")
.build());
var vpc2 = new VpcV1("vpc2", VpcV1Args.builder()
.name("vpc-2")
.cidr("172.16.0.0/16")
.build());
var peering = new VpcPeeringConnectionV2("peering", VpcPeeringConnectionV2Args.builder()
.name("my_peering")
.vpcId(vpc1.vpcV1Id())
.peerVpcId(vpc2.vpcV1Id())
.build());
var route = new VpcRouteTableRouteV1("route", VpcRouteTableRouteV1Args.builder()
.vpcId(vpc1.vpcV1Id())
.destination("172.16.0.0/16")
.type("peering")
.nexthop(peering.vpcPeeringConnectionV2Id())
.description("peering route")
.build());
}
}
resources:
vpc1:
type: opentelekomcloud:VpcV1
name: vpc_1
properties:
name: vpc-1
cidr: 192.168.0.0/16
vpc2:
type: opentelekomcloud:VpcV1
name: vpc_2
properties:
name: vpc-2
cidr: 172.16.0.0/16
peering:
type: opentelekomcloud:VpcPeeringConnectionV2
properties:
name: my_peering
vpcId: ${vpc1.vpcV1Id}
peerVpcId: ${vpc2.vpcV1Id}
route:
type: opentelekomcloud:VpcRouteTableRouteV1
properties:
vpcId: ${vpc1.vpcV1Id}
destination: 172.16.0.0/16
type: peering
nexthop: ${peering.vpcPeeringConnectionV2Id}
description: peering route
Route on Custom Route Table
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const vpc1 = new opentelekomcloud.VpcV1("vpc_1", {
name: "vpc-1",
cidr: "192.168.0.0/16",
});
const vpc2 = new opentelekomcloud.VpcV1("vpc_2", {
name: "vpc-2",
cidr: "172.16.0.0/16",
});
const peering = new opentelekomcloud.VpcPeeringConnectionV2("peering", {
name: "my_peering",
vpcId: vpc1.vpcV1Id,
peerVpcId: vpc2.vpcV1Id,
});
const table = new opentelekomcloud.VpcRouteTableV1("table", {
name: "my_table",
vpcId: vpc1.vpcV1Id,
});
const route = new opentelekomcloud.VpcRouteTableRouteV1("route", {
vpcId: vpc1.vpcV1Id,
routeTableId: table.vpcRouteTableV1Id,
destination: "172.16.0.0/16",
type: "peering",
nexthop: peering.vpcPeeringConnectionV2Id,
description: "peering route on custom table",
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
vpc1 = opentelekomcloud.VpcV1("vpc_1",
name="vpc-1",
cidr="192.168.0.0/16")
vpc2 = opentelekomcloud.VpcV1("vpc_2",
name="vpc-2",
cidr="172.16.0.0/16")
peering = opentelekomcloud.VpcPeeringConnectionV2("peering",
name="my_peering",
vpc_id=vpc1.vpc_v1_id,
peer_vpc_id=vpc2.vpc_v1_id)
table = opentelekomcloud.VpcRouteTableV1("table",
name="my_table",
vpc_id=vpc1.vpc_v1_id)
route = opentelekomcloud.VpcRouteTableRouteV1("route",
vpc_id=vpc1.vpc_v1_id,
route_table_id=table.vpc_route_table_v1_id,
destination="172.16.0.0/16",
type="peering",
nexthop=peering.vpc_peering_connection_v2_id,
description="peering route on custom table")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
vpc1, err := opentelekomcloud.NewVpcV1(ctx, "vpc_1", &opentelekomcloud.VpcV1Args{
Name: pulumi.String("vpc-1"),
Cidr: pulumi.String("192.168.0.0/16"),
})
if err != nil {
return err
}
vpc2, err := opentelekomcloud.NewVpcV1(ctx, "vpc_2", &opentelekomcloud.VpcV1Args{
Name: pulumi.String("vpc-2"),
Cidr: pulumi.String("172.16.0.0/16"),
})
if err != nil {
return err
}
peering, err := opentelekomcloud.NewVpcPeeringConnectionV2(ctx, "peering", &opentelekomcloud.VpcPeeringConnectionV2Args{
Name: pulumi.String("my_peering"),
VpcId: vpc1.VpcV1Id,
PeerVpcId: vpc2.VpcV1Id,
})
if err != nil {
return err
}
table, err := opentelekomcloud.NewVpcRouteTableV1(ctx, "table", &opentelekomcloud.VpcRouteTableV1Args{
Name: pulumi.String("my_table"),
VpcId: vpc1.VpcV1Id,
})
if err != nil {
return err
}
_, err = opentelekomcloud.NewVpcRouteTableRouteV1(ctx, "route", &opentelekomcloud.VpcRouteTableRouteV1Args{
VpcId: vpc1.VpcV1Id,
RouteTableId: table.VpcRouteTableV1Id,
Destination: pulumi.String("172.16.0.0/16"),
Type: pulumi.String("peering"),
Nexthop: peering.VpcPeeringConnectionV2Id,
Description: pulumi.String("peering route on custom table"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var vpc1 = new Opentelekomcloud.VpcV1("vpc_1", new()
{
Name = "vpc-1",
Cidr = "192.168.0.0/16",
});
var vpc2 = new Opentelekomcloud.VpcV1("vpc_2", new()
{
Name = "vpc-2",
Cidr = "172.16.0.0/16",
});
var peering = new Opentelekomcloud.VpcPeeringConnectionV2("peering", new()
{
Name = "my_peering",
VpcId = vpc1.VpcV1Id,
PeerVpcId = vpc2.VpcV1Id,
});
var table = new Opentelekomcloud.VpcRouteTableV1("table", new()
{
Name = "my_table",
VpcId = vpc1.VpcV1Id,
});
var route = new Opentelekomcloud.VpcRouteTableRouteV1("route", new()
{
VpcId = vpc1.VpcV1Id,
RouteTableId = table.VpcRouteTableV1Id,
Destination = "172.16.0.0/16",
Type = "peering",
Nexthop = peering.VpcPeeringConnectionV2Id,
Description = "peering route on custom table",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.VpcV1;
import com.pulumi.opentelekomcloud.VpcV1Args;
import com.pulumi.opentelekomcloud.VpcPeeringConnectionV2;
import com.pulumi.opentelekomcloud.VpcPeeringConnectionV2Args;
import com.pulumi.opentelekomcloud.VpcRouteTableV1;
import com.pulumi.opentelekomcloud.VpcRouteTableV1Args;
import com.pulumi.opentelekomcloud.VpcRouteTableRouteV1;
import com.pulumi.opentelekomcloud.VpcRouteTableRouteV1Args;
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 vpc1 = new VpcV1("vpc1", VpcV1Args.builder()
.name("vpc-1")
.cidr("192.168.0.0/16")
.build());
var vpc2 = new VpcV1("vpc2", VpcV1Args.builder()
.name("vpc-2")
.cidr("172.16.0.0/16")
.build());
var peering = new VpcPeeringConnectionV2("peering", VpcPeeringConnectionV2Args.builder()
.name("my_peering")
.vpcId(vpc1.vpcV1Id())
.peerVpcId(vpc2.vpcV1Id())
.build());
var table = new VpcRouteTableV1("table", VpcRouteTableV1Args.builder()
.name("my_table")
.vpcId(vpc1.vpcV1Id())
.build());
var route = new VpcRouteTableRouteV1("route", VpcRouteTableRouteV1Args.builder()
.vpcId(vpc1.vpcV1Id())
.routeTableId(table.vpcRouteTableV1Id())
.destination("172.16.0.0/16")
.type("peering")
.nexthop(peering.vpcPeeringConnectionV2Id())
.description("peering route on custom table")
.build());
}
}
resources:
vpc1:
type: opentelekomcloud:VpcV1
name: vpc_1
properties:
name: vpc-1
cidr: 192.168.0.0/16
vpc2:
type: opentelekomcloud:VpcV1
name: vpc_2
properties:
name: vpc-2
cidr: 172.16.0.0/16
peering:
type: opentelekomcloud:VpcPeeringConnectionV2
properties:
name: my_peering
vpcId: ${vpc1.vpcV1Id}
peerVpcId: ${vpc2.vpcV1Id}
table:
type: opentelekomcloud:VpcRouteTableV1
properties:
name: my_table
vpcId: ${vpc1.vpcV1Id}
route:
type: opentelekomcloud:VpcRouteTableRouteV1
properties:
vpcId: ${vpc1.vpcV1Id}
routeTableId: ${table.vpcRouteTableV1Id}
destination: 172.16.0.0/16
type: peering
nexthop: ${peering.vpcPeeringConnectionV2Id}
description: peering route on custom table
Create VpcRouteTableRouteV1 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpcRouteTableRouteV1(name: string, args: VpcRouteTableRouteV1Args, opts?: CustomResourceOptions);@overload
def VpcRouteTableRouteV1(resource_name: str,
args: VpcRouteTableRouteV1Args,
opts: Optional[ResourceOptions] = None)
@overload
def VpcRouteTableRouteV1(resource_name: str,
opts: Optional[ResourceOptions] = None,
destination: Optional[str] = None,
nexthop: Optional[str] = None,
type: Optional[str] = None,
vpc_id: Optional[str] = None,
description: Optional[str] = None,
region: Optional[str] = None,
route_table_id: Optional[str] = None,
vpc_route_table_route_v1_id: Optional[str] = None)func NewVpcRouteTableRouteV1(ctx *Context, name string, args VpcRouteTableRouteV1Args, opts ...ResourceOption) (*VpcRouteTableRouteV1, error)public VpcRouteTableRouteV1(string name, VpcRouteTableRouteV1Args args, CustomResourceOptions? opts = null)
public VpcRouteTableRouteV1(String name, VpcRouteTableRouteV1Args args)
public VpcRouteTableRouteV1(String name, VpcRouteTableRouteV1Args args, CustomResourceOptions options)
type: opentelekomcloud:VpcRouteTableRouteV1
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args VpcRouteTableRouteV1Args
- 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 VpcRouteTableRouteV1Args
- 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 VpcRouteTableRouteV1Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpcRouteTableRouteV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpcRouteTableRouteV1Args
- 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 vpcRouteTableRouteV1Resource = new Opentelekomcloud.VpcRouteTableRouteV1("vpcRouteTableRouteV1Resource", new()
{
Destination = "string",
Nexthop = "string",
Type = "string",
VpcId = "string",
Description = "string",
Region = "string",
RouteTableId = "string",
VpcRouteTableRouteV1Id = "string",
});
example, err := opentelekomcloud.NewVpcRouteTableRouteV1(ctx, "vpcRouteTableRouteV1Resource", &opentelekomcloud.VpcRouteTableRouteV1Args{
Destination: pulumi.String("string"),
Nexthop: pulumi.String("string"),
Type: pulumi.String("string"),
VpcId: pulumi.String("string"),
Description: pulumi.String("string"),
Region: pulumi.String("string"),
RouteTableId: pulumi.String("string"),
VpcRouteTableRouteV1Id: pulumi.String("string"),
})
var vpcRouteTableRouteV1Resource = new VpcRouteTableRouteV1("vpcRouteTableRouteV1Resource", VpcRouteTableRouteV1Args.builder()
.destination("string")
.nexthop("string")
.type("string")
.vpcId("string")
.description("string")
.region("string")
.routeTableId("string")
.vpcRouteTableRouteV1Id("string")
.build());
vpc_route_table_route_v1_resource = opentelekomcloud.VpcRouteTableRouteV1("vpcRouteTableRouteV1Resource",
destination="string",
nexthop="string",
type="string",
vpc_id="string",
description="string",
region="string",
route_table_id="string",
vpc_route_table_route_v1_id="string")
const vpcRouteTableRouteV1Resource = new opentelekomcloud.VpcRouteTableRouteV1("vpcRouteTableRouteV1Resource", {
destination: "string",
nexthop: "string",
type: "string",
vpcId: "string",
description: "string",
region: "string",
routeTableId: "string",
vpcRouteTableRouteV1Id: "string",
});
type: opentelekomcloud:VpcRouteTableRouteV1
properties:
description: string
destination: string
nexthop: string
region: string
routeTableId: string
type: string
vpcId: string
vpcRouteTableRouteV1Id: string
VpcRouteTableRouteV1 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 VpcRouteTableRouteV1 resource accepts the following input properties:
- Destination string
- Specifies the destination address in the CIDR notation format, for example, 192.168.200.0/24. The destination of each route must be unique and cannot overlap with any subnet in the VPC. Changing this creates a new resource.
- Nexthop string
- Specifies the next hop.
- If the route type is ecs, the value is an ECS instance ID in the VPC.
- If the route type is eni, the value is the extension NIC of an ECS in the VPC.
- If the route type is vip, the value is a virtual IP address.
- If the route type is nat, the value is a NAT gateway ID.
- If the route type is peering, the value is a VPC peering connection ID.
- If the route type is vpn, the value is a VPN gateway ID.
- If the route type is dc, the value is a Direct Connect gateway ID.
- If the route type is egw, the value is a VPC endpoint ID.
- If the route type is er, the value is the ID of an enterprise router.
- If the route type is subeni, the value is the ID of a supplementary network interface.
- Type string
- Specifies the route type. Currently, the value can be: ecs, eni, vip, nat, peering, vpn, dc, egw, er, subeni and local
- Vpc
Id string - Specifies the VPC ID that the route table belongs to. Changing this creates a new resource.
- Description string
- Specifies the supplementary information about the route. The value is a string of no more than 255 characters and cannot contain angle brackets (< or >).
- Region string
- The region in which to create the route. If omitted, the provider-level region will be used. Changing this creates a new resource.
- Route
Table stringId - Specifies the route table ID. If omitted, the default route table of the VPC will be used. Changing this creates a new resource.
- Vpc
Route stringTable Route V1Id - The resource ID in format
{route_table_id}/{destination}.
- Destination string
- Specifies the destination address in the CIDR notation format, for example, 192.168.200.0/24. The destination of each route must be unique and cannot overlap with any subnet in the VPC. Changing this creates a new resource.
- Nexthop string
- Specifies the next hop.
- If the route type is ecs, the value is an ECS instance ID in the VPC.
- If the route type is eni, the value is the extension NIC of an ECS in the VPC.
- If the route type is vip, the value is a virtual IP address.
- If the route type is nat, the value is a NAT gateway ID.
- If the route type is peering, the value is a VPC peering connection ID.
- If the route type is vpn, the value is a VPN gateway ID.
- If the route type is dc, the value is a Direct Connect gateway ID.
- If the route type is egw, the value is a VPC endpoint ID.
- If the route type is er, the value is the ID of an enterprise router.
- If the route type is subeni, the value is the ID of a supplementary network interface.
- Type string
- Specifies the route type. Currently, the value can be: ecs, eni, vip, nat, peering, vpn, dc, egw, er, subeni and local
- Vpc
Id string - Specifies the VPC ID that the route table belongs to. Changing this creates a new resource.
- Description string
- Specifies the supplementary information about the route. The value is a string of no more than 255 characters and cannot contain angle brackets (< or >).
- Region string
- The region in which to create the route. If omitted, the provider-level region will be used. Changing this creates a new resource.
- Route
Table stringId - Specifies the route table ID. If omitted, the default route table of the VPC will be used. Changing this creates a new resource.
- Vpc
Route stringTable Route V1Id - The resource ID in format
{route_table_id}/{destination}.
- destination String
- Specifies the destination address in the CIDR notation format, for example, 192.168.200.0/24. The destination of each route must be unique and cannot overlap with any subnet in the VPC. Changing this creates a new resource.
- nexthop String
- Specifies the next hop.
- If the route type is ecs, the value is an ECS instance ID in the VPC.
- If the route type is eni, the value is the extension NIC of an ECS in the VPC.
- If the route type is vip, the value is a virtual IP address.
- If the route type is nat, the value is a NAT gateway ID.
- If the route type is peering, the value is a VPC peering connection ID.
- If the route type is vpn, the value is a VPN gateway ID.
- If the route type is dc, the value is a Direct Connect gateway ID.
- If the route type is egw, the value is a VPC endpoint ID.
- If the route type is er, the value is the ID of an enterprise router.
- If the route type is subeni, the value is the ID of a supplementary network interface.
- type String
- Specifies the route type. Currently, the value can be: ecs, eni, vip, nat, peering, vpn, dc, egw, er, subeni and local
- vpc
Id String - Specifies the VPC ID that the route table belongs to. Changing this creates a new resource.
- description String
- Specifies the supplementary information about the route. The value is a string of no more than 255 characters and cannot contain angle brackets (< or >).
- region String
- The region in which to create the route. If omitted, the provider-level region will be used. Changing this creates a new resource.
- route
Table StringId - Specifies the route table ID. If omitted, the default route table of the VPC will be used. Changing this creates a new resource.
- vpc
Route StringTable Route V1Id - The resource ID in format
{route_table_id}/{destination}.
- destination string
- Specifies the destination address in the CIDR notation format, for example, 192.168.200.0/24. The destination of each route must be unique and cannot overlap with any subnet in the VPC. Changing this creates a new resource.
- nexthop string
- Specifies the next hop.
- If the route type is ecs, the value is an ECS instance ID in the VPC.
- If the route type is eni, the value is the extension NIC of an ECS in the VPC.
- If the route type is vip, the value is a virtual IP address.
- If the route type is nat, the value is a NAT gateway ID.
- If the route type is peering, the value is a VPC peering connection ID.
- If the route type is vpn, the value is a VPN gateway ID.
- If the route type is dc, the value is a Direct Connect gateway ID.
- If the route type is egw, the value is a VPC endpoint ID.
- If the route type is er, the value is the ID of an enterprise router.
- If the route type is subeni, the value is the ID of a supplementary network interface.
- type string
- Specifies the route type. Currently, the value can be: ecs, eni, vip, nat, peering, vpn, dc, egw, er, subeni and local
- vpc
Id string - Specifies the VPC ID that the route table belongs to. Changing this creates a new resource.
- description string
- Specifies the supplementary information about the route. The value is a string of no more than 255 characters and cannot contain angle brackets (< or >).
- region string
- The region in which to create the route. If omitted, the provider-level region will be used. Changing this creates a new resource.
- route
Table stringId - Specifies the route table ID. If omitted, the default route table of the VPC will be used. Changing this creates a new resource.
- vpc
Route stringTable Route V1Id - The resource ID in format
{route_table_id}/{destination}.
- destination str
- Specifies the destination address in the CIDR notation format, for example, 192.168.200.0/24. The destination of each route must be unique and cannot overlap with any subnet in the VPC. Changing this creates a new resource.
- nexthop str
- Specifies the next hop.
- If the route type is ecs, the value is an ECS instance ID in the VPC.
- If the route type is eni, the value is the extension NIC of an ECS in the VPC.
- If the route type is vip, the value is a virtual IP address.
- If the route type is nat, the value is a NAT gateway ID.
- If the route type is peering, the value is a VPC peering connection ID.
- If the route type is vpn, the value is a VPN gateway ID.
- If the route type is dc, the value is a Direct Connect gateway ID.
- If the route type is egw, the value is a VPC endpoint ID.
- If the route type is er, the value is the ID of an enterprise router.
- If the route type is subeni, the value is the ID of a supplementary network interface.
- type str
- Specifies the route type. Currently, the value can be: ecs, eni, vip, nat, peering, vpn, dc, egw, er, subeni and local
- vpc_
id str - Specifies the VPC ID that the route table belongs to. Changing this creates a new resource.
- description str
- Specifies the supplementary information about the route. The value is a string of no more than 255 characters and cannot contain angle brackets (< or >).
- region str
- The region in which to create the route. If omitted, the provider-level region will be used. Changing this creates a new resource.
- route_
table_ strid - Specifies the route table ID. If omitted, the default route table of the VPC will be used. Changing this creates a new resource.
- vpc_
route_ strtable_ route_ v1_ id - The resource ID in format
{route_table_id}/{destination}.
- destination String
- Specifies the destination address in the CIDR notation format, for example, 192.168.200.0/24. The destination of each route must be unique and cannot overlap with any subnet in the VPC. Changing this creates a new resource.
- nexthop String
- Specifies the next hop.
- If the route type is ecs, the value is an ECS instance ID in the VPC.
- If the route type is eni, the value is the extension NIC of an ECS in the VPC.
- If the route type is vip, the value is a virtual IP address.
- If the route type is nat, the value is a NAT gateway ID.
- If the route type is peering, the value is a VPC peering connection ID.
- If the route type is vpn, the value is a VPN gateway ID.
- If the route type is dc, the value is a Direct Connect gateway ID.
- If the route type is egw, the value is a VPC endpoint ID.
- If the route type is er, the value is the ID of an enterprise router.
- If the route type is subeni, the value is the ID of a supplementary network interface.
- type String
- Specifies the route type. Currently, the value can be: ecs, eni, vip, nat, peering, vpn, dc, egw, er, subeni and local
- vpc
Id String - Specifies the VPC ID that the route table belongs to. Changing this creates a new resource.
- description String
- Specifies the supplementary information about the route. The value is a string of no more than 255 characters and cannot contain angle brackets (< or >).
- region String
- The region in which to create the route. If omitted, the provider-level region will be used. Changing this creates a new resource.
- route
Table StringId - Specifies the route table ID. If omitted, the default route table of the VPC will be used. Changing this creates a new resource.
- vpc
Route StringTable Route V1Id - The resource ID in format
{route_table_id}/{destination}.
Outputs
All input properties are implicitly available as output properties. Additionally, the VpcRouteTableRouteV1 resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Route
Table stringName - The name of the route table.
- Id string
- The provider-assigned unique ID for this managed resource.
- Route
Table stringName - The name of the route table.
- id String
- The provider-assigned unique ID for this managed resource.
- route
Table StringName - The name of the route table.
- id string
- The provider-assigned unique ID for this managed resource.
- route
Table stringName - The name of the route table.
- id str
- The provider-assigned unique ID for this managed resource.
- route_
table_ strname - The name of the route table.
- id String
- The provider-assigned unique ID for this managed resource.
- route
Table StringName - The name of the route table.
Look up Existing VpcRouteTableRouteV1 Resource
Get an existing VpcRouteTableRouteV1 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?: VpcRouteTableRouteV1State, opts?: CustomResourceOptions): VpcRouteTableRouteV1@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
destination: Optional[str] = None,
nexthop: Optional[str] = None,
region: Optional[str] = None,
route_table_id: Optional[str] = None,
route_table_name: Optional[str] = None,
type: Optional[str] = None,
vpc_id: Optional[str] = None,
vpc_route_table_route_v1_id: Optional[str] = None) -> VpcRouteTableRouteV1func GetVpcRouteTableRouteV1(ctx *Context, name string, id IDInput, state *VpcRouteTableRouteV1State, opts ...ResourceOption) (*VpcRouteTableRouteV1, error)public static VpcRouteTableRouteV1 Get(string name, Input<string> id, VpcRouteTableRouteV1State? state, CustomResourceOptions? opts = null)public static VpcRouteTableRouteV1 get(String name, Output<String> id, VpcRouteTableRouteV1State state, CustomResourceOptions options)resources: _: type: opentelekomcloud:VpcRouteTableRouteV1 get: 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.
- Description string
- Specifies the supplementary information about the route. The value is a string of no more than 255 characters and cannot contain angle brackets (< or >).
- Destination string
- Specifies the destination address in the CIDR notation format, for example, 192.168.200.0/24. The destination of each route must be unique and cannot overlap with any subnet in the VPC. Changing this creates a new resource.
- Nexthop string
- Specifies the next hop.
- If the route type is ecs, the value is an ECS instance ID in the VPC.
- If the route type is eni, the value is the extension NIC of an ECS in the VPC.
- If the route type is vip, the value is a virtual IP address.
- If the route type is nat, the value is a NAT gateway ID.
- If the route type is peering, the value is a VPC peering connection ID.
- If the route type is vpn, the value is a VPN gateway ID.
- If the route type is dc, the value is a Direct Connect gateway ID.
- If the route type is egw, the value is a VPC endpoint ID.
- If the route type is er, the value is the ID of an enterprise router.
- If the route type is subeni, the value is the ID of a supplementary network interface.
- Region string
- The region in which to create the route. If omitted, the provider-level region will be used. Changing this creates a new resource.
- Route
Table stringId - Specifies the route table ID. If omitted, the default route table of the VPC will be used. Changing this creates a new resource.
- Route
Table stringName - The name of the route table.
- Type string
- Specifies the route type. Currently, the value can be: ecs, eni, vip, nat, peering, vpn, dc, egw, er, subeni and local
- Vpc
Id string - Specifies the VPC ID that the route table belongs to. Changing this creates a new resource.
- Vpc
Route stringTable Route V1Id - The resource ID in format
{route_table_id}/{destination}.
- Description string
- Specifies the supplementary information about the route. The value is a string of no more than 255 characters and cannot contain angle brackets (< or >).
- Destination string
- Specifies the destination address in the CIDR notation format, for example, 192.168.200.0/24. The destination of each route must be unique and cannot overlap with any subnet in the VPC. Changing this creates a new resource.
- Nexthop string
- Specifies the next hop.
- If the route type is ecs, the value is an ECS instance ID in the VPC.
- If the route type is eni, the value is the extension NIC of an ECS in the VPC.
- If the route type is vip, the value is a virtual IP address.
- If the route type is nat, the value is a NAT gateway ID.
- If the route type is peering, the value is a VPC peering connection ID.
- If the route type is vpn, the value is a VPN gateway ID.
- If the route type is dc, the value is a Direct Connect gateway ID.
- If the route type is egw, the value is a VPC endpoint ID.
- If the route type is er, the value is the ID of an enterprise router.
- If the route type is subeni, the value is the ID of a supplementary network interface.
- Region string
- The region in which to create the route. If omitted, the provider-level region will be used. Changing this creates a new resource.
- Route
Table stringId - Specifies the route table ID. If omitted, the default route table of the VPC will be used. Changing this creates a new resource.
- Route
Table stringName - The name of the route table.
- Type string
- Specifies the route type. Currently, the value can be: ecs, eni, vip, nat, peering, vpn, dc, egw, er, subeni and local
- Vpc
Id string - Specifies the VPC ID that the route table belongs to. Changing this creates a new resource.
- Vpc
Route stringTable Route V1Id - The resource ID in format
{route_table_id}/{destination}.
- description String
- Specifies the supplementary information about the route. The value is a string of no more than 255 characters and cannot contain angle brackets (< or >).
- destination String
- Specifies the destination address in the CIDR notation format, for example, 192.168.200.0/24. The destination of each route must be unique and cannot overlap with any subnet in the VPC. Changing this creates a new resource.
- nexthop String
- Specifies the next hop.
- If the route type is ecs, the value is an ECS instance ID in the VPC.
- If the route type is eni, the value is the extension NIC of an ECS in the VPC.
- If the route type is vip, the value is a virtual IP address.
- If the route type is nat, the value is a NAT gateway ID.
- If the route type is peering, the value is a VPC peering connection ID.
- If the route type is vpn, the value is a VPN gateway ID.
- If the route type is dc, the value is a Direct Connect gateway ID.
- If the route type is egw, the value is a VPC endpoint ID.
- If the route type is er, the value is the ID of an enterprise router.
- If the route type is subeni, the value is the ID of a supplementary network interface.
- region String
- The region in which to create the route. If omitted, the provider-level region will be used. Changing this creates a new resource.
- route
Table StringId - Specifies the route table ID. If omitted, the default route table of the VPC will be used. Changing this creates a new resource.
- route
Table StringName - The name of the route table.
- type String
- Specifies the route type. Currently, the value can be: ecs, eni, vip, nat, peering, vpn, dc, egw, er, subeni and local
- vpc
Id String - Specifies the VPC ID that the route table belongs to. Changing this creates a new resource.
- vpc
Route StringTable Route V1Id - The resource ID in format
{route_table_id}/{destination}.
- description string
- Specifies the supplementary information about the route. The value is a string of no more than 255 characters and cannot contain angle brackets (< or >).
- destination string
- Specifies the destination address in the CIDR notation format, for example, 192.168.200.0/24. The destination of each route must be unique and cannot overlap with any subnet in the VPC. Changing this creates a new resource.
- nexthop string
- Specifies the next hop.
- If the route type is ecs, the value is an ECS instance ID in the VPC.
- If the route type is eni, the value is the extension NIC of an ECS in the VPC.
- If the route type is vip, the value is a virtual IP address.
- If the route type is nat, the value is a NAT gateway ID.
- If the route type is peering, the value is a VPC peering connection ID.
- If the route type is vpn, the value is a VPN gateway ID.
- If the route type is dc, the value is a Direct Connect gateway ID.
- If the route type is egw, the value is a VPC endpoint ID.
- If the route type is er, the value is the ID of an enterprise router.
- If the route type is subeni, the value is the ID of a supplementary network interface.
- region string
- The region in which to create the route. If omitted, the provider-level region will be used. Changing this creates a new resource.
- route
Table stringId - Specifies the route table ID. If omitted, the default route table of the VPC will be used. Changing this creates a new resource.
- route
Table stringName - The name of the route table.
- type string
- Specifies the route type. Currently, the value can be: ecs, eni, vip, nat, peering, vpn, dc, egw, er, subeni and local
- vpc
Id string - Specifies the VPC ID that the route table belongs to. Changing this creates a new resource.
- vpc
Route stringTable Route V1Id - The resource ID in format
{route_table_id}/{destination}.
- description str
- Specifies the supplementary information about the route. The value is a string of no more than 255 characters and cannot contain angle brackets (< or >).
- destination str
- Specifies the destination address in the CIDR notation format, for example, 192.168.200.0/24. The destination of each route must be unique and cannot overlap with any subnet in the VPC. Changing this creates a new resource.
- nexthop str
- Specifies the next hop.
- If the route type is ecs, the value is an ECS instance ID in the VPC.
- If the route type is eni, the value is the extension NIC of an ECS in the VPC.
- If the route type is vip, the value is a virtual IP address.
- If the route type is nat, the value is a NAT gateway ID.
- If the route type is peering, the value is a VPC peering connection ID.
- If the route type is vpn, the value is a VPN gateway ID.
- If the route type is dc, the value is a Direct Connect gateway ID.
- If the route type is egw, the value is a VPC endpoint ID.
- If the route type is er, the value is the ID of an enterprise router.
- If the route type is subeni, the value is the ID of a supplementary network interface.
- region str
- The region in which to create the route. If omitted, the provider-level region will be used. Changing this creates a new resource.
- route_
table_ strid - Specifies the route table ID. If omitted, the default route table of the VPC will be used. Changing this creates a new resource.
- route_
table_ strname - The name of the route table.
- type str
- Specifies the route type. Currently, the value can be: ecs, eni, vip, nat, peering, vpn, dc, egw, er, subeni and local
- vpc_
id str - Specifies the VPC ID that the route table belongs to. Changing this creates a new resource.
- vpc_
route_ strtable_ route_ v1_ id - The resource ID in format
{route_table_id}/{destination}.
- description String
- Specifies the supplementary information about the route. The value is a string of no more than 255 characters and cannot contain angle brackets (< or >).
- destination String
- Specifies the destination address in the CIDR notation format, for example, 192.168.200.0/24. The destination of each route must be unique and cannot overlap with any subnet in the VPC. Changing this creates a new resource.
- nexthop String
- Specifies the next hop.
- If the route type is ecs, the value is an ECS instance ID in the VPC.
- If the route type is eni, the value is the extension NIC of an ECS in the VPC.
- If the route type is vip, the value is a virtual IP address.
- If the route type is nat, the value is a NAT gateway ID.
- If the route type is peering, the value is a VPC peering connection ID.
- If the route type is vpn, the value is a VPN gateway ID.
- If the route type is dc, the value is a Direct Connect gateway ID.
- If the route type is egw, the value is a VPC endpoint ID.
- If the route type is er, the value is the ID of an enterprise router.
- If the route type is subeni, the value is the ID of a supplementary network interface.
- region String
- The region in which to create the route. If omitted, the provider-level region will be used. Changing this creates a new resource.
- route
Table StringId - Specifies the route table ID. If omitted, the default route table of the VPC will be used. Changing this creates a new resource.
- route
Table StringName - The name of the route table.
- type String
- Specifies the route type. Currently, the value can be: ecs, eni, vip, nat, peering, vpn, dc, egw, er, subeni and local
- vpc
Id String - Specifies the VPC ID that the route table belongs to. Changing this creates a new resource.
- vpc
Route StringTable Route V1Id - The resource ID in format
{route_table_id}/{destination}.
Import
Routes can be imported using the route table ID and destination, separated by a slash, e.g.
-> NOTE: The import ID contains the route table UUID followed by a / and the CIDR destination
(which itself contains a /), e.g. <route_table_id>/<cidr_destination>.
$ pulumi import opentelekomcloud:index/vpcRouteTableRouteV1:VpcRouteTableRouteV1 route 14c6491a-f90a-41aa-a206-f58bbacdb47d/172.16.0.0/16
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloudTerraform Provider.
published on Thursday, Mar 26, 2026 by opentelekomcloud
