1. Packages
  2. Volcengine
  3. API Docs
  4. vpc
  5. RouteTables
Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine

volcengine.vpc.RouteTables

Explore with Pulumi AI

Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine

Use this data source to query detailed information of route tables

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";

const default = volcengine.vpc.RouteTables({
    ids: [
        "vtb-274e19skkuhog7fap8u4i8ird",
        "vtb-2744hslq5b7r47fap8tjomgnj",
    ],
    routeTableName: "vpc-fast",
});
Copy
import pulumi
import pulumi_volcengine as volcengine

default = volcengine.vpc.route_tables(ids=[
        "vtb-274e19skkuhog7fap8u4i8ird",
        "vtb-2744hslq5b7r47fap8tjomgnj",
    ],
    route_table_name="vpc-fast")
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := vpc.RouteTables(ctx, &vpc.RouteTablesArgs{
			Ids: []string{
				"vtb-274e19skkuhog7fap8u4i8ird",
				"vtb-2744hslq5b7r47fap8tjomgnj",
			},
			RouteTableName: pulumi.StringRef("vpc-fast"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;

return await Deployment.RunAsync(() => 
{
    var @default = Volcengine.Vpc.RouteTables.Invoke(new()
    {
        Ids = new[]
        {
            "vtb-274e19skkuhog7fap8u4i8ird",
            "vtb-2744hslq5b7r47fap8tjomgnj",
        },
        RouteTableName = "vpc-fast",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.vpc.VpcFunctions;
import com.pulumi.volcengine.vpc.inputs.RouteTablesArgs;
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 default = VpcFunctions.RouteTables(RouteTablesArgs.builder()
            .ids(            
                "vtb-274e19skkuhog7fap8u4i8ird",
                "vtb-2744hslq5b7r47fap8tjomgnj")
            .routeTableName("vpc-fast")
            .build());

    }
}
Copy
variables:
  default:
    fn::invoke:
      Function: volcengine:vpc:RouteTables
      Arguments:
        ids:
          - vtb-274e19skkuhog7fap8u4i8ird
          - vtb-2744hslq5b7r47fap8tjomgnj
        routeTableName: vpc-fast
Copy

Using RouteTables

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function routeTables(args: RouteTablesArgs, opts?: InvokeOptions): Promise<RouteTablesResult>
function routeTablesOutput(args: RouteTablesOutputArgs, opts?: InvokeOptions): Output<RouteTablesResult>
Copy
def route_tables(ids: Optional[Sequence[str]] = None,
                 output_file: Optional[str] = None,
                 project_name: Optional[str] = None,
                 route_table_name: Optional[str] = None,
                 vpc_id: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> RouteTablesResult
def route_tables_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                 output_file: Optional[pulumi.Input[str]] = None,
                 project_name: Optional[pulumi.Input[str]] = None,
                 route_table_name: Optional[pulumi.Input[str]] = None,
                 vpc_id: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[RouteTablesResult]
Copy
func RouteTables(ctx *Context, args *RouteTablesArgs, opts ...InvokeOption) (*RouteTablesResult, error)
func RouteTablesOutput(ctx *Context, args *RouteTablesOutputArgs, opts ...InvokeOption) RouteTablesResultOutput
Copy
public static class RouteTables 
{
    public static Task<RouteTablesResult> InvokeAsync(RouteTablesArgs args, InvokeOptions? opts = null)
    public static Output<RouteTablesResult> Invoke(RouteTablesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<RouteTablesResult> routeTables(RouteTablesArgs args, InvokeOptions options)
public static Output<RouteTablesResult> routeTables(RouteTablesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: volcengine:vpc:RouteTables
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Ids List<string>
A list of route table ids.
OutputFile string
File name where to save data source results.
ProjectName string
The ProjectName of the route table.
RouteTableName string
A name of route table.
VpcId string
An id of VPC.
Ids []string
A list of route table ids.
OutputFile string
File name where to save data source results.
ProjectName string
The ProjectName of the route table.
RouteTableName string
A name of route table.
VpcId string
An id of VPC.
ids List<String>
A list of route table ids.
outputFile String
File name where to save data source results.
projectName String
The ProjectName of the route table.
routeTableName String
A name of route table.
vpcId String
An id of VPC.
ids string[]
A list of route table ids.
outputFile string
File name where to save data source results.
projectName string
The ProjectName of the route table.
routeTableName string
A name of route table.
vpcId string
An id of VPC.
ids Sequence[str]
A list of route table ids.
output_file str
File name where to save data source results.
project_name str
The ProjectName of the route table.
route_table_name str
A name of route table.
vpc_id str
An id of VPC.
ids List<String>
A list of route table ids.
outputFile String
File name where to save data source results.
projectName String
The ProjectName of the route table.
routeTableName String
A name of route table.
vpcId String
An id of VPC.

RouteTables Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
RouteTables List<RouteTablesRouteTable>
The collection of route tables.
TotalCount int
The total count of route table query.
Ids List<string>
OutputFile string
ProjectName string
The ProjectName of the route table.
RouteTableName string
The name of the route table.
VpcId string
The id of the virtual private cloud (VPC) to which the route entry belongs.
Id string
The provider-assigned unique ID for this managed resource.
RouteTables []RouteTablesRouteTable
The collection of route tables.
TotalCount int
The total count of route table query.
Ids []string
OutputFile string
ProjectName string
The ProjectName of the route table.
RouteTableName string
The name of the route table.
VpcId string
The id of the virtual private cloud (VPC) to which the route entry belongs.
id String
The provider-assigned unique ID for this managed resource.
routeTables List<RouteTablesRouteTable>
The collection of route tables.
totalCount Integer
The total count of route table query.
ids List<String>
outputFile String
projectName String
The ProjectName of the route table.
routeTableName String
The name of the route table.
vpcId String
The id of the virtual private cloud (VPC) to which the route entry belongs.
id string
The provider-assigned unique ID for this managed resource.
routeTables RouteTablesRouteTable[]
The collection of route tables.
totalCount number
The total count of route table query.
ids string[]
outputFile string
projectName string
The ProjectName of the route table.
routeTableName string
The name of the route table.
vpcId string
The id of the virtual private cloud (VPC) to which the route entry belongs.
id str
The provider-assigned unique ID for this managed resource.
route_tables Sequence[RouteTablesRouteTable]
The collection of route tables.
total_count int
The total count of route table query.
ids Sequence[str]
output_file str
project_name str
The ProjectName of the route table.
route_table_name str
The name of the route table.
vpc_id str
The id of the virtual private cloud (VPC) to which the route entry belongs.
id String
The provider-assigned unique ID for this managed resource.
routeTables List<Property Map>
The collection of route tables.
totalCount Number
The total count of route table query.
ids List<String>
outputFile String
projectName String
The ProjectName of the route table.
routeTableName String
The name of the route table.
vpcId String
The id of the virtual private cloud (VPC) to which the route entry belongs.

Supporting Types

RouteTablesRouteTable

AccountId This property is required. string
The account id of the route table creator.
CreationTime This property is required. string
The create time of the route table.
Description This property is required. string
The description of the route table.
Id This property is required. string
The id of the route table.
ProjectName This property is required. string
The ProjectName of the route table.
RouteTableId This property is required. string
The id of the route table.
RouteTableName This property is required. string
A name of route table.
RouteTableType This property is required. string
The type of the route table.
SubnetIds This property is required. List<string>
The list of the subnet ids to which the entry table associates.
UpdateTime This property is required. string
The last update time of the route table.
VpcId This property is required. string
An id of VPC.
VpcName This property is required. string
The name of the virtual private cloud (VPC) to which the route entry belongs.
AccountId This property is required. string
The account id of the route table creator.
CreationTime This property is required. string
The create time of the route table.
Description This property is required. string
The description of the route table.
Id This property is required. string
The id of the route table.
ProjectName This property is required. string
The ProjectName of the route table.
RouteTableId This property is required. string
The id of the route table.
RouteTableName This property is required. string
A name of route table.
RouteTableType This property is required. string
The type of the route table.
SubnetIds This property is required. []string
The list of the subnet ids to which the entry table associates.
UpdateTime This property is required. string
The last update time of the route table.
VpcId This property is required. string
An id of VPC.
VpcName This property is required. string
The name of the virtual private cloud (VPC) to which the route entry belongs.
accountId This property is required. String
The account id of the route table creator.
creationTime This property is required. String
The create time of the route table.
description This property is required. String
The description of the route table.
id This property is required. String
The id of the route table.
projectName This property is required. String
The ProjectName of the route table.
routeTableId This property is required. String
The id of the route table.
routeTableName This property is required. String
A name of route table.
routeTableType This property is required. String
The type of the route table.
subnetIds This property is required. List<String>
The list of the subnet ids to which the entry table associates.
updateTime This property is required. String
The last update time of the route table.
vpcId This property is required. String
An id of VPC.
vpcName This property is required. String
The name of the virtual private cloud (VPC) to which the route entry belongs.
accountId This property is required. string
The account id of the route table creator.
creationTime This property is required. string
The create time of the route table.
description This property is required. string
The description of the route table.
id This property is required. string
The id of the route table.
projectName This property is required. string
The ProjectName of the route table.
routeTableId This property is required. string
The id of the route table.
routeTableName This property is required. string
A name of route table.
routeTableType This property is required. string
The type of the route table.
subnetIds This property is required. string[]
The list of the subnet ids to which the entry table associates.
updateTime This property is required. string
The last update time of the route table.
vpcId This property is required. string
An id of VPC.
vpcName This property is required. string
The name of the virtual private cloud (VPC) to which the route entry belongs.
account_id This property is required. str
The account id of the route table creator.
creation_time This property is required. str
The create time of the route table.
description This property is required. str
The description of the route table.
id This property is required. str
The id of the route table.
project_name This property is required. str
The ProjectName of the route table.
route_table_id This property is required. str
The id of the route table.
route_table_name This property is required. str
A name of route table.
route_table_type This property is required. str
The type of the route table.
subnet_ids This property is required. Sequence[str]
The list of the subnet ids to which the entry table associates.
update_time This property is required. str
The last update time of the route table.
vpc_id This property is required. str
An id of VPC.
vpc_name This property is required. str
The name of the virtual private cloud (VPC) to which the route entry belongs.
accountId This property is required. String
The account id of the route table creator.
creationTime This property is required. String
The create time of the route table.
description This property is required. String
The description of the route table.
id This property is required. String
The id of the route table.
projectName This property is required. String
The ProjectName of the route table.
routeTableId This property is required. String
The id of the route table.
routeTableName This property is required. String
A name of route table.
routeTableType This property is required. String
The type of the route table.
subnetIds This property is required. List<String>
The list of the subnet ids to which the entry table associates.
updateTime This property is required. String
The last update time of the route table.
vpcId This property is required. String
An id of VPC.
vpcName This property is required. String
The name of the virtual private cloud (VPC) to which the route entry belongs.

Package Details

Repository
volcengine volcengine/pulumi-volcengine
License
Apache-2.0
Notes
This Pulumi package is based on the volcengine Terraform Provider.
Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine