1. Registry
  2. Packages
  3. Alibaba Cloud Provider
  4. API Docs
  5. expressconnect
  6. getRouterTrAssociations
Viewing docs for Alibaba Cloud v3.105.0
published on Thursday, Jul 16, 2026 by Pulumi
alicloud logo alicloud logo
Viewing docs for Alibaba Cloud v3.105.0
published on Thursday, Jul 16, 2026 by Pulumi

    This data source provides the Express Connect Router Tr Association of the current Alibaba Cloud user.

    NOTE: Available since v1.285.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const _default = alicloud.getAccount({});
    const defaultGetRegions = alicloud.getRegions({
        current: true,
    });
    const defaultRouterExpressConnectRouter = new alicloud.expressconnect.RouterExpressConnectRouter("default", {alibabaSideAsn: 65532});
    const defaultInstance = new alicloud.cen.Instance("default", {cenInstanceName: name});
    const defaultTransitRouter = new alicloud.cen.TransitRouter("default", {cenId: defaultInstance.id});
    const defaultRouterTrAssociation = new alicloud.expressconnect.RouterTrAssociation("default", {
        ecrId: defaultRouterExpressConnectRouter.id,
        transitRouterId: defaultTransitRouter.transitRouterId,
        cenId: defaultTransitRouter.cenId,
        transitRouterOwnerId: output(_default.then(_default => _default.id)).apply(x =>Number(x)),
        associationRegionId: defaultGetRegions.then(defaultGetRegions => defaultGetRegions.regions?.[0]?.id),
        allowedPrefixes: [
            "10.0.0.0/24",
            "10.0.1.0/24",
            "10.0.2.0/24",
        ],
    });
    const ids = alicloud.expressconnect.getRouterTrAssociationsOutput({
        ids: [defaultRouterTrAssociation.id],
        ecrId: defaultRouterTrAssociation.ecrId,
    });
    export const expressConnectRouterTrAssociationsId0 = ids.apply(ids => ids.associations?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default = alicloud.get_account()
    default_get_regions = alicloud.get_regions(current=True)
    default_router_express_connect_router = alicloud.expressconnect.RouterExpressConnectRouter("default", alibaba_side_asn=65532)
    default_instance = alicloud.cen.Instance("default", cen_instance_name=name)
    default_transit_router = alicloud.cen.TransitRouter("default", cen_id=default_instance.id)
    default_router_tr_association = alicloud.expressconnect.RouterTrAssociation("default",
        ecr_id=default_router_express_connect_router.id,
        transit_router_id=default_transit_router.transit_router_id,
        cen_id=default_transit_router.cen_id,
        transit_router_owner_id=output(default.id).apply(lambda x: int(x)),
        association_region_id=default_get_regions.regions[0].id,
        allowed_prefixes=[
            "10.0.0.0/24",
            "10.0.1.0/24",
            "10.0.2.0/24",
        ])
    ids = alicloud.expressconnect.get_router_tr_associations_output(ids=[default_router_tr_association.id],
        ecr_id=default_router_tr_association.ecr_id)
    pulumi.export("expressConnectRouterTrAssociationsId0", ids.associations[0].id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cen"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/expressconnect"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_default, err := alicloud.GetAccount(ctx, map[string]interface{}{}, nil)
    		if err != nil {
    			return err
    		}
    		defaultGetRegions, err := alicloud.GetRegions(ctx, &alicloud.GetRegionsArgs{
    			Current: pulumi.BoolRef(true),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultRouterExpressConnectRouter, err := expressconnect.NewRouterExpressConnectRouter(ctx, "default", &expressconnect.RouterExpressConnectRouterArgs{
    			AlibabaSideAsn: pulumi.Int(65532),
    		})
    		if err != nil {
    			return err
    		}
    		defaultInstance, err := cen.NewInstance(ctx, "default", &cen.InstanceArgs{
    			CenInstanceName: pulumi.String(name),
    		})
    		if err != nil {
    			return err
    		}
    		defaultTransitRouter, err := cen.NewTransitRouter(ctx, "default", &cen.TransitRouterArgs{
    			CenId: defaultInstance.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		defaultRouterTrAssociation, err := expressconnect.NewRouterTrAssociation(ctx, "default", &expressconnect.RouterTrAssociationArgs{
    			EcrId:                defaultRouterExpressConnectRouter.ID(),
    			TransitRouterId:      defaultTransitRouter.TransitRouterId,
    			CenId:                defaultTransitRouter.CenId,
    			TransitRouterOwnerId: pulumi.String(_default.Id),
    			AssociationRegionId:  pulumi.String(defaultGetRegions.Regions[0].Id),
    			AllowedPrefixes: pulumi.StringArray{
    				pulumi.String("10.0.0.0/24"),
    				pulumi.String("10.0.1.0/24"),
    				pulumi.String("10.0.2.0/24"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		ids := expressconnect.GetRouterTrAssociationsOutput(ctx, expressconnect.GetRouterTrAssociationsOutputArgs{
    			Ids: pulumi.StringArray{
    				defaultRouterTrAssociation.ID(),
    			},
    			EcrId: defaultRouterTrAssociation.EcrId,
    		}, nil)
    		ctx.Export("expressConnectRouterTrAssociationsId0", ids.ApplyT(func(ids expressconnect.GetRouterTrAssociationsResult) (*string, error) {
    			return ids.Associations[0].Id, nil
    		}).(pulumi.StringPtrOutput))
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var @default = AliCloud.GetAccount.Invoke();
    
        var defaultGetRegions = AliCloud.GetRegions.Invoke(new()
        {
            Current = true,
        });
    
        var defaultRouterExpressConnectRouter = new AliCloud.ExpressConnect.RouterExpressConnectRouter("default", new()
        {
            AlibabaSideAsn = 65532,
        });
    
        var defaultInstance = new AliCloud.Cen.Instance("default", new()
        {
            CenInstanceName = name,
        });
    
        var defaultTransitRouter = new AliCloud.Cen.TransitRouter("default", new()
        {
            CenId = defaultInstance.Id,
        });
    
        var defaultRouterTrAssociation = new AliCloud.ExpressConnect.RouterTrAssociation("default", new()
        {
            EcrId = defaultRouterExpressConnectRouter.Id,
            TransitRouterId = defaultTransitRouter.TransitRouterId,
            CenId = defaultTransitRouter.CenId,
            TransitRouterOwnerId = @default.Apply(@default => @default.Apply(getAccountResult => getAccountResult.Id)),
            AssociationRegionId = defaultGetRegions.Apply(getRegionsResult => getRegionsResult.Regions[0]?.Id),
            AllowedPrefixes = new[]
            {
                "10.0.0.0/24",
                "10.0.1.0/24",
                "10.0.2.0/24",
            },
        });
    
        var ids = AliCloud.ExpressConnect.GetRouterTrAssociations.Invoke(new()
        {
            Ids = new[]
            {
                defaultRouterTrAssociation.Id,
            },
            EcrId = defaultRouterTrAssociation.EcrId,
        });
    
        return new Dictionary<string, object?>
        {
            ["expressConnectRouterTrAssociationsId0"] = ids.Apply(getRouterTrAssociationsResult => getRouterTrAssociationsResult.Associations[0]?.Id),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.AlicloudFunctions;
    import com.pulumi.alicloud.inputs.GetRegionsArgs;
    import com.pulumi.alicloud.expressconnect.RouterExpressConnectRouter;
    import com.pulumi.alicloud.expressconnect.RouterExpressConnectRouterArgs;
    import com.pulumi.alicloud.cen.Instance;
    import com.pulumi.alicloud.cen.InstanceArgs;
    import com.pulumi.alicloud.cen.TransitRouter;
    import com.pulumi.alicloud.cen.TransitRouterArgs;
    import com.pulumi.alicloud.expressconnect.RouterTrAssociation;
    import com.pulumi.alicloud.expressconnect.RouterTrAssociationArgs;
    import com.pulumi.alicloud.expressconnect.ExpressconnectFunctions;
    import com.pulumi.alicloud.expressconnect.inputs.GetRouterTrAssociationsArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 config = ctx.config();
            final var name = config.get("name").orElse("terraform-example");
            final var default = AlicloudFunctions.getAccount(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);
    
            final var defaultGetRegions = AlicloudFunctions.getRegions(GetRegionsArgs.builder()
                .current(true)
                .build());
    
            var defaultRouterExpressConnectRouter = new RouterExpressConnectRouter("defaultRouterExpressConnectRouter", RouterExpressConnectRouterArgs.builder()
                .alibabaSideAsn(65532)
                .build());
    
            var defaultInstance = new Instance("defaultInstance", InstanceArgs.builder()
                .cenInstanceName(name)
                .build());
    
            var defaultTransitRouter = new TransitRouter("defaultTransitRouter", TransitRouterArgs.builder()
                .cenId(defaultInstance.id())
                .build());
    
            var defaultRouterTrAssociation = new RouterTrAssociation("defaultRouterTrAssociation", RouterTrAssociationArgs.builder()
                .ecrId(defaultRouterExpressConnectRouter.id())
                .transitRouterId(defaultTransitRouter.transitRouterId())
                .cenId(defaultTransitRouter.cenId())
                .transitRouterOwnerId(default_.id())
                .associationRegionId(defaultGetRegions.regions()[0].id())
                .allowedPrefixes(            
                    "10.0.0.0/24",
                    "10.0.1.0/24",
                    "10.0.2.0/24")
                .build());
    
            final var ids = ExpressconnectFunctions.getRouterTrAssociations(GetRouterTrAssociationsArgs.builder()
                .ids(defaultRouterTrAssociation.id())
                .ecrId(defaultRouterTrAssociation.ecrId())
                .build());
    
            ctx.export("expressConnectRouterTrAssociationsId0", ids.applyValue(_ids -> _ids.associations()[0].id()));
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      defaultRouterExpressConnectRouter:
        type: alicloud:expressconnect:RouterExpressConnectRouter
        name: default
        properties:
          alibabaSideAsn: '65532'
      defaultInstance:
        type: alicloud:cen:Instance
        name: default
        properties:
          cenInstanceName: ${name}
      defaultTransitRouter:
        type: alicloud:cen:TransitRouter
        name: default
        properties:
          cenId: ${defaultInstance.id}
      defaultRouterTrAssociation:
        type: alicloud:expressconnect:RouterTrAssociation
        name: default
        properties:
          ecrId: ${defaultRouterExpressConnectRouter.id}
          transitRouterId: ${defaultTransitRouter.transitRouterId}
          cenId: ${defaultTransitRouter.cenId}
          transitRouterOwnerId: ${default.id}
          associationRegionId: ${defaultGetRegions.regions[0].id}
          allowedPrefixes:
            - 10.0.0.0/24
            - 10.0.1.0/24
            - 10.0.2.0/24
    variables:
      default:
        fn::invoke:
          function: alicloud:getAccount
          arguments: {}
      defaultGetRegions:
        fn::invoke:
          function: alicloud:getRegions
          arguments:
            current: true
      ids:
        fn::invoke:
          function: alicloud:expressconnect:getRouterTrAssociations
          arguments:
            ids:
              - ${defaultRouterTrAssociation.id}
            ecrId: ${defaultRouterTrAssociation.ecrId}
    outputs:
      expressConnectRouterTrAssociationsId0: ${ids.associations[0].id}
    
    pulumi {
      required_providers {
        alicloud = {
          source = "pulumi/alicloud"
        }
      }
    }
    
    data "alicloud_getaccount" "default" {
    }
    data "alicloud_getregions" "defaultGetRegions" {
      current = true
    }
    data "alicloud_expressconnect_getroutertrassociations" "ids" {
      ids    = [alicloud_expressconnect_routertrassociation.default.id]
      ecr_id = alicloud_expressconnect_routertrassociation.default.ecr_id
    }
    
    resource "alicloud_expressconnect_routerexpressconnectrouter" "default" {
      alibaba_side_asn = "65532"
    }
    resource "alicloud_cen_instance" "default" {
      cen_instance_name = var.name
    }
    resource "alicloud_cen_transitrouter" "default" {
      cen_id = alicloud_cen_instance.default.id
    }
    resource "alicloud_expressconnect_routertrassociation" "default" {
      ecr_id                  = alicloud_expressconnect_routerexpressconnectrouter.default.id
      transit_router_id       = alicloud_cen_transitrouter.default.transit_router_id
      cen_id                  = alicloud_cen_transitrouter.default.cen_id
      transit_router_owner_id = data.alicloud_getaccount.default.id
      association_region_id   = data.alicloud_getregions.defaultGetRegions.regions[0].id
      allowed_prefixes        = ["10.0.0.0/24", "10.0.1.0/24", "10.0.2.0/24"]
    }
    variable "name" {
      type    = string
      default = "terraform-example"
    }
    output "expressConnectRouterTrAssociationsId0" {
      value = data.alicloud_expressconnect_getroutertrassociations.ids.associations[0].id
    }
    

    Using getRouterTrAssociations

    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 getRouterTrAssociations(args: GetRouterTrAssociationsArgs, opts?: InvokeOptions): Promise<GetRouterTrAssociationsResult>
    function getRouterTrAssociationsOutput(args: GetRouterTrAssociationsOutputArgs, opts?: InvokeOutputOptions): Output<GetRouterTrAssociationsResult>
    def get_router_tr_associations(association_id: Optional[str] = None,
                                   association_region_id: Optional[str] = None,
                                   cen_id: Optional[str] = None,
                                   ecr_id: Optional[str] = None,
                                   ids: Optional[Sequence[str]] = None,
                                   output_file: Optional[str] = None,
                                   status: Optional[str] = None,
                                   transit_router_id: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetRouterTrAssociationsResult
    def get_router_tr_associations_output(association_id: pulumi.Input[Optional[str]] = None,
                                   association_region_id: pulumi.Input[Optional[str]] = None,
                                   cen_id: pulumi.Input[Optional[str]] = None,
                                   ecr_id: pulumi.Input[Optional[str]] = None,
                                   ids: pulumi.Input[Optional[Sequence[pulumi.Input[str]]]] = None,
                                   output_file: pulumi.Input[Optional[str]] = None,
                                   status: pulumi.Input[Optional[str]] = None,
                                   transit_router_id: pulumi.Input[Optional[str]] = None,
                                   opts: Optional[InvokeOutputOptions] = None) -> Output[GetRouterTrAssociationsResult]
    func GetRouterTrAssociations(ctx *Context, args *GetRouterTrAssociationsArgs, opts ...InvokeOption) (*GetRouterTrAssociationsResult, error)
    func GetRouterTrAssociationsOutput(ctx *Context, args *GetRouterTrAssociationsOutputArgs, opts ...InvokeOption) GetRouterTrAssociationsResultOutput

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

    public static class GetRouterTrAssociations 
    {
        public static Task<GetRouterTrAssociationsResult> InvokeAsync(GetRouterTrAssociationsArgs args, InvokeOptions? opts = null)
        public static Output<GetRouterTrAssociationsResult> Invoke(GetRouterTrAssociationsInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetRouterTrAssociationsResult> Invoke(GetRouterTrAssociationsInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetRouterTrAssociationsResult> getRouterTrAssociations(GetRouterTrAssociationsArgs args, InvokeOptions options)
    public static Output<GetRouterTrAssociationsResult> getRouterTrAssociations(GetRouterTrAssociationsArgs args, InvokeOptions options)
    public static Output<GetRouterTrAssociationsResult> getRouterTrAssociations(GetRouterTrAssociationsArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: alicloud:expressconnect/getRouterTrAssociations:getRouterTrAssociations
      arguments:
        # arguments dictionary
    data "alicloud_expressconnect_get_router_tr_associations" "name" {
        # arguments
    }

    The following arguments are supported:

    EcrId string
    The ID of the Express Connect Router instance.
    AssociationId string
    The ID of the association between the Express Connect Router and the TR.
    AssociationRegionId string
    The region ID of the associated TR.
    CenId string
    The ID of the Cloud Enterprise Network instance.
    Ids List<string>
    A list of Tr Association IDs.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Status string
    The status of the association. Valid values: CREATING, ACTIVE, INACTIVE, ASSOCIATING, DISSOCIATING, UPDATING, DELETING.
    TransitRouterId string
    The ID of the transit router instance.
    EcrId string
    The ID of the Express Connect Router instance.
    AssociationId string
    The ID of the association between the Express Connect Router and the TR.
    AssociationRegionId string
    The region ID of the associated TR.
    CenId string
    The ID of the Cloud Enterprise Network instance.
    Ids []string
    A list of Tr Association IDs.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Status string
    The status of the association. Valid values: CREATING, ACTIVE, INACTIVE, ASSOCIATING, DISSOCIATING, UPDATING, DELETING.
    TransitRouterId string
    The ID of the transit router instance.
    ecr_id string
    The ID of the Express Connect Router instance.
    association_id string
    The ID of the association between the Express Connect Router and the TR.
    association_region_id string
    The region ID of the associated TR.
    cen_id string
    The ID of the Cloud Enterprise Network instance.
    ids list(string)
    A list of Tr Association IDs.
    output_file string
    File name where to save data source results (after running pulumi preview).
    status string
    The status of the association. Valid values: CREATING, ACTIVE, INACTIVE, ASSOCIATING, DISSOCIATING, UPDATING, DELETING.
    transit_router_id string
    The ID of the transit router instance.
    ecrId String
    The ID of the Express Connect Router instance.
    associationId String
    The ID of the association between the Express Connect Router and the TR.
    associationRegionId String
    The region ID of the associated TR.
    cenId String
    The ID of the Cloud Enterprise Network instance.
    ids List<String>
    A list of Tr Association IDs.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    status String
    The status of the association. Valid values: CREATING, ACTIVE, INACTIVE, ASSOCIATING, DISSOCIATING, UPDATING, DELETING.
    transitRouterId String
    The ID of the transit router instance.
    ecrId string
    The ID of the Express Connect Router instance.
    associationId string
    The ID of the association between the Express Connect Router and the TR.
    associationRegionId string
    The region ID of the associated TR.
    cenId string
    The ID of the Cloud Enterprise Network instance.
    ids string[]
    A list of Tr Association IDs.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    status string
    The status of the association. Valid values: CREATING, ACTIVE, INACTIVE, ASSOCIATING, DISSOCIATING, UPDATING, DELETING.
    transitRouterId string
    The ID of the transit router instance.
    ecr_id str
    The ID of the Express Connect Router instance.
    association_id str
    The ID of the association between the Express Connect Router and the TR.
    association_region_id str
    The region ID of the associated TR.
    cen_id str
    The ID of the Cloud Enterprise Network instance.
    ids Sequence[str]
    A list of Tr Association IDs.
    output_file str
    File name where to save data source results (after running pulumi preview).
    status str
    The status of the association. Valid values: CREATING, ACTIVE, INACTIVE, ASSOCIATING, DISSOCIATING, UPDATING, DELETING.
    transit_router_id str
    The ID of the transit router instance.
    ecrId String
    The ID of the Express Connect Router instance.
    associationId String
    The ID of the association between the Express Connect Router and the TR.
    associationRegionId String
    The region ID of the associated TR.
    cenId String
    The ID of the Cloud Enterprise Network instance.
    ids List<String>
    A list of Tr Association IDs.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    status String
    The status of the association. Valid values: CREATING, ACTIVE, INACTIVE, ASSOCIATING, DISSOCIATING, UPDATING, DELETING.
    transitRouterId String
    The ID of the transit router instance.

    getRouterTrAssociations Result

    The following output properties are available:

    Associations List<Pulumi.AliCloud.ExpressConnect.Outputs.GetRouterTrAssociationsAssociation>
    A list of Tr Associations. Each element contains the following attributes:
    EcrId string
    The ID of the Express Connect Router instance.
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    AssociationId string
    The ID of the association between the Express Connect Router and the TR.
    AssociationRegionId string
    CenId string
    The ID of the CEN instance.
    OutputFile string
    Status string
    The status of the association.
    TransitRouterId string
    The ID of the TR instance.
    Associations []GetRouterTrAssociationsAssociation
    A list of Tr Associations. Each element contains the following attributes:
    EcrId string
    The ID of the Express Connect Router instance.
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    AssociationId string
    The ID of the association between the Express Connect Router and the TR.
    AssociationRegionId string
    CenId string
    The ID of the CEN instance.
    OutputFile string
    Status string
    The status of the association.
    TransitRouterId string
    The ID of the TR instance.
    associations list(object)
    A list of Tr Associations. Each element contains the following attributes:
    ecr_id string
    The ID of the Express Connect Router instance.
    id string
    The provider-assigned unique ID for this managed resource.
    ids list(string)
    association_id string
    The ID of the association between the Express Connect Router and the TR.
    association_region_id string
    cen_id string
    The ID of the CEN instance.
    output_file string
    status string
    The status of the association.
    transit_router_id string
    The ID of the TR instance.
    associations List<GetRouterTrAssociationsAssociation>
    A list of Tr Associations. Each element contains the following attributes:
    ecrId String
    The ID of the Express Connect Router instance.
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    associationId String
    The ID of the association between the Express Connect Router and the TR.
    associationRegionId String
    cenId String
    The ID of the CEN instance.
    outputFile String
    status String
    The status of the association.
    transitRouterId String
    The ID of the TR instance.
    associations GetRouterTrAssociationsAssociation[]
    A list of Tr Associations. Each element contains the following attributes:
    ecrId string
    The ID of the Express Connect Router instance.
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    associationId string
    The ID of the association between the Express Connect Router and the TR.
    associationRegionId string
    cenId string
    The ID of the CEN instance.
    outputFile string
    status string
    The status of the association.
    transitRouterId string
    The ID of the TR instance.
    associations Sequence[GetRouterTrAssociationsAssociation]
    A list of Tr Associations. Each element contains the following attributes:
    ecr_id str
    The ID of the Express Connect Router instance.
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    association_id str
    The ID of the association between the Express Connect Router and the TR.
    association_region_id str
    cen_id str
    The ID of the CEN instance.
    output_file str
    status str
    The status of the association.
    transit_router_id str
    The ID of the TR instance.
    associations List<Property Map>
    A list of Tr Associations. Each element contains the following attributes:
    ecrId String
    The ID of the Express Connect Router instance.
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    associationId String
    The ID of the association between the Express Connect Router and the TR.
    associationRegionId String
    cenId String
    The ID of the CEN instance.
    outputFile String
    status String
    The status of the association.
    transitRouterId String
    The ID of the TR instance.

    Supporting Types

    GetRouterTrAssociationsAssociation

    AllowedPrefixes List<string>
    The prefix-based routing mode.
    AllowedPrefixesMode string
    The prefix-based routing mode.
    AssociationId string
    The ID of the association between the Express Connect Router and the TR.
    AssociationNodeType string
    The type of the associated resource.
    CenId string
    The ID of the Cloud Enterprise Network instance.
    CreateTime string
    The time when the association was created.
    EcrId string
    The ID of the Express Connect Router instance.
    Id string
    The ID of the Tr Association.
    ModifyTime string
    The time when the association was modified.
    Status string
    The status of the association. Valid values: CREATING, ACTIVE, INACTIVE, ASSOCIATING, DISSOCIATING, UPDATING, DELETING.
    TransitRouterId string
    The ID of the transit router instance.
    TransitRouterOwnerId string
    The ID of the Alibaba Cloud account that owns the TR.
    AllowedPrefixes []string
    The prefix-based routing mode.
    AllowedPrefixesMode string
    The prefix-based routing mode.
    AssociationId string
    The ID of the association between the Express Connect Router and the TR.
    AssociationNodeType string
    The type of the associated resource.
    CenId string
    The ID of the Cloud Enterprise Network instance.
    CreateTime string
    The time when the association was created.
    EcrId string
    The ID of the Express Connect Router instance.
    Id string
    The ID of the Tr Association.
    ModifyTime string
    The time when the association was modified.
    Status string
    The status of the association. Valid values: CREATING, ACTIVE, INACTIVE, ASSOCIATING, DISSOCIATING, UPDATING, DELETING.
    TransitRouterId string
    The ID of the transit router instance.
    TransitRouterOwnerId string
    The ID of the Alibaba Cloud account that owns the TR.
    allowed_prefixes list(string)
    The prefix-based routing mode.
    allowed_prefixes_mode string
    The prefix-based routing mode.
    association_id string
    The ID of the association between the Express Connect Router and the TR.
    association_node_type string
    The type of the associated resource.
    cen_id string
    The ID of the Cloud Enterprise Network instance.
    create_time string
    The time when the association was created.
    ecr_id string
    The ID of the Express Connect Router instance.
    id string
    The ID of the Tr Association.
    modify_time string
    The time when the association was modified.
    status string
    The status of the association. Valid values: CREATING, ACTIVE, INACTIVE, ASSOCIATING, DISSOCIATING, UPDATING, DELETING.
    transit_router_id string
    The ID of the transit router instance.
    transit_router_owner_id string
    The ID of the Alibaba Cloud account that owns the TR.
    allowedPrefixes List<String>
    The prefix-based routing mode.
    allowedPrefixesMode String
    The prefix-based routing mode.
    associationId String
    The ID of the association between the Express Connect Router and the TR.
    associationNodeType String
    The type of the associated resource.
    cenId String
    The ID of the Cloud Enterprise Network instance.
    createTime String
    The time when the association was created.
    ecrId String
    The ID of the Express Connect Router instance.
    id String
    The ID of the Tr Association.
    modifyTime String
    The time when the association was modified.
    status String
    The status of the association. Valid values: CREATING, ACTIVE, INACTIVE, ASSOCIATING, DISSOCIATING, UPDATING, DELETING.
    transitRouterId String
    The ID of the transit router instance.
    transitRouterOwnerId String
    The ID of the Alibaba Cloud account that owns the TR.
    allowedPrefixes string[]
    The prefix-based routing mode.
    allowedPrefixesMode string
    The prefix-based routing mode.
    associationId string
    The ID of the association between the Express Connect Router and the TR.
    associationNodeType string
    The type of the associated resource.
    cenId string
    The ID of the Cloud Enterprise Network instance.
    createTime string
    The time when the association was created.
    ecrId string
    The ID of the Express Connect Router instance.
    id string
    The ID of the Tr Association.
    modifyTime string
    The time when the association was modified.
    status string
    The status of the association. Valid values: CREATING, ACTIVE, INACTIVE, ASSOCIATING, DISSOCIATING, UPDATING, DELETING.
    transitRouterId string
    The ID of the transit router instance.
    transitRouterOwnerId string
    The ID of the Alibaba Cloud account that owns the TR.
    allowed_prefixes Sequence[str]
    The prefix-based routing mode.
    allowed_prefixes_mode str
    The prefix-based routing mode.
    association_id str
    The ID of the association between the Express Connect Router and the TR.
    association_node_type str
    The type of the associated resource.
    cen_id str
    The ID of the Cloud Enterprise Network instance.
    create_time str
    The time when the association was created.
    ecr_id str
    The ID of the Express Connect Router instance.
    id str
    The ID of the Tr Association.
    modify_time str
    The time when the association was modified.
    status str
    The status of the association. Valid values: CREATING, ACTIVE, INACTIVE, ASSOCIATING, DISSOCIATING, UPDATING, DELETING.
    transit_router_id str
    The ID of the transit router instance.
    transit_router_owner_id str
    The ID of the Alibaba Cloud account that owns the TR.
    allowedPrefixes List<String>
    The prefix-based routing mode.
    allowedPrefixesMode String
    The prefix-based routing mode.
    associationId String
    The ID of the association between the Express Connect Router and the TR.
    associationNodeType String
    The type of the associated resource.
    cenId String
    The ID of the Cloud Enterprise Network instance.
    createTime String
    The time when the association was created.
    ecrId String
    The ID of the Express Connect Router instance.
    id String
    The ID of the Tr Association.
    modifyTime String
    The time when the association was modified.
    status String
    The status of the association. Valid values: CREATING, ACTIVE, INACTIVE, ASSOCIATING, DISSOCIATING, UPDATING, DELETING.
    transitRouterId String
    The ID of the transit router instance.
    transitRouterOwnerId String
    The ID of the Alibaba Cloud account that owns the TR.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo alicloud logo
    Viewing docs for Alibaba Cloud v3.105.0
    published on Thursday, Jul 16, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial