Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine
volcengine.transit_router.RouteTables
Explore with Pulumi AI
Use this data source to query detailed information of transit router route tables
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
import * as volcengine from "@volcengine/pulumi";
const fooTransitRouter = new volcengine.transit_router.TransitRouter("fooTransitRouter", {
    transitRouterName: "test-tf-acc",
    description: "test-tf-acc",
});
const fooRouteTable = new volcengine.transit_router.RouteTable("fooRouteTable", {
    description: "tf-test-acc-description",
    transitRouterRouteTableName: "tf-table-test-acc",
    transitRouterId: fooTransitRouter.id,
});
const default = volcengine.transit_router.RouteTablesOutput({
    transitRouterId: fooTransitRouter.id,
    ids: [fooRouteTable.transitRouterRouteTableId],
});
import pulumi
import pulumi_volcengine as volcengine
foo_transit_router = volcengine.transit_router.TransitRouter("fooTransitRouter",
    transit_router_name="test-tf-acc",
    description="test-tf-acc")
foo_route_table = volcengine.transit_router.RouteTable("fooRouteTable",
    description="tf-test-acc-description",
    transit_router_route_table_name="tf-table-test-acc",
    transit_router_id=foo_transit_router.id)
default = volcengine.transit_router.route_tables_output(transit_router_id=foo_transit_router.id,
    ids=[foo_route_table.transit_router_route_table_id])
package main
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/transit_router"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		fooTransitRouter, err := transit_router.NewTransitRouter(ctx, "fooTransitRouter", &transit_router.TransitRouterArgs{
			TransitRouterName: pulumi.String("test-tf-acc"),
			Description:       pulumi.String("test-tf-acc"),
		})
		if err != nil {
			return err
		}
		fooRouteTable, err := transit_router.NewRouteTable(ctx, "fooRouteTable", &transit_router.RouteTableArgs{
			Description:                 pulumi.String("tf-test-acc-description"),
			TransitRouterRouteTableName: pulumi.String("tf-table-test-acc"),
			TransitRouterId:             fooTransitRouter.ID(),
		})
		if err != nil {
			return err
		}
		_ = transit_router.RouteTablesOutput(ctx, transit_router.RouteTablesOutputArgs{
			TransitRouterId: fooTransitRouter.ID(),
			Ids: pulumi.StringArray{
				fooRouteTable.TransitRouterRouteTableId,
			},
		}, nil)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() => 
{
    var fooTransitRouter = new Volcengine.Transit_router.TransitRouter("fooTransitRouter", new()
    {
        TransitRouterName = "test-tf-acc",
        Description = "test-tf-acc",
    });
    var fooRouteTable = new Volcengine.Transit_router.RouteTable("fooRouteTable", new()
    {
        Description = "tf-test-acc-description",
        TransitRouterRouteTableName = "tf-table-test-acc",
        TransitRouterId = fooTransitRouter.Id,
    });
    var @default = Volcengine.Transit_router.RouteTables.Invoke(new()
    {
        TransitRouterId = fooTransitRouter.Id,
        Ids = new[]
        {
            fooRouteTable.TransitRouterRouteTableId,
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.transit_router.TransitRouter;
import com.pulumi.volcengine.transit_router.TransitRouterArgs;
import com.pulumi.volcengine.transit_router.RouteTable;
import com.pulumi.volcengine.transit_router.RouteTableArgs;
import com.pulumi.volcengine.transit_router.Transit_routerFunctions;
import com.pulumi.volcengine.transit_router.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) {
        var fooTransitRouter = new TransitRouter("fooTransitRouter", TransitRouterArgs.builder()        
            .transitRouterName("test-tf-acc")
            .description("test-tf-acc")
            .build());
        var fooRouteTable = new RouteTable("fooRouteTable", RouteTableArgs.builder()        
            .description("tf-test-acc-description")
            .transitRouterRouteTableName("tf-table-test-acc")
            .transitRouterId(fooTransitRouter.id())
            .build());
        final var default = Transit_routerFunctions.RouteTables(RouteTablesArgs.builder()
            .transitRouterId(fooTransitRouter.id())
            .ids(fooRouteTable.transitRouterRouteTableId())
            .build());
    }
}
resources:
  fooTransitRouter:
    type: volcengine:transit_router:TransitRouter
    properties:
      transitRouterName: test-tf-acc
      description: test-tf-acc
  fooRouteTable:
    type: volcengine:transit_router:RouteTable
    properties:
      description: tf-test-acc-description
      transitRouterRouteTableName: tf-table-test-acc
      transitRouterId: ${fooTransitRouter.id}
variables:
  default:
    fn::invoke:
      Function: volcengine:transit_router:RouteTables
      Arguments:
        transitRouterId: ${fooTransitRouter.id}
        ids:
          - ${fooRouteTable.transitRouterRouteTableId}
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>def route_tables(ids: Optional[Sequence[str]] = None,
                 output_file: Optional[str] = None,
                 tags: Optional[Sequence[RouteTablesTag]] = None,
                 transit_router_id: Optional[str] = None,
                 transit_router_route_table_type: 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,
                 tags: Optional[pulumi.Input[Sequence[pulumi.Input[RouteTablesTagArgs]]]] = None,
                 transit_router_id: Optional[pulumi.Input[str]] = None,
                 transit_router_route_table_type: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[RouteTablesResult]func RouteTables(ctx *Context, args *RouteTablesArgs, opts ...InvokeOption) (*RouteTablesResult, error)
func RouteTablesOutput(ctx *Context, args *RouteTablesOutputArgs, opts ...InvokeOption) RouteTablesResultOutputpublic static class RouteTables 
{
    public static Task<RouteTablesResult> InvokeAsync(RouteTablesArgs args, InvokeOptions? opts = null)
    public static Output<RouteTablesResult> Invoke(RouteTablesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<RouteTablesResult> routeTables(RouteTablesArgs args, InvokeOptions options)
public static Output<RouteTablesResult> routeTables(RouteTablesArgs args, InvokeOptions options)
fn::invoke:
  function: volcengine:transit_router:RouteTables
  arguments:
    # arguments dictionaryThe following arguments are supported:
- TransitRouter stringId 
- The id of the transit router.
- Ids List<string>
- The ids of the transit router route table.
- OutputFile string
- File name where to save data source results.
- 
List<RouteTables Tag> 
- Tags.
- TransitRouter stringRoute Table Type 
- The type of the route table. The value can be System or Custom.
- TransitRouter stringId 
- The id of the transit router.
- Ids []string
- The ids of the transit router route table.
- OutputFile string
- File name where to save data source results.
- 
[]RouteTables Tag 
- Tags.
- TransitRouter stringRoute Table Type 
- The type of the route table. The value can be System or Custom.
- transitRouter StringId 
- The id of the transit router.
- ids List<String>
- The ids of the transit router route table.
- outputFile String
- File name where to save data source results.
- 
List<RouteTables Tag> 
- Tags.
- transitRouter StringRoute Table Type 
- The type of the route table. The value can be System or Custom.
- transitRouter stringId 
- The id of the transit router.
- ids string[]
- The ids of the transit router route table.
- outputFile string
- File name where to save data source results.
- 
RouteTables Tag[] 
- Tags.
- transitRouter stringRoute Table Type 
- The type of the route table. The value can be System or Custom.
- transit_router_ strid 
- The id of the transit router.
- ids Sequence[str]
- The ids of the transit router route table.
- output_file str
- File name where to save data source results.
- 
Sequence[RouteTables Tag] 
- Tags.
- transit_router_ strroute_ table_ type 
- The type of the route table. The value can be System or Custom.
- transitRouter StringId 
- The id of the transit router.
- ids List<String>
- The ids of the transit router route table.
- outputFile String
- File name where to save data source results.
- List<Property Map>
- Tags.
- transitRouter StringRoute Table Type 
- The type of the route table. The value can be System or Custom.
RouteTables Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- RouteTables List<RouteTables Route Table> 
- The list of route tables query.
- TotalCount int
- The total count of data query.
- TransitRouter stringId 
- Ids List<string>
- OutputFile string
- 
List<RouteTables Tag> 
- Tags.
- TransitRouter stringRoute Table Type 
- The type of route table.
- Id string
- The provider-assigned unique ID for this managed resource.
- RouteTables []RouteTables Route Table 
- The list of route tables query.
- TotalCount int
- The total count of data query.
- TransitRouter stringId 
- Ids []string
- OutputFile string
- 
[]RouteTables Tag 
- Tags.
- TransitRouter stringRoute Table Type 
- The type of route table.
- id String
- The provider-assigned unique ID for this managed resource.
- routeTables List<RouteTables Route Table> 
- The list of route tables query.
- totalCount Integer
- The total count of data query.
- transitRouter StringId 
- ids List<String>
- outputFile String
- 
List<RouteTables Tag> 
- Tags.
- transitRouter StringRoute Table Type 
- The type of route table.
- id string
- The provider-assigned unique ID for this managed resource.
- routeTables RouteTables Route Table[] 
- The list of route tables query.
- totalCount number
- The total count of data query.
- transitRouter stringId 
- ids string[]
- outputFile string
- 
RouteTables Tag[] 
- Tags.
- transitRouter stringRoute Table Type 
- The type of route table.
- id str
- The provider-assigned unique ID for this managed resource.
- route_tables Sequence[RouteTables Route Table] 
- The list of route tables query.
- total_count int
- The total count of data query.
- transit_router_ strid 
- ids Sequence[str]
- output_file str
- 
Sequence[RouteTables Tag] 
- Tags.
- transit_router_ strroute_ table_ type 
- The type of route table.
- id String
- The provider-assigned unique ID for this managed resource.
- routeTables List<Property Map>
- The list of route tables query.
- totalCount Number
- The total count of data query.
- transitRouter StringId 
- ids List<String>
- outputFile String
- List<Property Map>
- Tags.
- transitRouter StringRoute Table Type 
- The type of route table.
Supporting Types
RouteTablesRouteTable   
- CreationTime string
- The creation time of the route table.
- Description string
- The description.
- Status string
- The status of the route table.
- 
List<RouteTables Route Table Tag> 
- Tags.
- TransitRouter stringRoute Table Id 
- The id of the route table.
- TransitRouter stringRoute Table Name 
- The name of the route table.
- TransitRouter stringRoute Table Type 
- The type of the route table. The value can be System or Custom.
- UpdateTime string
- The update time of the route table.
- CreationTime string
- The creation time of the route table.
- Description string
- The description.
- Status string
- The status of the route table.
- 
[]RouteTables Route Table Tag 
- Tags.
- TransitRouter stringRoute Table Id 
- The id of the route table.
- TransitRouter stringRoute Table Name 
- The name of the route table.
- TransitRouter stringRoute Table Type 
- The type of the route table. The value can be System or Custom.
- UpdateTime string
- The update time of the route table.
- creationTime String
- The creation time of the route table.
- description String
- The description.
- status String
- The status of the route table.
- 
List<RouteTables Route Table Tag> 
- Tags.
- transitRouter StringRoute Table Id 
- The id of the route table.
- transitRouter StringRoute Table Name 
- The name of the route table.
- transitRouter StringRoute Table Type 
- The type of the route table. The value can be System or Custom.
- updateTime String
- The update time of the route table.
- creationTime string
- The creation time of the route table.
- description string
- The description.
- status string
- The status of the route table.
- 
RouteTables Route Table Tag[] 
- Tags.
- transitRouter stringRoute Table Id 
- The id of the route table.
- transitRouter stringRoute Table Name 
- The name of the route table.
- transitRouter stringRoute Table Type 
- The type of the route table. The value can be System or Custom.
- updateTime string
- The update time of the route table.
- creation_time str
- The creation time of the route table.
- description str
- The description.
- status str
- The status of the route table.
- 
Sequence[RouteTables Route Table Tag] 
- Tags.
- transit_router_ strroute_ table_ id 
- The id of the route table.
- transit_router_ strroute_ table_ name 
- The name of the route table.
- transit_router_ strroute_ table_ type 
- The type of the route table. The value can be System or Custom.
- update_time str
- The update time of the route table.
- creationTime String
- The creation time of the route table.
- description String
- The description.
- status String
- The status of the route table.
- List<Property Map>
- Tags.
- transitRouter StringRoute Table Id 
- The id of the route table.
- transitRouter StringRoute Table Name 
- The name of the route table.
- transitRouter StringRoute Table Type 
- The type of the route table. The value can be System or Custom.
- updateTime String
- The update time of the route table.
RouteTablesRouteTableTag    
RouteTablesTag  
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the volcengineTerraform Provider.