Alibaba Cloud v3.75.0 published on Friday, Mar 7, 2025 by Pulumi
alicloud.cen.getTransitRouterPrefixListAssociations
Explore with Pulumi AI
This data source provides the Cen Transit Router Prefix List Associations of the current Alibaba Cloud user.
NOTE: Available in v1.188.0+.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const _default = alicloud.cen.getTransitRouterPrefixListAssociations({
    transitRouterId: "tr-6ehx7q2jze8ch5ji0****",
    transitRouterTableId: "vtb-6ehgc262hr170qgyc****",
});
export const cenTransitRouterPrefixListAssociationId = _default.then(_default => _default.associations?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.cen.get_transit_router_prefix_list_associations(transit_router_id="tr-6ehx7q2jze8ch5ji0****",
    transit_router_table_id="vtb-6ehgc262hr170qgyc****")
pulumi.export("cenTransitRouterPrefixListAssociationId", default.associations[0].id)
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.GetTransitRouterPrefixListAssociations(ctx, &cen.GetTransitRouterPrefixListAssociationsArgs{
			TransitRouterId:      "tr-6ehx7q2jze8ch5ji0****",
			TransitRouterTableId: "vtb-6ehgc262hr170qgyc****",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("cenTransitRouterPrefixListAssociationId", _default.Associations[0].Id)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() => 
{
    var @default = AliCloud.Cen.GetTransitRouterPrefixListAssociations.Invoke(new()
    {
        TransitRouterId = "tr-6ehx7q2jze8ch5ji0****",
        TransitRouterTableId = "vtb-6ehgc262hr170qgyc****",
    });
    return new Dictionary<string, object?>
    {
        ["cenTransitRouterPrefixListAssociationId"] = @default.Apply(@default => @default.Apply(getTransitRouterPrefixListAssociationsResult => getTransitRouterPrefixListAssociationsResult.Associations[0]?.Id)),
    };
});
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.GetTransitRouterPrefixListAssociationsArgs;
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.getTransitRouterPrefixListAssociations(GetTransitRouterPrefixListAssociationsArgs.builder()
            .transitRouterId("tr-6ehx7q2jze8ch5ji0****")
            .transitRouterTableId("vtb-6ehgc262hr170qgyc****")
            .build());
        ctx.export("cenTransitRouterPrefixListAssociationId", default_.associations()[0].id());
    }
}
variables:
  default:
    fn::invoke:
      function: alicloud:cen:getTransitRouterPrefixListAssociations
      arguments:
        transitRouterId: tr-6ehx7q2jze8ch5ji0****
        transitRouterTableId: vtb-6ehgc262hr170qgyc****
outputs:
  cenTransitRouterPrefixListAssociationId: ${default.associations[0].id}
Using getTransitRouterPrefixListAssociations
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 getTransitRouterPrefixListAssociations(args: GetTransitRouterPrefixListAssociationsArgs, opts?: InvokeOptions): Promise<GetTransitRouterPrefixListAssociationsResult>
function getTransitRouterPrefixListAssociationsOutput(args: GetTransitRouterPrefixListAssociationsOutputArgs, opts?: InvokeOptions): Output<GetTransitRouterPrefixListAssociationsResult>def get_transit_router_prefix_list_associations(ids: Optional[Sequence[str]] = None,
                                                output_file: Optional[str] = None,
                                                owner_uid: Optional[int] = None,
                                                page_number: Optional[int] = None,
                                                page_size: Optional[int] = None,
                                                prefix_list_id: Optional[str] = None,
                                                status: Optional[str] = None,
                                                transit_router_id: Optional[str] = None,
                                                transit_router_table_id: Optional[str] = None,
                                                opts: Optional[InvokeOptions] = None) -> GetTransitRouterPrefixListAssociationsResult
def get_transit_router_prefix_list_associations_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                                output_file: Optional[pulumi.Input[str]] = None,
                                                owner_uid: Optional[pulumi.Input[int]] = None,
                                                page_number: Optional[pulumi.Input[int]] = None,
                                                page_size: Optional[pulumi.Input[int]] = None,
                                                prefix_list_id: Optional[pulumi.Input[str]] = None,
                                                status: Optional[pulumi.Input[str]] = None,
                                                transit_router_id: Optional[pulumi.Input[str]] = None,
                                                transit_router_table_id: Optional[pulumi.Input[str]] = None,
                                                opts: Optional[InvokeOptions] = None) -> Output[GetTransitRouterPrefixListAssociationsResult]func GetTransitRouterPrefixListAssociations(ctx *Context, args *GetTransitRouterPrefixListAssociationsArgs, opts ...InvokeOption) (*GetTransitRouterPrefixListAssociationsResult, error)
func GetTransitRouterPrefixListAssociationsOutput(ctx *Context, args *GetTransitRouterPrefixListAssociationsOutputArgs, opts ...InvokeOption) GetTransitRouterPrefixListAssociationsResultOutput> Note: This function is named GetTransitRouterPrefixListAssociations in the Go SDK.
public static class GetTransitRouterPrefixListAssociations 
{
    public static Task<GetTransitRouterPrefixListAssociationsResult> InvokeAsync(GetTransitRouterPrefixListAssociationsArgs args, InvokeOptions? opts = null)
    public static Output<GetTransitRouterPrefixListAssociationsResult> Invoke(GetTransitRouterPrefixListAssociationsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetTransitRouterPrefixListAssociationsResult> getTransitRouterPrefixListAssociations(GetTransitRouterPrefixListAssociationsArgs args, InvokeOptions options)
public static Output<GetTransitRouterPrefixListAssociationsResult> getTransitRouterPrefixListAssociations(GetTransitRouterPrefixListAssociationsArgs args, InvokeOptions options)
fn::invoke:
  function: alicloud:cen/getTransitRouterPrefixListAssociations:getTransitRouterPrefixListAssociations
  arguments:
    # arguments dictionaryThe following arguments are supported:
- TransitRouter stringId 
- The ID of the transit router.
- TransitRouter stringTable Id 
- The ID of the route table of the transit router.
- Ids List<string>
- A list of Cen Transit Router Prefix List Association IDs.
- OutputFile string
- File name where to save data source results (after running pulumi preview).
- OwnerUid int
- The ID of the Alibaba Cloud account to which the prefix list belongs.
- PageNumber int
- PageSize int
- PrefixList stringId 
- The ID of the prefix list.
- Status string
- The status of the prefix list. Valid Value: Active,Updating.
- TransitRouter stringId 
- The ID of the transit router.
- TransitRouter stringTable Id 
- The ID of the route table of the transit router.
- Ids []string
- A list of Cen Transit Router Prefix List Association IDs.
- OutputFile string
- File name where to save data source results (after running pulumi preview).
- OwnerUid int
- The ID of the Alibaba Cloud account to which the prefix list belongs.
- PageNumber int
- PageSize int
- PrefixList stringId 
- The ID of the prefix list.
- Status string
- The status of the prefix list. Valid Value: Active,Updating.
- transitRouter StringId 
- The ID of the transit router.
- transitRouter StringTable Id 
- The ID of the route table of the transit router.
- ids List<String>
- A list of Cen Transit Router Prefix List Association IDs.
- outputFile String
- File name where to save data source results (after running pulumi preview).
- ownerUid Integer
- The ID of the Alibaba Cloud account to which the prefix list belongs.
- pageNumber Integer
- pageSize Integer
- prefixList StringId 
- The ID of the prefix list.
- status String
- The status of the prefix list. Valid Value: Active,Updating.
- transitRouter stringId 
- The ID of the transit router.
- transitRouter stringTable Id 
- The ID of the route table of the transit router.
- ids string[]
- A list of Cen Transit Router Prefix List Association IDs.
- outputFile string
- File name where to save data source results (after running pulumi preview).
- ownerUid number
- The ID of the Alibaba Cloud account to which the prefix list belongs.
- pageNumber number
- pageSize number
- prefixList stringId 
- The ID of the prefix list.
- status string
- The status of the prefix list. Valid Value: Active,Updating.
- transit_router_ strid 
- The ID of the transit router.
- transit_router_ strtable_ id 
- The ID of the route table of the transit router.
- ids Sequence[str]
- A list of Cen Transit Router Prefix List Association IDs.
- output_file str
- File name where to save data source results (after running pulumi preview).
- owner_uid int
- The ID of the Alibaba Cloud account to which the prefix list belongs.
- page_number int
- page_size int
- prefix_list_ strid 
- The ID of the prefix list.
- status str
- The status of the prefix list. Valid Value: Active,Updating.
- transitRouter StringId 
- The ID of the transit router.
- transitRouter StringTable Id 
- The ID of the route table of the transit router.
- ids List<String>
- A list of Cen Transit Router Prefix List Association IDs.
- outputFile String
- File name where to save data source results (after running pulumi preview).
- ownerUid Number
- The ID of the Alibaba Cloud account to which the prefix list belongs.
- pageNumber Number
- pageSize Number
- prefixList StringId 
- The ID of the prefix list.
- status String
- The status of the prefix list. Valid Value: Active,Updating.
getTransitRouterPrefixListAssociations Result
The following output properties are available:
- Associations
List<Pulumi.Ali Cloud. Cen. Outputs. Get Transit Router Prefix List Associations Association> 
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- TransitRouter stringId 
- TransitRouter stringTable Id 
- OutputFile string
- OwnerUid int
- PageNumber int
- PageSize int
- PrefixList stringId 
- Status string
- Associations
[]GetTransit Router Prefix List Associations Association 
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- TransitRouter stringId 
- TransitRouter stringTable Id 
- OutputFile string
- OwnerUid int
- PageNumber int
- PageSize int
- PrefixList stringId 
- Status string
- associations
List<GetTransit Router Prefix List Associations Association> 
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- transitRouter StringId 
- transitRouter StringTable Id 
- outputFile String
- ownerUid Integer
- pageNumber Integer
- pageSize Integer
- prefixList StringId 
- status String
- associations
GetTransit Router Prefix List Associations Association[] 
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- transitRouter stringId 
- transitRouter stringTable Id 
- outputFile string
- ownerUid number
- pageNumber number
- pageSize number
- prefixList stringId 
- status string
- associations
Sequence[GetTransit Router Prefix List Associations Association] 
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- transit_router_ strid 
- transit_router_ strtable_ id 
- output_file str
- owner_uid int
- page_number int
- page_size int
- prefix_list_ strid 
- status str
- associations List<Property Map>
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- transitRouter StringId 
- transitRouter StringTable Id 
- outputFile String
- ownerUid Number
- pageNumber Number
- pageSize Number
- prefixList StringId 
- status String
Supporting Types
GetTransitRouterPrefixListAssociationsAssociation      
- Id string
- The ID of the Cen Transit Router Prefix List Association. It formats as <prefix_list_id>:<transit_router_id>:<transit_router_table_id>:<next_hop>.
- NextHop string
- The ID of the next hop connection.
- NextHop stringInstance Id 
- The ID of the network instance associated with the next hop connection.
- NextHop stringType 
- The type of the next hop.
- OwnerUid int
- The ID of the Alibaba Cloud account to which the prefix list belongs.
- PrefixList stringId 
- The ID of the prefix list.
- Status string
- The status of the prefix list.
- TransitRouter stringId 
- The ID of the transit router.
- TransitRouter stringTable Id 
- The ID of the route table of the transit router.
- Id string
- The ID of the Cen Transit Router Prefix List Association. It formats as <prefix_list_id>:<transit_router_id>:<transit_router_table_id>:<next_hop>.
- NextHop string
- The ID of the next hop connection.
- NextHop stringInstance Id 
- The ID of the network instance associated with the next hop connection.
- NextHop stringType 
- The type of the next hop.
- OwnerUid int
- The ID of the Alibaba Cloud account to which the prefix list belongs.
- PrefixList stringId 
- The ID of the prefix list.
- Status string
- The status of the prefix list.
- TransitRouter stringId 
- The ID of the transit router.
- TransitRouter stringTable Id 
- The ID of the route table of the transit router.
- id String
- The ID of the Cen Transit Router Prefix List Association. It formats as <prefix_list_id>:<transit_router_id>:<transit_router_table_id>:<next_hop>.
- nextHop String
- The ID of the next hop connection.
- nextHop StringInstance Id 
- The ID of the network instance associated with the next hop connection.
- nextHop StringType 
- The type of the next hop.
- ownerUid Integer
- The ID of the Alibaba Cloud account to which the prefix list belongs.
- prefixList StringId 
- The ID of the prefix list.
- status String
- The status of the prefix list.
- transitRouter StringId 
- The ID of the transit router.
- transitRouter StringTable Id 
- The ID of the route table of the transit router.
- id string
- The ID of the Cen Transit Router Prefix List Association. It formats as <prefix_list_id>:<transit_router_id>:<transit_router_table_id>:<next_hop>.
- nextHop string
- The ID of the next hop connection.
- nextHop stringInstance Id 
- The ID of the network instance associated with the next hop connection.
- nextHop stringType 
- The type of the next hop.
- ownerUid number
- The ID of the Alibaba Cloud account to which the prefix list belongs.
- prefixList stringId 
- The ID of the prefix list.
- status string
- The status of the prefix list.
- transitRouter stringId 
- The ID of the transit router.
- transitRouter stringTable Id 
- The ID of the route table of the transit router.
- id str
- The ID of the Cen Transit Router Prefix List Association. It formats as <prefix_list_id>:<transit_router_id>:<transit_router_table_id>:<next_hop>.
- next_hop str
- The ID of the next hop connection.
- next_hop_ strinstance_ id 
- The ID of the network instance associated with the next hop connection.
- next_hop_ strtype 
- The type of the next hop.
- owner_uid int
- The ID of the Alibaba Cloud account to which the prefix list belongs.
- prefix_list_ strid 
- The ID of the prefix list.
- status str
- The status of the prefix list.
- transit_router_ strid 
- The ID of the transit router.
- transit_router_ strtable_ id 
- The ID of the route table of the transit router.
- id String
- The ID of the Cen Transit Router Prefix List Association. It formats as <prefix_list_id>:<transit_router_id>:<transit_router_table_id>:<next_hop>.
- nextHop String
- The ID of the next hop connection.
- nextHop StringInstance Id 
- The ID of the network instance associated with the next hop connection.
- nextHop StringType 
- The type of the next hop.
- ownerUid Number
- The ID of the Alibaba Cloud account to which the prefix list belongs.
- prefixList StringId 
- The ID of the prefix list.
- status String
- The status of the prefix list.
- transitRouter StringId 
- The ID of the transit router.
- transitRouter StringTable Id 
- The ID of the route table of the transit router.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the alicloudTerraform Provider.