Alibaba Cloud v3.88.1 published on Saturday, Nov 8, 2025 by Pulumi
Alibaba Cloud v3.88.1 published on Saturday, Nov 8, 2025 by Pulumi
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:
- Transit
Router stringId - The ID of the transit router.
- Transit
Router 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.
- Output
File string - 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 stringId - The ID of the prefix list.
- Status string
- The status of the prefix list. Valid Value:
Active,Updating.
- Transit
Router stringId - The ID of the transit router.
- Transit
Router stringTable Id - The ID of the route table of the transit router.
- Ids []string
- A list of Cen Transit Router Prefix List Association IDs.
- Output
File string - 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 stringId - The ID of the prefix list.
- Status string
- The status of the prefix list. Valid Value:
Active,Updating.
- transit
Router StringId - The ID of the transit router.
- transit
Router 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.
- output
File String - File name where to save data source results (after running
pulumi preview). - owner
Uid Integer - The ID of the Alibaba Cloud account to which the prefix list belongs.
- page
Number Integer - page
Size Integer - prefix
List StringId - The ID of the prefix list.
- status String
- The status of the prefix list. Valid Value:
Active,Updating.
- transit
Router stringId - The ID of the transit router.
- transit
Router stringTable Id - The ID of the route table of the transit router.
- ids string[]
- A list of Cen Transit Router Prefix List Association IDs.
- output
File string - File name where to save data source results (after running
pulumi preview). - owner
Uid number - The ID of the Alibaba Cloud account to which the prefix list belongs.
- page
Number number - page
Size number - prefix
List 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.
- transit
Router StringId - The ID of the transit router.
- transit
Router 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.
- output
File String - File name where to save data source results (after running
pulumi preview). - owner
Uid Number - The ID of the Alibaba Cloud account to which the prefix list belongs.
- page
Number Number - page
Size Number - prefix
List 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>
- Transit
Router stringId - Transit
Router stringTable Id - Output
File string - Owner
Uid int - Page
Number int - Page
Size int - Prefix
List stringId - Status string
- Associations
[]Get
Transit Router Prefix List Associations Association - Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Transit
Router stringId - Transit
Router stringTable Id - Output
File string - Owner
Uid int - Page
Number int - Page
Size int - Prefix
List stringId - Status string
- associations
List<Get
Transit Router Prefix List Associations Association> - id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- transit
Router StringId - transit
Router StringTable Id - output
File String - owner
Uid Integer - page
Number Integer - page
Size Integer - prefix
List StringId - status String
- associations
Get
Transit Router Prefix List Associations Association[] - id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- transit
Router stringId - transit
Router stringTable Id - output
File string - owner
Uid number - page
Number number - page
Size number - prefix
List stringId - status string
- associations
Sequence[Get
Transit 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>
- transit
Router StringId - transit
Router StringTable Id - output
File String - owner
Uid Number - page
Number Number - page
Size Number - prefix
List 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>. - Next
Hop string - The ID of the next hop connection.
- Next
Hop stringInstance Id - The ID of the network instance associated with the next hop connection.
- Next
Hop stringType - The type of the next hop.
- Owner
Uid int - The ID of the Alibaba Cloud account to which the prefix list belongs.
- Prefix
List stringId - The ID of the prefix list.
- Status string
- The status of the prefix list.
- Transit
Router stringId - The ID of the transit router.
- Transit
Router 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>. - Next
Hop string - The ID of the next hop connection.
- Next
Hop stringInstance Id - The ID of the network instance associated with the next hop connection.
- Next
Hop stringType - The type of the next hop.
- Owner
Uid int - The ID of the Alibaba Cloud account to which the prefix list belongs.
- Prefix
List stringId - The ID of the prefix list.
- Status string
- The status of the prefix list.
- Transit
Router stringId - The ID of the transit router.
- Transit
Router 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>. - next
Hop String - The ID of the next hop connection.
- next
Hop StringInstance Id - The ID of the network instance associated with the next hop connection.
- next
Hop StringType - The type of the next hop.
- owner
Uid Integer - The ID of the Alibaba Cloud account to which the prefix list belongs.
- prefix
List StringId - The ID of the prefix list.
- status String
- The status of the prefix list.
- transit
Router StringId - The ID of the transit router.
- transit
Router 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>. - next
Hop string - The ID of the next hop connection.
- next
Hop stringInstance Id - The ID of the network instance associated with the next hop connection.
- next
Hop stringType - The type of the next hop.
- owner
Uid number - The ID of the Alibaba Cloud account to which the prefix list belongs.
- prefix
List stringId - The ID of the prefix list.
- status string
- The status of the prefix list.
- transit
Router stringId - The ID of the transit router.
- transit
Router 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>. - next
Hop String - The ID of the next hop connection.
- next
Hop StringInstance Id - The ID of the network instance associated with the next hop connection.
- next
Hop StringType - The type of the next hop.
- owner
Uid Number - The ID of the Alibaba Cloud account to which the prefix list belongs.
- prefix
List StringId - The ID of the prefix list.
- status String
- The status of the prefix list.
- transit
Router StringId - The ID of the transit router.
- transit
Router 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.
Alibaba Cloud v3.88.1 published on Saturday, Nov 8, 2025 by Pulumi
