1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. cen
  5. getTransitRouterRouteTableAssociations
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.cen.getTransitRouterRouteTableAssociations

Explore with Pulumi AI

This data source provides CEN Transit Router Route Table Associations available to the user.What is Cen Transit Router Route Table Associations

NOTE: Available in 1.126.0+

Example Usage

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

const _default = alicloud.cen.getTransitRouterRouteTableAssociations({
    transitRouterRouteTableId: "rtb-id1",
});
export const firstTransitRouterPeerAttachmentsTransitRouterAttachmentResourceType = _default.then(_default => _default.associations?.[0]?.resourceType);
Copy
import pulumi
import pulumi_alicloud as alicloud

default = alicloud.cen.get_transit_router_route_table_associations(transit_router_route_table_id="rtb-id1")
pulumi.export("firstTransitRouterPeerAttachmentsTransitRouterAttachmentResourceType", default.associations[0].resource_type)
Copy
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cen"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := cen.GetTransitRouterRouteTableAssociations(ctx, &cen.GetTransitRouterRouteTableAssociationsArgs{
			TransitRouterRouteTableId: pulumi.StringRef("rtb-id1"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstTransitRouterPeerAttachmentsTransitRouterAttachmentResourceType", _default.Associations[0].ResourceType)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var @default = AliCloud.Cen.GetTransitRouterRouteTableAssociations.Invoke(new()
    {
        TransitRouterRouteTableId = "rtb-id1",
    });

    return new Dictionary<string, object?>
    {
        ["firstTransitRouterPeerAttachmentsTransitRouterAttachmentResourceType"] = @default.Apply(@default => @default.Apply(getTransitRouterRouteTableAssociationsResult => getTransitRouterRouteTableAssociationsResult.Associations[0]?.ResourceType)),
    };
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cen.CenFunctions;
import com.pulumi.alicloud.cen.inputs.GetTransitRouterRouteTableAssociationsArgs;
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 = CenFunctions.getTransitRouterRouteTableAssociations(GetTransitRouterRouteTableAssociationsArgs.builder()
            .transitRouterRouteTableId("rtb-id1")
            .build());

        ctx.export("firstTransitRouterPeerAttachmentsTransitRouterAttachmentResourceType", default_.associations()[0].resourceType());
    }
}
Copy
variables:
  default:
    fn::invoke:
      function: alicloud:cen:getTransitRouterRouteTableAssociations
      arguments:
        transitRouterRouteTableId: rtb-id1
outputs:
  firstTransitRouterPeerAttachmentsTransitRouterAttachmentResourceType: ${default.associations[0].resourceType}
Copy

Using getTransitRouterRouteTableAssociations

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 getTransitRouterRouteTableAssociations(args: GetTransitRouterRouteTableAssociationsArgs, opts?: InvokeOptions): Promise<GetTransitRouterRouteTableAssociationsResult>
function getTransitRouterRouteTableAssociationsOutput(args: GetTransitRouterRouteTableAssociationsOutputArgs, opts?: InvokeOptions): Output<GetTransitRouterRouteTableAssociationsResult>
Copy
def get_transit_router_route_table_associations(ids: Optional[Sequence[str]] = None,
                                                output_file: Optional[str] = None,
                                                status: Optional[str] = None,
                                                transit_router_attachment_id: Optional[str] = None,
                                                transit_router_attachment_resource_id: Optional[str] = None,
                                                transit_router_attachment_resource_type: Optional[str] = None,
                                                transit_router_route_table_id: Optional[str] = None,
                                                opts: Optional[InvokeOptions] = None) -> GetTransitRouterRouteTableAssociationsResult
def get_transit_router_route_table_associations_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                                output_file: Optional[pulumi.Input[str]] = None,
                                                status: Optional[pulumi.Input[str]] = None,
                                                transit_router_attachment_id: Optional[pulumi.Input[str]] = None,
                                                transit_router_attachment_resource_id: Optional[pulumi.Input[str]] = None,
                                                transit_router_attachment_resource_type: Optional[pulumi.Input[str]] = None,
                                                transit_router_route_table_id: Optional[pulumi.Input[str]] = None,
                                                opts: Optional[InvokeOptions] = None) -> Output[GetTransitRouterRouteTableAssociationsResult]
Copy
func GetTransitRouterRouteTableAssociations(ctx *Context, args *GetTransitRouterRouteTableAssociationsArgs, opts ...InvokeOption) (*GetTransitRouterRouteTableAssociationsResult, error)
func GetTransitRouterRouteTableAssociationsOutput(ctx *Context, args *GetTransitRouterRouteTableAssociationsOutputArgs, opts ...InvokeOption) GetTransitRouterRouteTableAssociationsResultOutput
Copy

> Note: This function is named GetTransitRouterRouteTableAssociations in the Go SDK.

public static class GetTransitRouterRouteTableAssociations 
{
    public static Task<GetTransitRouterRouteTableAssociationsResult> InvokeAsync(GetTransitRouterRouteTableAssociationsArgs args, InvokeOptions? opts = null)
    public static Output<GetTransitRouterRouteTableAssociationsResult> Invoke(GetTransitRouterRouteTableAssociationsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetTransitRouterRouteTableAssociationsResult> getTransitRouterRouteTableAssociations(GetTransitRouterRouteTableAssociationsArgs args, InvokeOptions options)
public static Output<GetTransitRouterRouteTableAssociationsResult> getTransitRouterRouteTableAssociations(GetTransitRouterRouteTableAssociationsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:cen/getTransitRouterRouteTableAssociations:getTransitRouterRouteTableAssociations
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Ids Changes to this property will trigger replacement. List<string>
A list of CEN Transit Router Route Table Association IDs.
OutputFile string
File name where to save data source results (after running pulumi preview).
Status Changes to this property will trigger replacement. string
The status of the route table, including Active, Associating, Dissociating.
TransitRouterAttachmentId Changes to this property will trigger replacement. string
The ID of the network instance connection.
TransitRouterAttachmentResourceId Changes to this property will trigger replacement. string
The ID of the next hop.
TransitRouterAttachmentResourceType Changes to this property will trigger replacement. string
The type of next hop. Valid values:

  • VPC: virtual private cloud (VPC)
  • VBR: virtual border router (VBR)
  • TR: transit router
  • VPN: VPN attachment
TransitRouterRouteTableId Changes to this property will trigger replacement. string
The ID of the route table of the Enterprise Edition transit router.
Ids Changes to this property will trigger replacement. []string
A list of CEN Transit Router Route Table Association IDs.
OutputFile string
File name where to save data source results (after running pulumi preview).
Status Changes to this property will trigger replacement. string
The status of the route table, including Active, Associating, Dissociating.
TransitRouterAttachmentId Changes to this property will trigger replacement. string
The ID of the network instance connection.
TransitRouterAttachmentResourceId Changes to this property will trigger replacement. string
The ID of the next hop.
TransitRouterAttachmentResourceType Changes to this property will trigger replacement. string
The type of next hop. Valid values:

  • VPC: virtual private cloud (VPC)
  • VBR: virtual border router (VBR)
  • TR: transit router
  • VPN: VPN attachment
TransitRouterRouteTableId Changes to this property will trigger replacement. string
The ID of the route table of the Enterprise Edition transit router.
ids Changes to this property will trigger replacement. List<String>
A list of CEN Transit Router Route Table Association IDs.
outputFile String
File name where to save data source results (after running pulumi preview).
status Changes to this property will trigger replacement. String
The status of the route table, including Active, Associating, Dissociating.
transitRouterAttachmentId Changes to this property will trigger replacement. String
The ID of the network instance connection.
transitRouterAttachmentResourceId Changes to this property will trigger replacement. String
The ID of the next hop.
transitRouterAttachmentResourceType Changes to this property will trigger replacement. String
The type of next hop. Valid values:

  • VPC: virtual private cloud (VPC)
  • VBR: virtual border router (VBR)
  • TR: transit router
  • VPN: VPN attachment
transitRouterRouteTableId Changes to this property will trigger replacement. String
The ID of the route table of the Enterprise Edition transit router.
ids Changes to this property will trigger replacement. string[]
A list of CEN Transit Router Route Table Association IDs.
outputFile string
File name where to save data source results (after running pulumi preview).
status Changes to this property will trigger replacement. string
The status of the route table, including Active, Associating, Dissociating.
transitRouterAttachmentId Changes to this property will trigger replacement. string
The ID of the network instance connection.
transitRouterAttachmentResourceId Changes to this property will trigger replacement. string
The ID of the next hop.
transitRouterAttachmentResourceType Changes to this property will trigger replacement. string
The type of next hop. Valid values:

  • VPC: virtual private cloud (VPC)
  • VBR: virtual border router (VBR)
  • TR: transit router
  • VPN: VPN attachment
transitRouterRouteTableId Changes to this property will trigger replacement. string
The ID of the route table of the Enterprise Edition transit router.
ids Changes to this property will trigger replacement. Sequence[str]
A list of CEN Transit Router Route Table Association IDs.
output_file str
File name where to save data source results (after running pulumi preview).
status Changes to this property will trigger replacement. str
The status of the route table, including Active, Associating, Dissociating.
transit_router_attachment_id Changes to this property will trigger replacement. str
The ID of the network instance connection.
transit_router_attachment_resource_id Changes to this property will trigger replacement. str
The ID of the next hop.
transit_router_attachment_resource_type Changes to this property will trigger replacement. str
The type of next hop. Valid values:

  • VPC: virtual private cloud (VPC)
  • VBR: virtual border router (VBR)
  • TR: transit router
  • VPN: VPN attachment
transit_router_route_table_id Changes to this property will trigger replacement. str
The ID of the route table of the Enterprise Edition transit router.
ids Changes to this property will trigger replacement. List<String>
A list of CEN Transit Router Route Table Association IDs.
outputFile String
File name where to save data source results (after running pulumi preview).
status Changes to this property will trigger replacement. String
The status of the route table, including Active, Associating, Dissociating.
transitRouterAttachmentId Changes to this property will trigger replacement. String
The ID of the network instance connection.
transitRouterAttachmentResourceId Changes to this property will trigger replacement. String
The ID of the next hop.
transitRouterAttachmentResourceType Changes to this property will trigger replacement. String
The type of next hop. Valid values:

  • VPC: virtual private cloud (VPC)
  • VBR: virtual border router (VBR)
  • TR: transit router
  • VPN: VPN attachment
transitRouterRouteTableId Changes to this property will trigger replacement. String
The ID of the route table of the Enterprise Edition transit router.

getTransitRouterRouteTableAssociations Result

The following output properties are available:

Associations List<Pulumi.AliCloud.Cen.Outputs.GetTransitRouterRouteTableAssociationsAssociation>
A list of CEN Transit Router Route Table Associations. Each element contains the following attributes:
Id string
The provider-assigned unique ID for this managed resource.
Ids List<string>
A list of CEN Transit Router Route Table Association IDs.
OutputFile string
Status string
The status of the route table.
TransitRouterAttachmentId string
ID of the transit router attachment.
TransitRouterAttachmentResourceId string
TransitRouterAttachmentResourceType string
TransitRouterRouteTableId string
ID of the transit router route table.
Associations []GetTransitRouterRouteTableAssociationsAssociation
A list of CEN Transit Router Route Table Associations. Each element contains the following attributes:
Id string
The provider-assigned unique ID for this managed resource.
Ids []string
A list of CEN Transit Router Route Table Association IDs.
OutputFile string
Status string
The status of the route table.
TransitRouterAttachmentId string
ID of the transit router attachment.
TransitRouterAttachmentResourceId string
TransitRouterAttachmentResourceType string
TransitRouterRouteTableId string
ID of the transit router route table.
associations List<GetTransitRouterRouteTableAssociationsAssociation>
A list of CEN Transit Router Route Table Associations. Each element contains the following attributes:
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
A list of CEN Transit Router Route Table Association IDs.
outputFile String
status String
The status of the route table.
transitRouterAttachmentId String
ID of the transit router attachment.
transitRouterAttachmentResourceId String
transitRouterAttachmentResourceType String
transitRouterRouteTableId String
ID of the transit router route table.
associations GetTransitRouterRouteTableAssociationsAssociation[]
A list of CEN Transit Router Route Table Associations. Each element contains the following attributes:
id string
The provider-assigned unique ID for this managed resource.
ids string[]
A list of CEN Transit Router Route Table Association IDs.
outputFile string
status string
The status of the route table.
transitRouterAttachmentId string
ID of the transit router attachment.
transitRouterAttachmentResourceId string
transitRouterAttachmentResourceType string
transitRouterRouteTableId string
ID of the transit router route table.
associations Sequence[GetTransitRouterRouteTableAssociationsAssociation]
A list of CEN Transit Router Route Table Associations. Each element contains the following attributes:
id str
The provider-assigned unique ID for this managed resource.
ids Sequence[str]
A list of CEN Transit Router Route Table Association IDs.
output_file str
status str
The status of the route table.
transit_router_attachment_id str
ID of the transit router attachment.
transit_router_attachment_resource_id str
transit_router_attachment_resource_type str
transit_router_route_table_id str
ID of the transit router route table.
associations List<Property Map>
A list of CEN Transit Router Route Table Associations. Each element contains the following attributes:
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
A list of CEN Transit Router Route Table Association IDs.
outputFile String
status String
The status of the route table.
transitRouterAttachmentId String
ID of the transit router attachment.
transitRouterAttachmentResourceId String
transitRouterAttachmentResourceType String
transitRouterRouteTableId String
ID of the transit router route table.

Supporting Types

GetTransitRouterRouteTableAssociationsAssociation

Id This property is required. string
ResourceId This property is required. string
ID of the transit router route table association.
ResourceType This property is required. string
Type of the resource.
Status This property is required. string
The status of the route table, including Active, Associating, Dissociating.
TransitRouterAttachmentId This property is required. string
The ID of the network instance connection.
TransitRouterRouteTableId This property is required. string
The ID of the route table of the Enterprise Edition transit router.
Id This property is required. string
ResourceId This property is required. string
ID of the transit router route table association.
ResourceType This property is required. string
Type of the resource.
Status This property is required. string
The status of the route table, including Active, Associating, Dissociating.
TransitRouterAttachmentId This property is required. string
The ID of the network instance connection.
TransitRouterRouteTableId This property is required. string
The ID of the route table of the Enterprise Edition transit router.
id This property is required. String
resourceId This property is required. String
ID of the transit router route table association.
resourceType This property is required. String
Type of the resource.
status This property is required. String
The status of the route table, including Active, Associating, Dissociating.
transitRouterAttachmentId This property is required. String
The ID of the network instance connection.
transitRouterRouteTableId This property is required. String
The ID of the route table of the Enterprise Edition transit router.
id This property is required. string
resourceId This property is required. string
ID of the transit router route table association.
resourceType This property is required. string
Type of the resource.
status This property is required. string
The status of the route table, including Active, Associating, Dissociating.
transitRouterAttachmentId This property is required. string
The ID of the network instance connection.
transitRouterRouteTableId This property is required. string
The ID of the route table of the Enterprise Edition transit router.
id This property is required. str
resource_id This property is required. str
ID of the transit router route table association.
resource_type This property is required. str
Type of the resource.
status This property is required. str
The status of the route table, including Active, Associating, Dissociating.
transit_router_attachment_id This property is required. str
The ID of the network instance connection.
transit_router_route_table_id This property is required. str
The ID of the route table of the Enterprise Edition transit router.
id This property is required. String
resourceId This property is required. String
ID of the transit router route table association.
resourceType This property is required. String
Type of the resource.
status This property is required. String
The status of the route table, including Active, Associating, Dissociating.
transitRouterAttachmentId This property is required. String
The ID of the network instance connection.
transitRouterRouteTableId This property is required. String
The ID of the route table of the Enterprise Edition transit router.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.