title: "RouteTable" title_tag: "huaweicloud.Vpc.RouteTable" meta_desc: "Documentation for the huaweicloud.Vpc.RouteTable resource with examples, input properties, output properties, lookup functions, and supporting types." layout: api no_edit_this_page: true
Manages a VPC custom route table resource within HuaweiCloud.
NOTE: To use a custom route table, you need to submit a service ticket to increase quota.
Basic Custom Route Table
using System.Collections.Generic;
using Pulumi;
using Huaweicloud = Pulumi.Huaweicloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var vpcId = config.RequireObject<dynamic>("vpcId");
var vpcPeeringId = config.RequireObject<dynamic>("vpcPeeringId");
var demo = new Huaweicloud.Vpc.RouteTable("demo", new()
{
VpcId = vpcId,
Description = "a custom route table demo",
Routes = new[]
{
new Huaweicloud.Vpc.Inputs.RouteTableRouteArgs
{
Destination = "172.16.0.0/16",
Type = "peering",
Nexthop = vpcPeeringId,
},
},
});
});
package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Vpc"
"github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
vpcId := cfg.RequireObject("vpcId")
vpcPeeringId := cfg.RequireObject("vpcPeeringId")
_, err := Vpc.NewRouteTable(ctx, "demo", &Vpc.RouteTableArgs{
VpcId: pulumi.Any(vpcId),
Description: pulumi.String("a custom route table demo"),
Routes: vpc.RouteTableRouteArray{
&vpc.RouteTableRouteArgs{
Destination: pulumi.String("172.16.0.0/16"),
Type: pulumi.String("peering"),
Nexthop: pulumi.Any(vpcPeeringId),
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.huaweicloud.Vpc.RouteTable;
import com.pulumi.huaweicloud.Vpc.RouteTableArgs;
import com.pulumi.huaweicloud.Vpc.inputs.RouteTableRouteArgs;
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 config = ctx.config();
final var vpcId = config.get("vpcId");
final var vpcPeeringId = config.get("vpcPeeringId");
var demo = new RouteTable("demo", RouteTableArgs.builder()
.vpcId(vpcId)
.description("a custom route table demo")
.routes(RouteTableRouteArgs.builder()
.destination("172.16.0.0/16")
.type("peering")
.nexthop(vpcPeeringId)
.build())
.build());
}
}
import pulumi
import pulumi_huaweicloud as huaweicloud
config = pulumi.Config()
vpc_id = config.require_object("vpcId")
vpc_peering_id = config.require_object("vpcPeeringId")
demo = huaweicloud.vpc.RouteTable("demo",
vpc_id=vpc_id,
description="a custom route table demo",
routes=[huaweicloud.vpc.RouteTableRouteArgs(
destination="172.16.0.0/16",
type="peering",
nexthop=vpc_peering_id,
)])
import * as pulumi from "@pulumi/pulumi";
import * as pulumi from "@huaweicloudos/pulumi";
const config = new pulumi.Config();
const vpcId = config.requireObject("vpcId");
const vpcPeeringId = config.requireObject("vpcPeeringId");
const demo = new huaweicloud.vpc.RouteTable("demo", {
vpcId: vpcId,
description: "a custom route table demo",
routes: [{
destination: "172.16.0.0/16",
type: "peering",
nexthop: vpcPeeringId,
}],
});
configuration:
vpcId:
type: dynamic
vpcPeeringId:
type: dynamic
resources:
demo:
type: huaweicloud:Vpc:RouteTable
properties:
vpcId: ${vpcId}
description: a custom route table demo
routes:
- destination: 172.16.0.0/16
type: peering
nexthop: ${vpcPeeringId}
Associating Subnets with a Route Table
using System.Collections.Generic;
using Pulumi;
using Huaweicloud = Pulumi.Huaweicloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var vpcId = config.RequireObject<dynamic>("vpcId");
var vpcPeeringId = config.RequireObject<dynamic>("vpcPeeringId");
var subnetIds = Huaweicloud.Vpc.GetSubnetIds.Invoke(new()
{
VpcId = vpcId,
});
var demo = new Huaweicloud.Vpc.RouteTable("demo", new()
{
VpcId = vpcId,
Subnets = subnetIds.Apply(getSubnetIdsResult => getSubnetIdsResult.Ids),
Routes = new[]
{
new Huaweicloud.Vpc.Inputs.RouteTableRouteArgs
{
Destination = "172.16.0.0/16",
Type = "peering",
Nexthop = vpcPeeringId,
},
new Huaweicloud.Vpc.Inputs.RouteTableRouteArgs
{
Destination = "192.168.100.0/24",
Type = "vip",
Nexthop = "192.168.10.200",
},
},
});
});
package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Vpc"
"github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
vpcId := cfg.RequireObject("vpcId")
vpcPeeringId := cfg.RequireObject("vpcPeeringId")
subnetIds, err := Vpc.GetSubnetIds(ctx, &vpc.GetSubnetIdsArgs{
VpcId: vpcId,
}, nil)
if err != nil {
return err
}
_, err = Vpc.NewRouteTable(ctx, "demo", &Vpc.RouteTableArgs{
VpcId: pulumi.Any(vpcId),
Subnets: interface{}(subnetIds.Ids),
Routes: vpc.RouteTableRouteArray{
&vpc.RouteTableRouteArgs{
Destination: pulumi.String("172.16.0.0/16"),
Type: pulumi.String("peering"),
Nexthop: pulumi.Any(vpcPeeringId),
},
&vpc.RouteTableRouteArgs{
Destination: pulumi.String("192.168.100.0/24"),
Type: pulumi.String("vip"),
Nexthop: pulumi.String("192.168.10.200"),
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.huaweicloud.Vpc.VpcFunctions;
import com.pulumi.huaweicloud.Vpc.inputs.GetSubnetIdsArgs;
import com.pulumi.huaweicloud.Vpc.RouteTable;
import com.pulumi.huaweicloud.Vpc.RouteTableArgs;
import com.pulumi.huaweicloud.Vpc.inputs.RouteTableRouteArgs;
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 config = ctx.config();
final var vpcId = config.get("vpcId");
final var vpcPeeringId = config.get("vpcPeeringId");
final var subnetIds = VpcFunctions.getSubnetIds(GetSubnetIdsArgs.builder()
.vpcId(vpcId)
.build());
var demo = new RouteTable("demo", RouteTableArgs.builder()
.vpcId(vpcId)
.subnets(subnetIds.applyValue(getSubnetIdsResult -> getSubnetIdsResult.ids()))
.routes(
RouteTableRouteArgs.builder()
.destination("172.16.0.0/16")
.type("peering")
.nexthop(vpcPeeringId)
.build(),
RouteTableRouteArgs.builder()
.destination("192.168.100.0/24")
.type("vip")
.nexthop("192.168.10.200")
.build())
.build());
}
}
import pulumi
import pulumi_huaweicloud as huaweicloud
config = pulumi.Config()
vpc_id = config.require_object("vpcId")
vpc_peering_id = config.require_object("vpcPeeringId")
subnet_ids = huaweicloud.Vpc.get_subnet_ids(vpc_id=vpc_id)
demo = huaweicloud.vpc.RouteTable("demo",
vpc_id=vpc_id,
subnets=subnet_ids.ids,
routes=[
huaweicloud.vpc.RouteTableRouteArgs(
destination="172.16.0.0/16",
type="peering",
nexthop=vpc_peering_id,
),
huaweicloud.vpc.RouteTableRouteArgs(
destination="192.168.100.0/24",
type="vip",
nexthop="192.168.10.200",
),
])
import * as pulumi from "@pulumi/pulumi";
import * as huaweicloud from "@pulumi/huaweicloud";
import * as pulumi from "@huaweicloudos/pulumi";
const config = new pulumi.Config();
const vpcId = config.requireObject("vpcId");
const vpcPeeringId = config.requireObject("vpcPeeringId");
const subnetIds = huaweicloud.Vpc.getSubnetIds({
vpcId: vpcId,
});
const demo = new huaweicloud.vpc.RouteTable("demo", {
vpcId: vpcId,
subnets: subnetIds.then(subnetIds => subnetIds.ids),
routes: [
{
destination: "172.16.0.0/16",
type: "peering",
nexthop: vpcPeeringId,
},
{
destination: "192.168.100.0/24",
type: "vip",
nexthop: "192.168.10.200",
},
],
});
configuration:
vpcId:
type: dynamic
vpcPeeringId:
type: dynamic
resources:
demo:
type: huaweicloud:Vpc:RouteTable
properties:
vpcId: ${vpcId}
subnets: ${subnetIds.ids}
routes:
- destination: 172.16.0.0/16
type: peering
nexthop: ${vpcPeeringId}
- destination: 192.168.100.0/24
type: vip
nexthop: 192.168.10.200
variables:
subnetIds:
Fn::Invoke:
Function: huaweicloud:Vpc:getSubnetIds
Arguments:
vpcId: ${vpcId}
Create RouteTable Resource {#create}
new RouteTable(name: string, args: RouteTableArgs, opts?: CustomResourceOptions);
@overload
def RouteTable(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
routes: Optional[Sequence[_vpc.RouteTableRouteArgs]] = None,
subnets: Optional[Sequence[str]] = None,
vpc_id: Optional[str] = None)
@overload
def RouteTable(resource_name: str,
args: RouteTableArgs,
opts: Optional[ResourceOptions] = None)
func NewRouteTable(ctx *Context, name string, args RouteTableArgs, opts ...ResourceOption) (*RouteTable, error)
public RouteTable(string name, RouteTableArgs args, CustomResourceOptions? opts = null)
public RouteTable(String name, RouteTableArgs args)
public RouteTable(String name, RouteTableArgs args, CustomResourceOptions options)
type: huaweicloud:Vpc:RouteTable
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RouteTableArgs
- 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 RouteTableArgs
- 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 RouteTableArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RouteTableArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RouteTableArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
RouteTable Resource Properties {#properties}
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The RouteTable resource accepts the following input properties:
-
Vpc
Id string - Specifies the VPC ID for which a route table is to be added. 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 >).
- Name string
- Specifies the route table name. The value is a string of no more than 64 characters that can contain letters, digits, underscores (_), hyphens (-), and periods (.).
- Region string
The region in which to create the vpc route table. If omitted, the provider-level region will be used. Changing this creates a new resource.
-
Routes
List<Route
Table Route Args> - Specifies the route object list. The route object is documented below.
- Subnets List<string>
- Specifies an array of one or more subnets associating with the route table.
-
Vpc
Id string - Specifies the VPC ID for which a route table is to be added. 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 >).
- Name string
- Specifies the route table name. The value is a string of no more than 64 characters that can contain letters, digits, underscores (_), hyphens (-), and periods (.).
- Region string
The region in which to create the vpc route table. If omitted, the provider-level region will be used. Changing this creates a new resource.
-
Routes
[]Route
Table Route Args - Specifies the route object list. The route object is documented below.
- Subnets []string
- Specifies an array of one or more subnets associating with the route table.
-
vpc
Id String - Specifies the VPC ID for which a route table is to be added. 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 >).
- name String
- Specifies the route table name. The value is a string of no more than 64 characters that can contain letters, digits, underscores (_), hyphens (-), and periods (.).
- region String
The region in which to create the vpc route table. If omitted, the provider-level region will be used. Changing this creates a new resource.
-
routes
List<Route
Table Route Args> - Specifies the route object list. The route object is documented below.
- subnets List<String>
- Specifies an array of one or more subnets associating with the route table.
-
vpc
Id string - Specifies the VPC ID for which a route table is to be added. 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 >).
- name string
- Specifies the route table name. The value is a string of no more than 64 characters that can contain letters, digits, underscores (_), hyphens (-), and periods (.).
- region string
The region in which to create the vpc route table. If omitted, the provider-level region will be used. Changing this creates a new resource.
-
routes
Route
Table Route Args[] - Specifies the route object list. The route object is documented below.
- subnets string[]
- Specifies an array of one or more subnets associating with the route table.
-
vpc_
id str - Specifies the VPC ID for which a route table is to be added. 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 >).
- name str
- Specifies the route table name. The value is a string of no more than 64 characters that can contain letters, digits, underscores (_), hyphens (-), and periods (.).
- region str
The region in which to create the vpc route table. If omitted, the provider-level region will be used. Changing this creates a new resource.
-
routes
Route
Table Route Args] - Specifies the route object list. The route object is documented below.
- subnets Sequence[str]
- Specifies an array of one or more subnets associating with the route table.
-
vpc
Id String - Specifies the VPC ID for which a route table is to be added. 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 >).
- name String
- Specifies the route table name. The value is a string of no more than 64 characters that can contain letters, digits, underscores (_), hyphens (-), and periods (.).
- region String
The region in which to create the vpc route table. If omitted, the provider-level region will be used. Changing this creates a new resource.
- routes List<Property Map>
- Specifies the route object list. The route object is documented below.
- subnets List<String>
- Specifies an array of one or more subnets associating with the route table.
Outputs
All input properties are implicitly available as output properties. Additionally, the RouteTable resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing RouteTable Resource {#look-up}
Get an existing RouteTable 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?: RouteTableState, opts?: CustomResourceOptions): RouteTable
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
routes: Optional[Sequence[_vpc.RouteTableRouteArgs]] = None,
subnets: Optional[Sequence[str]] = None,
vpc_id: Optional[str] = None) -> RouteTable
func GetRouteTable(ctx *Context, name string, id IDInput, state *RouteTableState, opts ...ResourceOption) (*RouteTable, error)
public static RouteTable Get(string name, Input<string> id, RouteTableState? state, CustomResourceOptions? opts = null)
public static RouteTable get(String name, Output<String> id, RouteTableState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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 >).
- Name string
- Specifies the route table name. The value is a string of no more than 64 characters that can contain letters, digits, underscores (_), hyphens (-), and periods (.).
- Region string
The region in which to create the vpc route table. If omitted, the provider-level region will be used. Changing this creates a new resource.
-
Routes
List<Route
Table Route Args> - Specifies the route object list. The route object is documented below.
- Subnets List<string>
- Specifies an array of one or more subnets associating with the route table.
-
Vpc
Id string - Specifies the VPC ID for which a route table is to be added. 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 >).
- Name string
- Specifies the route table name. The value is a string of no more than 64 characters that can contain letters, digits, underscores (_), hyphens (-), and periods (.).
- Region string
The region in which to create the vpc route table. If omitted, the provider-level region will be used. Changing this creates a new resource.
-
Routes
[]Route
Table Route Args - Specifies the route object list. The route object is documented below.
- Subnets []string
- Specifies an array of one or more subnets associating with the route table.
-
Vpc
Id string - Specifies the VPC ID for which a route table is to be added. 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 >).
- name String
- Specifies the route table name. The value is a string of no more than 64 characters that can contain letters, digits, underscores (_), hyphens (-), and periods (.).
- region String
The region in which to create the vpc route table. If omitted, the provider-level region will be used. Changing this creates a new resource.
-
routes
List<Route
Table Route Args> - Specifies the route object list. The route object is documented below.
- subnets List<String>
- Specifies an array of one or more subnets associating with the route table.
-
vpc
Id String - Specifies the VPC ID for which a route table is to be added. 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 >).
- name string
- Specifies the route table name. The value is a string of no more than 64 characters that can contain letters, digits, underscores (_), hyphens (-), and periods (.).
- region string
The region in which to create the vpc route table. If omitted, the provider-level region will be used. Changing this creates a new resource.
-
routes
Route
Table Route Args[] - Specifies the route object list. The route object is documented below.
- subnets string[]
- Specifies an array of one or more subnets associating with the route table.
-
vpc
Id string - Specifies the VPC ID for which a route table is to be added. 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 >).
- name str
- Specifies the route table name. The value is a string of no more than 64 characters that can contain letters, digits, underscores (_), hyphens (-), and periods (.).
- region str
The region in which to create the vpc route table. If omitted, the provider-level region will be used. Changing this creates a new resource.
-
routes
Route
Table Route Args] - Specifies the route object list. The route object is documented below.
- subnets Sequence[str]
- Specifies an array of one or more subnets associating with the route table.
-
vpc_
id str - Specifies the VPC ID for which a route table is to be added. 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 >).
- name String
- Specifies the route table name. The value is a string of no more than 64 characters that can contain letters, digits, underscores (_), hyphens (-), and periods (.).
- region String
The region in which to create the vpc route table. If omitted, the provider-level region will be used. Changing this creates a new resource.
- routes List<Property Map>
- Specifies the route object list. The route object is documented below.
- subnets List<String>
- Specifies an array of one or more subnets associating with the route table.
-
vpc
Id String - Specifies the VPC ID for which a route table is to be added. Changing this creates a new resource.
Supporting Types
RouteTableRoute
- 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.
- 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 VPN 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 cc, the value is a Cloud Connection ID.
- Type string
- Specifies the route type. Currently, the value can be: ecs, eni, vip, nat, peering, vpn, dc and cc.
- 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.
- 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 VPN 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 cc, the value is a Cloud Connection ID.
- Type string
- Specifies the route type. Currently, the value can be: ecs, eni, vip, nat, peering, vpn, dc and cc.
- 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.
- 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 VPN 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 cc, the value is a Cloud Connection ID.
- type String
- Specifies the route type. Currently, the value can be: ecs, eni, vip, nat, peering, vpn, dc and cc.
- 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.
- 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 VPN 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 cc, the value is a Cloud Connection ID.
- type string
- Specifies the route type. Currently, the value can be: ecs, eni, vip, nat, peering, vpn, dc and cc.
- 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 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.
- 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 VPN 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 cc, the value is a Cloud Connection ID.
- type str
- Specifies the route type. Currently, the value can be: ecs, eni, vip, nat, peering, vpn, dc and cc.
- 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 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.
- 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 VPN 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 cc, the value is a Cloud Connection ID.
- type String
- Specifies the route type. Currently, the value can be: ecs, eni, vip, nat, peering, vpn, dc and cc.
- 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 >).
Import
vpc route tables can be imported using the id
, e.g.
$ pulumi import huaweicloud:Vpc/routeTable:RouteTable demo e1b3208a-544b-42a7-84e6-5d70371dd982
Package Details
- Repository
- https://github.com/huaweicloud/pulumi-huaweicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
huaweicloud
Terraform Provider.