1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. VpcRouteTableV1
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.VpcRouteTableV1

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for VPC route table you can get at documentation portal

    Provides a resource to create a route table within OpenTelekomCloud.

    Example Usage

    Basic Custom Route Table

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const vpc1 = new opentelekomcloud.VpcV1("vpc1", {cidr: "192.168.0.0/16"});
    const subnet1_1 = new opentelekomcloud.VpcSubnetV1("subnet1-1", {
        cidr: "192.168.0.0/24",
        gatewayIp: "192.168.0.1",
        vpcId: vpc1.vpcV1Id,
    });
    const subnet1_2 = new opentelekomcloud.VpcSubnetV1("subnet1-2", {
        cidr: "192.168.10.0/24",
        gatewayIp: "192.168.10.1",
        vpcId: vpc1.vpcV1Id,
    });
    const vpc2 = new opentelekomcloud.VpcV1("vpc2", {cidr: "172.16.0.0/16"});
    const subnet2_1 = new opentelekomcloud.VpcSubnetV1("subnet2-1", {
        cidr: "172.16.10.0/24",
        gatewayIp: "172.16.10.1",
        vpcId: vpc2.vpcV1Id,
    });
    const peering = new opentelekomcloud.VpcPeeringConnectionV2("peering", {
        vpcId: vpc1.vpcV1Id,
        peerVpcId: vpc2.vpcV1Id,
    });
    const table1 = new opentelekomcloud.VpcRouteTableV1("table1", {
        vpcId: vpc1.vpcV1Id,
        description: "created by terraform with routes",
        routes: [{
            destination: "172.16.0.0/16",
            type: "peering",
            nexthop: peering.vpcPeeringConnectionV2Id,
            description: "peering rule",
        }],
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    vpc1 = opentelekomcloud.VpcV1("vpc1", cidr="192.168.0.0/16")
    subnet1_1 = opentelekomcloud.VpcSubnetV1("subnet1-1",
        cidr="192.168.0.0/24",
        gateway_ip="192.168.0.1",
        vpc_id=vpc1.vpc_v1_id)
    subnet1_2 = opentelekomcloud.VpcSubnetV1("subnet1-2",
        cidr="192.168.10.0/24",
        gateway_ip="192.168.10.1",
        vpc_id=vpc1.vpc_v1_id)
    vpc2 = opentelekomcloud.VpcV1("vpc2", cidr="172.16.0.0/16")
    subnet2_1 = opentelekomcloud.VpcSubnetV1("subnet2-1",
        cidr="172.16.10.0/24",
        gateway_ip="172.16.10.1",
        vpc_id=vpc2.vpc_v1_id)
    peering = opentelekomcloud.VpcPeeringConnectionV2("peering",
        vpc_id=vpc1.vpc_v1_id,
        peer_vpc_id=vpc2.vpc_v1_id)
    table1 = opentelekomcloud.VpcRouteTableV1("table1",
        vpc_id=vpc1.vpc_v1_id,
        description="created by terraform with routes",
        routes=[{
            "destination": "172.16.0.0/16",
            "type": "peering",
            "nexthop": peering.vpc_peering_connection_v2_id,
            "description": "peering rule",
        }])
    
    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, "vpc1", &opentelekomcloud.VpcV1Args{
    			Cidr: pulumi.String("192.168.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = opentelekomcloud.NewVpcSubnetV1(ctx, "subnet1-1", &opentelekomcloud.VpcSubnetV1Args{
    			Cidr:      pulumi.String("192.168.0.0/24"),
    			GatewayIp: pulumi.String("192.168.0.1"),
    			VpcId:     vpc1.VpcV1Id,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = opentelekomcloud.NewVpcSubnetV1(ctx, "subnet1-2", &opentelekomcloud.VpcSubnetV1Args{
    			Cidr:      pulumi.String("192.168.10.0/24"),
    			GatewayIp: pulumi.String("192.168.10.1"),
    			VpcId:     vpc1.VpcV1Id,
    		})
    		if err != nil {
    			return err
    		}
    		vpc2, err := opentelekomcloud.NewVpcV1(ctx, "vpc2", &opentelekomcloud.VpcV1Args{
    			Cidr: pulumi.String("172.16.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = opentelekomcloud.NewVpcSubnetV1(ctx, "subnet2-1", &opentelekomcloud.VpcSubnetV1Args{
    			Cidr:      pulumi.String("172.16.10.0/24"),
    			GatewayIp: pulumi.String("172.16.10.1"),
    			VpcId:     vpc2.VpcV1Id,
    		})
    		if err != nil {
    			return err
    		}
    		peering, err := opentelekomcloud.NewVpcPeeringConnectionV2(ctx, "peering", &opentelekomcloud.VpcPeeringConnectionV2Args{
    			VpcId:     vpc1.VpcV1Id,
    			PeerVpcId: vpc2.VpcV1Id,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = opentelekomcloud.NewVpcRouteTableV1(ctx, "table1", &opentelekomcloud.VpcRouteTableV1Args{
    			VpcId:       vpc1.VpcV1Id,
    			Description: pulumi.String("created by terraform with routes"),
    			Routes: opentelekomcloud.VpcRouteTableV1RouteArray{
    				&opentelekomcloud.VpcRouteTableV1RouteArgs{
    					Destination: pulumi.String("172.16.0.0/16"),
    					Type:        pulumi.String("peering"),
    					Nexthop:     peering.VpcPeeringConnectionV2Id,
    					Description: pulumi.String("peering rule"),
    				},
    			},
    		})
    		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("vpc1", new()
        {
            Cidr = "192.168.0.0/16",
        });
    
        var subnet1_1 = new Opentelekomcloud.VpcSubnetV1("subnet1-1", new()
        {
            Cidr = "192.168.0.0/24",
            GatewayIp = "192.168.0.1",
            VpcId = vpc1.VpcV1Id,
        });
    
        var subnet1_2 = new Opentelekomcloud.VpcSubnetV1("subnet1-2", new()
        {
            Cidr = "192.168.10.0/24",
            GatewayIp = "192.168.10.1",
            VpcId = vpc1.VpcV1Id,
        });
    
        var vpc2 = new Opentelekomcloud.VpcV1("vpc2", new()
        {
            Cidr = "172.16.0.0/16",
        });
    
        var subnet2_1 = new Opentelekomcloud.VpcSubnetV1("subnet2-1", new()
        {
            Cidr = "172.16.10.0/24",
            GatewayIp = "172.16.10.1",
            VpcId = vpc2.VpcV1Id,
        });
    
        var peering = new Opentelekomcloud.VpcPeeringConnectionV2("peering", new()
        {
            VpcId = vpc1.VpcV1Id,
            PeerVpcId = vpc2.VpcV1Id,
        });
    
        var table1 = new Opentelekomcloud.VpcRouteTableV1("table1", new()
        {
            VpcId = vpc1.VpcV1Id,
            Description = "created by terraform with routes",
            Routes = new[]
            {
                new Opentelekomcloud.Inputs.VpcRouteTableV1RouteArgs
                {
                    Destination = "172.16.0.0/16",
                    Type = "peering",
                    Nexthop = peering.VpcPeeringConnectionV2Id,
                    Description = "peering rule",
                },
            },
        });
    
    });
    
    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.VpcSubnetV1;
    import com.pulumi.opentelekomcloud.VpcSubnetV1Args;
    import com.pulumi.opentelekomcloud.VpcPeeringConnectionV2;
    import com.pulumi.opentelekomcloud.VpcPeeringConnectionV2Args;
    import com.pulumi.opentelekomcloud.VpcRouteTableV1;
    import com.pulumi.opentelekomcloud.VpcRouteTableV1Args;
    import com.pulumi.opentelekomcloud.inputs.VpcRouteTableV1RouteArgs;
    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()
                .cidr("192.168.0.0/16")
                .build());
    
            var subnet1_1 = new VpcSubnetV1("subnet1-1", VpcSubnetV1Args.builder()
                .cidr("192.168.0.0/24")
                .gatewayIp("192.168.0.1")
                .vpcId(vpc1.vpcV1Id())
                .build());
    
            var subnet1_2 = new VpcSubnetV1("subnet1-2", VpcSubnetV1Args.builder()
                .cidr("192.168.10.0/24")
                .gatewayIp("192.168.10.1")
                .vpcId(vpc1.vpcV1Id())
                .build());
    
            var vpc2 = new VpcV1("vpc2", VpcV1Args.builder()
                .cidr("172.16.0.0/16")
                .build());
    
            var subnet2_1 = new VpcSubnetV1("subnet2-1", VpcSubnetV1Args.builder()
                .cidr("172.16.10.0/24")
                .gatewayIp("172.16.10.1")
                .vpcId(vpc2.vpcV1Id())
                .build());
    
            var peering = new VpcPeeringConnectionV2("peering", VpcPeeringConnectionV2Args.builder()
                .vpcId(vpc1.vpcV1Id())
                .peerVpcId(vpc2.vpcV1Id())
                .build());
    
            var table1 = new VpcRouteTableV1("table1", VpcRouteTableV1Args.builder()
                .vpcId(vpc1.vpcV1Id())
                .description("created by terraform with routes")
                .routes(VpcRouteTableV1RouteArgs.builder()
                    .destination("172.16.0.0/16")
                    .type("peering")
                    .nexthop(peering.vpcPeeringConnectionV2Id())
                    .description("peering rule")
                    .build())
                .build());
    
        }
    }
    
    resources:
      vpc1:
        type: opentelekomcloud:VpcV1
        properties:
          cidr: 192.168.0.0/16
      subnet1-1:
        type: opentelekomcloud:VpcSubnetV1
        properties:
          cidr: 192.168.0.0/24
          gatewayIp: 192.168.0.1
          vpcId: ${vpc1.vpcV1Id}
      subnet1-2:
        type: opentelekomcloud:VpcSubnetV1
        properties:
          cidr: 192.168.10.0/24
          gatewayIp: 192.168.10.1
          vpcId: ${vpc1.vpcV1Id}
      vpc2:
        type: opentelekomcloud:VpcV1
        properties:
          cidr: 172.16.0.0/16
      subnet2-1:
        type: opentelekomcloud:VpcSubnetV1
        properties:
          cidr: 172.16.10.0/24
          gatewayIp: 172.16.10.1
          vpcId: ${vpc2.vpcV1Id}
      peering:
        type: opentelekomcloud:VpcPeeringConnectionV2
        properties:
          vpcId: ${vpc1.vpcV1Id}
          peerVpcId: ${vpc2.vpcV1Id}
      table1:
        type: opentelekomcloud:VpcRouteTableV1
        properties:
          vpcId: ${vpc1.vpcV1Id}
          description: created by terraform with routes
          routes:
            - destination: 172.16.0.0/16
              type: peering
              nexthop: ${peering.vpcPeeringConnectionV2Id}
              description: peering rule
    

    Associating Subnets with a Route Table

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const vpc1 = new opentelekomcloud.VpcV1("vpc1", {cidr: "192.168.0.0/16"});
    const subnet1_1 = new opentelekomcloud.VpcSubnetV1("subnet1-1", {
        cidr: "192.168.0.0/24",
        gatewayIp: "192.168.0.1",
        vpcId: vpc1.vpcV1Id,
    });
    const subnet1_2 = new opentelekomcloud.VpcSubnetV1("subnet1-2", {
        cidr: "192.168.10.0/24",
        gatewayIp: "192.168.10.1",
        vpcId: vpc1.vpcV1Id,
    });
    const vpc2 = new opentelekomcloud.VpcV1("vpc2", {cidr: "172.16.0.0/16"});
    const subnet2_1 = new opentelekomcloud.VpcSubnetV1("subnet2-1", {
        cidr: "172.16.10.0/24",
        gatewayIp: "172.16.10.1",
        vpcId: vpc2.vpcV1Id,
    });
    const peering = new opentelekomcloud.VpcPeeringConnectionV2("peering", {
        vpcId: vpc1.vpcV1Id,
        peerVpcId: vpc2.vpcV1Id,
    });
    const table1 = new opentelekomcloud.VpcRouteTableV1("table1", {
        vpcId: vpc1.vpcV1Id,
        description: "created by terraform with subnets",
        subnets: [
            subnet1_1.vpcSubnetV1Id,
            subnet1_2.vpcSubnetV1Id,
        ],
        routes: [{
            destination: "172.16.0.0/16",
            type: "peering",
            nexthop: peering.vpcPeeringConnectionV2Id,
            description: "peering rule",
        }],
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    vpc1 = opentelekomcloud.VpcV1("vpc1", cidr="192.168.0.0/16")
    subnet1_1 = opentelekomcloud.VpcSubnetV1("subnet1-1",
        cidr="192.168.0.0/24",
        gateway_ip="192.168.0.1",
        vpc_id=vpc1.vpc_v1_id)
    subnet1_2 = opentelekomcloud.VpcSubnetV1("subnet1-2",
        cidr="192.168.10.0/24",
        gateway_ip="192.168.10.1",
        vpc_id=vpc1.vpc_v1_id)
    vpc2 = opentelekomcloud.VpcV1("vpc2", cidr="172.16.0.0/16")
    subnet2_1 = opentelekomcloud.VpcSubnetV1("subnet2-1",
        cidr="172.16.10.0/24",
        gateway_ip="172.16.10.1",
        vpc_id=vpc2.vpc_v1_id)
    peering = opentelekomcloud.VpcPeeringConnectionV2("peering",
        vpc_id=vpc1.vpc_v1_id,
        peer_vpc_id=vpc2.vpc_v1_id)
    table1 = opentelekomcloud.VpcRouteTableV1("table1",
        vpc_id=vpc1.vpc_v1_id,
        description="created by terraform with subnets",
        subnets=[
            subnet1_1.vpc_subnet_v1_id,
            subnet1_2.vpc_subnet_v1_id,
        ],
        routes=[{
            "destination": "172.16.0.0/16",
            "type": "peering",
            "nexthop": peering.vpc_peering_connection_v2_id,
            "description": "peering rule",
        }])
    
    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, "vpc1", &opentelekomcloud.VpcV1Args{
    			Cidr: pulumi.String("192.168.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		subnet1_1, err := opentelekomcloud.NewVpcSubnetV1(ctx, "subnet1-1", &opentelekomcloud.VpcSubnetV1Args{
    			Cidr:      pulumi.String("192.168.0.0/24"),
    			GatewayIp: pulumi.String("192.168.0.1"),
    			VpcId:     vpc1.VpcV1Id,
    		})
    		if err != nil {
    			return err
    		}
    		subnet1_2, err := opentelekomcloud.NewVpcSubnetV1(ctx, "subnet1-2", &opentelekomcloud.VpcSubnetV1Args{
    			Cidr:      pulumi.String("192.168.10.0/24"),
    			GatewayIp: pulumi.String("192.168.10.1"),
    			VpcId:     vpc1.VpcV1Id,
    		})
    		if err != nil {
    			return err
    		}
    		vpc2, err := opentelekomcloud.NewVpcV1(ctx, "vpc2", &opentelekomcloud.VpcV1Args{
    			Cidr: pulumi.String("172.16.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = opentelekomcloud.NewVpcSubnetV1(ctx, "subnet2-1", &opentelekomcloud.VpcSubnetV1Args{
    			Cidr:      pulumi.String("172.16.10.0/24"),
    			GatewayIp: pulumi.String("172.16.10.1"),
    			VpcId:     vpc2.VpcV1Id,
    		})
    		if err != nil {
    			return err
    		}
    		peering, err := opentelekomcloud.NewVpcPeeringConnectionV2(ctx, "peering", &opentelekomcloud.VpcPeeringConnectionV2Args{
    			VpcId:     vpc1.VpcV1Id,
    			PeerVpcId: vpc2.VpcV1Id,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = opentelekomcloud.NewVpcRouteTableV1(ctx, "table1", &opentelekomcloud.VpcRouteTableV1Args{
    			VpcId:       vpc1.VpcV1Id,
    			Description: pulumi.String("created by terraform with subnets"),
    			Subnets: pulumi.StringArray{
    				subnet1_1.VpcSubnetV1Id,
    				subnet1_2.VpcSubnetV1Id,
    			},
    			Routes: opentelekomcloud.VpcRouteTableV1RouteArray{
    				&opentelekomcloud.VpcRouteTableV1RouteArgs{
    					Destination: pulumi.String("172.16.0.0/16"),
    					Type:        pulumi.String("peering"),
    					Nexthop:     peering.VpcPeeringConnectionV2Id,
    					Description: pulumi.String("peering rule"),
    				},
    			},
    		})
    		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("vpc1", new()
        {
            Cidr = "192.168.0.0/16",
        });
    
        var subnet1_1 = new Opentelekomcloud.VpcSubnetV1("subnet1-1", new()
        {
            Cidr = "192.168.0.0/24",
            GatewayIp = "192.168.0.1",
            VpcId = vpc1.VpcV1Id,
        });
    
        var subnet1_2 = new Opentelekomcloud.VpcSubnetV1("subnet1-2", new()
        {
            Cidr = "192.168.10.0/24",
            GatewayIp = "192.168.10.1",
            VpcId = vpc1.VpcV1Id,
        });
    
        var vpc2 = new Opentelekomcloud.VpcV1("vpc2", new()
        {
            Cidr = "172.16.0.0/16",
        });
    
        var subnet2_1 = new Opentelekomcloud.VpcSubnetV1("subnet2-1", new()
        {
            Cidr = "172.16.10.0/24",
            GatewayIp = "172.16.10.1",
            VpcId = vpc2.VpcV1Id,
        });
    
        var peering = new Opentelekomcloud.VpcPeeringConnectionV2("peering", new()
        {
            VpcId = vpc1.VpcV1Id,
            PeerVpcId = vpc2.VpcV1Id,
        });
    
        var table1 = new Opentelekomcloud.VpcRouteTableV1("table1", new()
        {
            VpcId = vpc1.VpcV1Id,
            Description = "created by terraform with subnets",
            Subnets = new[]
            {
                subnet1_1.VpcSubnetV1Id,
                subnet1_2.VpcSubnetV1Id,
            },
            Routes = new[]
            {
                new Opentelekomcloud.Inputs.VpcRouteTableV1RouteArgs
                {
                    Destination = "172.16.0.0/16",
                    Type = "peering",
                    Nexthop = peering.VpcPeeringConnectionV2Id,
                    Description = "peering rule",
                },
            },
        });
    
    });
    
    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.VpcSubnetV1;
    import com.pulumi.opentelekomcloud.VpcSubnetV1Args;
    import com.pulumi.opentelekomcloud.VpcPeeringConnectionV2;
    import com.pulumi.opentelekomcloud.VpcPeeringConnectionV2Args;
    import com.pulumi.opentelekomcloud.VpcRouteTableV1;
    import com.pulumi.opentelekomcloud.VpcRouteTableV1Args;
    import com.pulumi.opentelekomcloud.inputs.VpcRouteTableV1RouteArgs;
    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()
                .cidr("192.168.0.0/16")
                .build());
    
            var subnet1_1 = new VpcSubnetV1("subnet1-1", VpcSubnetV1Args.builder()
                .cidr("192.168.0.0/24")
                .gatewayIp("192.168.0.1")
                .vpcId(vpc1.vpcV1Id())
                .build());
    
            var subnet1_2 = new VpcSubnetV1("subnet1-2", VpcSubnetV1Args.builder()
                .cidr("192.168.10.0/24")
                .gatewayIp("192.168.10.1")
                .vpcId(vpc1.vpcV1Id())
                .build());
    
            var vpc2 = new VpcV1("vpc2", VpcV1Args.builder()
                .cidr("172.16.0.0/16")
                .build());
    
            var subnet2_1 = new VpcSubnetV1("subnet2-1", VpcSubnetV1Args.builder()
                .cidr("172.16.10.0/24")
                .gatewayIp("172.16.10.1")
                .vpcId(vpc2.vpcV1Id())
                .build());
    
            var peering = new VpcPeeringConnectionV2("peering", VpcPeeringConnectionV2Args.builder()
                .vpcId(vpc1.vpcV1Id())
                .peerVpcId(vpc2.vpcV1Id())
                .build());
    
            var table1 = new VpcRouteTableV1("table1", VpcRouteTableV1Args.builder()
                .vpcId(vpc1.vpcV1Id())
                .description("created by terraform with subnets")
                .subnets(            
                    subnet1_1.vpcSubnetV1Id(),
                    subnet1_2.vpcSubnetV1Id())
                .routes(VpcRouteTableV1RouteArgs.builder()
                    .destination("172.16.0.0/16")
                    .type("peering")
                    .nexthop(peering.vpcPeeringConnectionV2Id())
                    .description("peering rule")
                    .build())
                .build());
    
        }
    }
    
    resources:
      vpc1:
        type: opentelekomcloud:VpcV1
        properties:
          cidr: 192.168.0.0/16
      subnet1-1:
        type: opentelekomcloud:VpcSubnetV1
        properties:
          cidr: 192.168.0.0/24
          gatewayIp: 192.168.0.1
          vpcId: ${vpc1.vpcV1Id}
      subnet1-2:
        type: opentelekomcloud:VpcSubnetV1
        properties:
          cidr: 192.168.10.0/24
          gatewayIp: 192.168.10.1
          vpcId: ${vpc1.vpcV1Id}
      vpc2:
        type: opentelekomcloud:VpcV1
        properties:
          cidr: 172.16.0.0/16
      subnet2-1:
        type: opentelekomcloud:VpcSubnetV1
        properties:
          cidr: 172.16.10.0/24
          gatewayIp: 172.16.10.1
          vpcId: ${vpc2.vpcV1Id}
      peering:
        type: opentelekomcloud:VpcPeeringConnectionV2
        properties:
          vpcId: ${vpc1.vpcV1Id}
          peerVpcId: ${vpc2.vpcV1Id}
      table1:
        type: opentelekomcloud:VpcRouteTableV1
        properties:
          vpcId: ${vpc1.vpcV1Id}
          description: created by terraform with subnets
          subnets:
            - ${["subnet1-1"].vpcSubnetV1Id}
            - ${["subnet1-2"].vpcSubnetV1Id}
          routes:
            - destination: 172.16.0.0/16
              type: peering
              nexthop: ${peering.vpcPeeringConnectionV2Id}
              description: peering rule
    

    Create VpcRouteTableV1 Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new VpcRouteTableV1(name: string, args: VpcRouteTableV1Args, opts?: CustomResourceOptions);
    @overload
    def VpcRouteTableV1(resource_name: str,
                        args: VpcRouteTableV1Args,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def VpcRouteTableV1(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        vpc_id: Optional[str] = None,
                        description: Optional[str] = None,
                        name: Optional[str] = None,
                        region: Optional[str] = None,
                        routes: Optional[Sequence[VpcRouteTableV1RouteArgs]] = None,
                        subnets: Optional[Sequence[str]] = None,
                        timeouts: Optional[VpcRouteTableV1TimeoutsArgs] = None,
                        vpc_route_table_v1_id: Optional[str] = None)
    func NewVpcRouteTableV1(ctx *Context, name string, args VpcRouteTableV1Args, opts ...ResourceOption) (*VpcRouteTableV1, error)
    public VpcRouteTableV1(string name, VpcRouteTableV1Args args, CustomResourceOptions? opts = null)
    public VpcRouteTableV1(String name, VpcRouteTableV1Args args)
    public VpcRouteTableV1(String name, VpcRouteTableV1Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:VpcRouteTableV1
    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 VpcRouteTableV1Args
    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 VpcRouteTableV1Args
    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 VpcRouteTableV1Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VpcRouteTableV1Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VpcRouteTableV1Args
    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 vpcRouteTableV1Resource = new Opentelekomcloud.VpcRouteTableV1("vpcRouteTableV1Resource", new()
    {
        VpcId = "string",
        Description = "string",
        Name = "string",
        Region = "string",
        Routes = new[]
        {
            new Opentelekomcloud.Inputs.VpcRouteTableV1RouteArgs
            {
                Destination = "string",
                Nexthop = "string",
                Type = "string",
                Description = "string",
            },
        },
        Subnets = new[]
        {
            "string",
        },
        Timeouts = new Opentelekomcloud.Inputs.VpcRouteTableV1TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
        VpcRouteTableV1Id = "string",
    });
    
    example, err := opentelekomcloud.NewVpcRouteTableV1(ctx, "vpcRouteTableV1Resource", &opentelekomcloud.VpcRouteTableV1Args{
    	VpcId:       pulumi.String("string"),
    	Description: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	Region:      pulumi.String("string"),
    	Routes: opentelekomcloud.VpcRouteTableV1RouteArray{
    		&opentelekomcloud.VpcRouteTableV1RouteArgs{
    			Destination: pulumi.String("string"),
    			Nexthop:     pulumi.String("string"),
    			Type:        pulumi.String("string"),
    			Description: pulumi.String("string"),
    		},
    	},
    	Subnets: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Timeouts: &opentelekomcloud.VpcRouteTableV1TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    	},
    	VpcRouteTableV1Id: pulumi.String("string"),
    })
    
    var vpcRouteTableV1Resource = new VpcRouteTableV1("vpcRouteTableV1Resource", VpcRouteTableV1Args.builder()
        .vpcId("string")
        .description("string")
        .name("string")
        .region("string")
        .routes(VpcRouteTableV1RouteArgs.builder()
            .destination("string")
            .nexthop("string")
            .type("string")
            .description("string")
            .build())
        .subnets("string")
        .timeouts(VpcRouteTableV1TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .vpcRouteTableV1Id("string")
        .build());
    
    vpc_route_table_v1_resource = opentelekomcloud.VpcRouteTableV1("vpcRouteTableV1Resource",
        vpc_id="string",
        description="string",
        name="string",
        region="string",
        routes=[{
            "destination": "string",
            "nexthop": "string",
            "type": "string",
            "description": "string",
        }],
        subnets=["string"],
        timeouts={
            "create": "string",
            "delete": "string",
        },
        vpc_route_table_v1_id="string")
    
    const vpcRouteTableV1Resource = new opentelekomcloud.VpcRouteTableV1("vpcRouteTableV1Resource", {
        vpcId: "string",
        description: "string",
        name: "string",
        region: "string",
        routes: [{
            destination: "string",
            nexthop: "string",
            type: "string",
            description: "string",
        }],
        subnets: ["string"],
        timeouts: {
            create: "string",
            "delete": "string",
        },
        vpcRouteTableV1Id: "string",
    });
    
    type: opentelekomcloud:VpcRouteTableV1
    properties:
        description: string
        name: string
        region: string
        routes:
            - description: string
              destination: string
              nexthop: string
              type: string
        subnets:
            - string
        timeouts:
            create: string
            delete: string
        vpcId: string
        vpcRouteTableV1Id: string
    

    VpcRouteTableV1 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 VpcRouteTableV1 resource accepts the following input properties:

    VpcId 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<VpcRouteTableV1Route>

    Specifies the route object list. The route object is documented below.

    The route block supports:

    Subnets List<string>

    Specifies an array of one or more subnets associating with the route table.

    NOTE: The custom route table associated with a subnet affects only the outbound traffic. The default route table determines the inbound traffic.

    Timeouts VpcRouteTableV1Timeouts
    VpcRouteTableV1Id string
    The resource ID in UUID format.
    VpcId 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 []VpcRouteTableV1RouteArgs

    Specifies the route object list. The route object is documented below.

    The route block supports:

    Subnets []string

    Specifies an array of one or more subnets associating with the route table.

    NOTE: The custom route table associated with a subnet affects only the outbound traffic. The default route table determines the inbound traffic.

    Timeouts VpcRouteTableV1TimeoutsArgs
    VpcRouteTableV1Id string
    The resource ID in UUID format.
    vpcId 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<VpcRouteTableV1Route>

    Specifies the route object list. The route object is documented below.

    The route block supports:

    subnets List<String>

    Specifies an array of one or more subnets associating with the route table.

    NOTE: The custom route table associated with a subnet affects only the outbound traffic. The default route table determines the inbound traffic.

    timeouts VpcRouteTableV1Timeouts
    vpcRouteTableV1Id String
    The resource ID in UUID format.
    vpcId 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 VpcRouteTableV1Route[]

    Specifies the route object list. The route object is documented below.

    The route block supports:

    subnets string[]

    Specifies an array of one or more subnets associating with the route table.

    NOTE: The custom route table associated with a subnet affects only the outbound traffic. The default route table determines the inbound traffic.

    timeouts VpcRouteTableV1Timeouts
    vpcRouteTableV1Id string
    The resource ID in UUID format.
    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 Sequence[VpcRouteTableV1RouteArgs]

    Specifies the route object list. The route object is documented below.

    The route block supports:

    subnets Sequence[str]

    Specifies an array of one or more subnets associating with the route table.

    NOTE: The custom route table associated with a subnet affects only the outbound traffic. The default route table determines the inbound traffic.

    timeouts VpcRouteTableV1TimeoutsArgs
    vpc_route_table_v1_id str
    The resource ID in UUID format.
    vpcId 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.

    The route block supports:

    subnets List<String>

    Specifies an array of one or more subnets associating with the route table.

    NOTE: The custom route table associated with a subnet affects only the outbound traffic. The default route table determines the inbound traffic.

    timeouts Property Map
    vpcRouteTableV1Id String
    The resource ID in UUID format.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VpcRouteTableV1 resource produces the following output properties:

    CreatedAt string
    Specifies the time (UTC) when the route table is created.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    Specifies the time (UTC) when the route table is updated.
    CreatedAt string
    Specifies the time (UTC) when the route table is created.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    Specifies the time (UTC) when the route table is updated.
    createdAt String
    Specifies the time (UTC) when the route table is created.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    Specifies the time (UTC) when the route table is updated.
    createdAt string
    Specifies the time (UTC) when the route table is created.
    id string
    The provider-assigned unique ID for this managed resource.
    updatedAt string
    Specifies the time (UTC) when the route table is updated.
    created_at str
    Specifies the time (UTC) when the route table is created.
    id str
    The provider-assigned unique ID for this managed resource.
    updated_at str
    Specifies the time (UTC) when the route table is updated.
    createdAt String
    Specifies the time (UTC) when the route table is created.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    Specifies the time (UTC) when the route table is updated.

    Look up Existing VpcRouteTableV1 Resource

    Get an existing VpcRouteTableV1 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?: VpcRouteTableV1State, opts?: CustomResourceOptions): VpcRouteTableV1
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_at: Optional[str] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            region: Optional[str] = None,
            routes: Optional[Sequence[VpcRouteTableV1RouteArgs]] = None,
            subnets: Optional[Sequence[str]] = None,
            timeouts: Optional[VpcRouteTableV1TimeoutsArgs] = None,
            updated_at: Optional[str] = None,
            vpc_id: Optional[str] = None,
            vpc_route_table_v1_id: Optional[str] = None) -> VpcRouteTableV1
    func GetVpcRouteTableV1(ctx *Context, name string, id IDInput, state *VpcRouteTableV1State, opts ...ResourceOption) (*VpcRouteTableV1, error)
    public static VpcRouteTableV1 Get(string name, Input<string> id, VpcRouteTableV1State? state, CustomResourceOptions? opts = null)
    public static VpcRouteTableV1 get(String name, Output<String> id, VpcRouteTableV1State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:VpcRouteTableV1    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.
    The following state arguments are supported:
    CreatedAt string
    Specifies the time (UTC) when the route table is created.
    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<VpcRouteTableV1Route>

    Specifies the route object list. The route object is documented below.

    The route block supports:

    Subnets List<string>

    Specifies an array of one or more subnets associating with the route table.

    NOTE: The custom route table associated with a subnet affects only the outbound traffic. The default route table determines the inbound traffic.

    Timeouts VpcRouteTableV1Timeouts
    UpdatedAt string
    Specifies the time (UTC) when the route table is updated.
    VpcId string
    Specifies the VPC ID for which a route table is to be added. Changing this creates a new resource.
    VpcRouteTableV1Id string
    The resource ID in UUID format.
    CreatedAt string
    Specifies the time (UTC) when the route table is created.
    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 []VpcRouteTableV1RouteArgs

    Specifies the route object list. The route object is documented below.

    The route block supports:

    Subnets []string

    Specifies an array of one or more subnets associating with the route table.

    NOTE: The custom route table associated with a subnet affects only the outbound traffic. The default route table determines the inbound traffic.

    Timeouts VpcRouteTableV1TimeoutsArgs
    UpdatedAt string
    Specifies the time (UTC) when the route table is updated.
    VpcId string
    Specifies the VPC ID for which a route table is to be added. Changing this creates a new resource.
    VpcRouteTableV1Id string
    The resource ID in UUID format.
    createdAt String
    Specifies the time (UTC) when the route table is created.
    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<VpcRouteTableV1Route>

    Specifies the route object list. The route object is documented below.

    The route block supports:

    subnets List<String>

    Specifies an array of one or more subnets associating with the route table.

    NOTE: The custom route table associated with a subnet affects only the outbound traffic. The default route table determines the inbound traffic.

    timeouts VpcRouteTableV1Timeouts
    updatedAt String
    Specifies the time (UTC) when the route table is updated.
    vpcId String
    Specifies the VPC ID for which a route table is to be added. Changing this creates a new resource.
    vpcRouteTableV1Id String
    The resource ID in UUID format.
    createdAt string
    Specifies the time (UTC) when the route table is created.
    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 VpcRouteTableV1Route[]

    Specifies the route object list. The route object is documented below.

    The route block supports:

    subnets string[]

    Specifies an array of one or more subnets associating with the route table.

    NOTE: The custom route table associated with a subnet affects only the outbound traffic. The default route table determines the inbound traffic.

    timeouts VpcRouteTableV1Timeouts
    updatedAt string
    Specifies the time (UTC) when the route table is updated.
    vpcId string
    Specifies the VPC ID for which a route table is to be added. Changing this creates a new resource.
    vpcRouteTableV1Id string
    The resource ID in UUID format.
    created_at str
    Specifies the time (UTC) when the route table is created.
    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 Sequence[VpcRouteTableV1RouteArgs]

    Specifies the route object list. The route object is documented below.

    The route block supports:

    subnets Sequence[str]

    Specifies an array of one or more subnets associating with the route table.

    NOTE: The custom route table associated with a subnet affects only the outbound traffic. The default route table determines the inbound traffic.

    timeouts VpcRouteTableV1TimeoutsArgs
    updated_at str
    Specifies the time (UTC) when the route table is updated.
    vpc_id str
    Specifies the VPC ID for which a route table is to be added. Changing this creates a new resource.
    vpc_route_table_v1_id str
    The resource ID in UUID format.
    createdAt String
    Specifies the time (UTC) when the route table is created.
    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.

    The route block supports:

    subnets List<String>

    Specifies an array of one or more subnets associating with the route table.

    NOTE: The custom route table associated with a subnet affects only the outbound traffic. The default route table determines the inbound traffic.

    timeouts Property Map
    updatedAt String
    Specifies the time (UTC) when the route table is updated.
    vpcId String
    Specifies the VPC ID for which a route table is to be added. Changing this creates a new resource.
    vpcRouteTableV1Id String
    The resource ID in UUID format.

    Supporting Types

    VpcRouteTableV1Route, VpcRouteTableV1RouteArgs

    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 >).

    VpcRouteTableV1Timeouts, VpcRouteTableV1TimeoutsArgs

    Create string
    Delete string
    Create string
    Delete string
    create String
    delete String
    create string
    delete string
    create str
    delete str
    create String
    delete String

    Import

    vpc route tables can be imported using the id, e.g.

    $ pulumi import opentelekomcloud:index/vpcRouteTableV1:VpcRouteTableV1 my_table 14c6491a-f90a-41aa-a206-f58bbacdb47d
    

    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 opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud