1. Packages
  2. Volcengine
  3. API Docs
  4. transit_router
  5. RouteTableAssociations
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

volcengine.transit_router.RouteTableAssociations

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

    Use this data source to query detailed information of transit router route table associations

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = Volcengine.Transit_router.RouteTableAssociations.Invoke(new()
        {
            TransitRouterAttachmentId = "tr-attach-im73ng3n5kao8gbssz2ddpuq",
            TransitRouterRouteTableId = "tr-rtb-12b7qd3fmzf2817q7y2jkbd55",
        });
    
    });
    
    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 {
    		_, err := transit_router.RouteTableAssociations(ctx, &transit_router.RouteTableAssociationsArgs{
    			TransitRouterAttachmentId: pulumi.StringRef("tr-attach-im73ng3n5kao8gbssz2ddpuq"),
    			TransitRouterRouteTableId: "tr-rtb-12b7qd3fmzf2817q7y2jkbd55",
    		}, nil)
    		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.volcengine.transit_router.Transit_routerFunctions;
    import com.pulumi.volcengine.transit_router.inputs.RouteTableAssociationsArgs;
    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 = Transit_routerFunctions.RouteTableAssociations(RouteTableAssociationsArgs.builder()
                .transitRouterAttachmentId("tr-attach-im73ng3n5kao8gbssz2ddpuq")
                .transitRouterRouteTableId("tr-rtb-12b7qd3fmzf2817q7y2jkbd55")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    default = volcengine.transit_router.route_table_associations(transit_router_attachment_id="tr-attach-im73ng3n5kao8gbssz2ddpuq",
        transit_router_route_table_id="tr-rtb-12b7qd3fmzf2817q7y2jkbd55")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const default = volcengine.transit_router.RouteTableAssociations({
        transitRouterAttachmentId: "tr-attach-im73ng3n5kao8gbssz2ddpuq",
        transitRouterRouteTableId: "tr-rtb-12b7qd3fmzf2817q7y2jkbd55",
    });
    
    variables:
      default:
        fn::invoke:
          Function: volcengine:transit_router:RouteTableAssociations
          Arguments:
            transitRouterAttachmentId: tr-attach-im73ng3n5kao8gbssz2ddpuq
            transitRouterRouteTableId: tr-rtb-12b7qd3fmzf2817q7y2jkbd55
    

    Using RouteTableAssociations

    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 routeTableAssociations(args: RouteTableAssociationsArgs, opts?: InvokeOptions): Promise<RouteTableAssociationsResult>
    function routeTableAssociationsOutput(args: RouteTableAssociationsOutputArgs, opts?: InvokeOptions): Output<RouteTableAssociationsResult>
    def route_table_associations(output_file: Optional[str] = None,
                                 transit_router_attachment_id: Optional[str] = None,
                                 transit_router_route_table_id: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> RouteTableAssociationsResult
    def route_table_associations_output(output_file: Optional[pulumi.Input[str]] = None,
                                 transit_router_attachment_id: Optional[pulumi.Input[str]] = None,
                                 transit_router_route_table_id: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[RouteTableAssociationsResult]
    func RouteTableAssociations(ctx *Context, args *RouteTableAssociationsArgs, opts ...InvokeOption) (*RouteTableAssociationsResult, error)
    func RouteTableAssociationsOutput(ctx *Context, args *RouteTableAssociationsOutputArgs, opts ...InvokeOption) RouteTableAssociationsResultOutput
    public static class RouteTableAssociations 
    {
        public static Task<RouteTableAssociationsResult> InvokeAsync(RouteTableAssociationsArgs args, InvokeOptions? opts = null)
        public static Output<RouteTableAssociationsResult> Invoke(RouteTableAssociationsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<RouteTableAssociationsResult> routeTableAssociations(RouteTableAssociationsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: volcengine:transit_router:RouteTableAssociations
      arguments:
        # arguments dictionary

    The following arguments are supported:

    TransitRouterRouteTableId string
    The ID of the routing table associated with the transit router instance.
    OutputFile string
    File name where to save data source results.
    TransitRouterAttachmentId string
    The ID of the network instance connection.
    TransitRouterRouteTableId string
    The ID of the routing table associated with the transit router instance.
    OutputFile string
    File name where to save data source results.
    TransitRouterAttachmentId string
    The ID of the network instance connection.
    transitRouterRouteTableId String
    The ID of the routing table associated with the transit router instance.
    outputFile String
    File name where to save data source results.
    transitRouterAttachmentId String
    The ID of the network instance connection.
    transitRouterRouteTableId string
    The ID of the routing table associated with the transit router instance.
    outputFile string
    File name where to save data source results.
    transitRouterAttachmentId string
    The ID of the network instance connection.
    transit_router_route_table_id str
    The ID of the routing table associated with the transit router instance.
    output_file str
    File name where to save data source results.
    transit_router_attachment_id str
    The ID of the network instance connection.
    transitRouterRouteTableId String
    The ID of the routing table associated with the transit router instance.
    outputFile String
    File name where to save data source results.
    transitRouterAttachmentId String
    The ID of the network instance connection.

    RouteTableAssociations Result

    The following output properties are available:

    Associations List<RouteTableAssociationsAssociation>
    The list of route table associations.
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of data query.
    TransitRouterRouteTableId string
    The ID of the routing table associated with the transit router instance.
    OutputFile string
    TransitRouterAttachmentId string
    The ID of the network instance connection.
    Associations []RouteTableAssociationsAssociation
    The list of route table associations.
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of data query.
    TransitRouterRouteTableId string
    The ID of the routing table associated with the transit router instance.
    OutputFile string
    TransitRouterAttachmentId string
    The ID of the network instance connection.
    associations List<RouteTableAssociationsAssociation>
    The list of route table associations.
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Integer
    The total count of data query.
    transitRouterRouteTableId String
    The ID of the routing table associated with the transit router instance.
    outputFile String
    transitRouterAttachmentId String
    The ID of the network instance connection.
    associations RouteTableAssociationsAssociation[]
    The list of route table associations.
    id string
    The provider-assigned unique ID for this managed resource.
    totalCount number
    The total count of data query.
    transitRouterRouteTableId string
    The ID of the routing table associated with the transit router instance.
    outputFile string
    transitRouterAttachmentId string
    The ID of the network instance connection.
    associations Sequence[RouteTableAssociationsAssociation]
    The list of route table associations.
    id str
    The provider-assigned unique ID for this managed resource.
    total_count int
    The total count of data query.
    transit_router_route_table_id str
    The ID of the routing table associated with the transit router instance.
    output_file str
    transit_router_attachment_id str
    The ID of the network instance connection.
    associations List<Property Map>
    The list of route table associations.
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Number
    The total count of data query.
    transitRouterRouteTableId String
    The ID of the routing table associated with the transit router instance.
    outputFile String
    transitRouterAttachmentId String
    The ID of the network instance connection.

    Supporting Types

    RouteTableAssociationsAssociation

    Status string
    The status of the route table.
    TransitRouterAttachmentId string
    The ID of the network instance connection.
    TransitRouterRouteTableId string
    The ID of the routing table associated with the transit router instance.
    Status string
    The status of the route table.
    TransitRouterAttachmentId string
    The ID of the network instance connection.
    TransitRouterRouteTableId string
    The ID of the routing table associated with the transit router instance.
    status String
    The status of the route table.
    transitRouterAttachmentId String
    The ID of the network instance connection.
    transitRouterRouteTableId String
    The ID of the routing table associated with the transit router instance.
    status string
    The status of the route table.
    transitRouterAttachmentId string
    The ID of the network instance connection.
    transitRouterRouteTableId string
    The ID of the routing table associated with the transit router instance.
    status str
    The status of the route table.
    transit_router_attachment_id str
    The ID of the network instance connection.
    transit_router_route_table_id str
    The ID of the routing table associated with the transit router instance.
    status String
    The status of the route table.
    transitRouterAttachmentId String
    The ID of the network instance connection.
    transitRouterRouteTableId String
    The ID of the routing table associated with the transit router instance.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine