alicloud.cen.getTransitRouterPrefixListAssociations

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

using System.Collections.Generic;
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 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
	})
}
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());
    }
}
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)
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);
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)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: alicloud:cen/getTransitRouterPrefixListAssociations:getTransitRouterPrefixListAssociations
  arguments:
    # arguments dictionary

The following arguments are supported:

TransitRouterId string

The ID of the transit router.

TransitRouterTableId string

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
OwnerUid int

The ID of the Alibaba Cloud account to which the prefix list belongs.

PageNumber int
PageSize int
PrefixListId string

The ID of the prefix list.

Status string

The status of the prefix list.

TransitRouterId string

The ID of the transit router.

TransitRouterTableId string

The ID of the route table of the transit router.

Ids []string

A list of Cen Transit Router Prefix List Association IDs.

OutputFile string
OwnerUid int

The ID of the Alibaba Cloud account to which the prefix list belongs.

PageNumber int
PageSize int
PrefixListId string

The ID of the prefix list.

Status string

The status of the prefix list.

transitRouterId String

The ID of the transit router.

transitRouterTableId String

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
ownerUid Integer

The ID of the Alibaba Cloud account to which the prefix list belongs.

pageNumber Integer
pageSize Integer
prefixListId String

The ID of the prefix list.

status String

The status of the prefix list.

transitRouterId string

The ID of the transit router.

transitRouterTableId string

The ID of the route table of the transit router.

ids string[]

A list of Cen Transit Router Prefix List Association IDs.

outputFile string
ownerUid number

The ID of the Alibaba Cloud account to which the prefix list belongs.

pageNumber number
pageSize number
prefixListId string

The ID of the prefix list.

status string

The status of the prefix list.

transit_router_id str

The ID of the transit router.

transit_router_table_id str

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
owner_uid int

The ID of the Alibaba Cloud account to which the prefix list belongs.

page_number int
page_size int
prefix_list_id str

The ID of the prefix list.

status str

The status of the prefix list.

transitRouterId String

The ID of the transit router.

transitRouterTableId String

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
ownerUid Number

The ID of the Alibaba Cloud account to which the prefix list belongs.

pageNumber Number
pageSize Number
prefixListId String

The ID of the prefix list.

status String

The status of the prefix list.

getTransitRouterPrefixListAssociations Result

The following output properties are available:

Associations List<Pulumi.AliCloud.Cen.Outputs.GetTransitRouterPrefixListAssociationsAssociation>
Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>
TransitRouterId string
TransitRouterTableId string
OutputFile string
OwnerUid int
PageNumber int
PageSize int
PrefixListId string
Status string
Associations []GetTransitRouterPrefixListAssociationsAssociation
Id string

The provider-assigned unique ID for this managed resource.

Ids []string
TransitRouterId string
TransitRouterTableId string
OutputFile string
OwnerUid int
PageNumber int
PageSize int
PrefixListId string
Status string
associations List<GetTransitRouterPrefixListAssociationsAssociation>
id String

The provider-assigned unique ID for this managed resource.

ids List<String>
transitRouterId String
transitRouterTableId String
outputFile String
ownerUid Integer
pageNumber Integer
pageSize Integer
prefixListId String
status String
associations GetTransitRouterPrefixListAssociationsAssociation[]
id string

The provider-assigned unique ID for this managed resource.

ids string[]
transitRouterId string
transitRouterTableId string
outputFile string
ownerUid number
pageNumber number
pageSize number
prefixListId string
status string
associations List<Property Map>
id String

The provider-assigned unique ID for this managed resource.

ids List<String>
transitRouterId String
transitRouterTableId String
outputFile String
ownerUid Number
pageNumber Number
pageSize Number
prefixListId String
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.

NextHopInstanceId string

The ID of the network instance associated with the next hop connection.

NextHopType string

The type of the next hop.

OwnerUid int

The ID of the Alibaba Cloud account to which the prefix list belongs.

PrefixListId string

The ID of the prefix list.

Status string

The status of the prefix list.

TransitRouterId string

The ID of the transit router.

TransitRouterTableId string

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.

NextHopInstanceId string

The ID of the network instance associated with the next hop connection.

NextHopType string

The type of the next hop.

OwnerUid int

The ID of the Alibaba Cloud account to which the prefix list belongs.

PrefixListId string

The ID of the prefix list.

Status string

The status of the prefix list.

TransitRouterId string

The ID of the transit router.

TransitRouterTableId string

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.

nextHopInstanceId String

The ID of the network instance associated with the next hop connection.

nextHopType String

The type of the next hop.

ownerUid Integer

The ID of the Alibaba Cloud account to which the prefix list belongs.

prefixListId String

The ID of the prefix list.

status String

The status of the prefix list.

transitRouterId String

The ID of the transit router.

transitRouterTableId String

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.

nextHopInstanceId string

The ID of the network instance associated with the next hop connection.

nextHopType string

The type of the next hop.

ownerUid number

The ID of the Alibaba Cloud account to which the prefix list belongs.

prefixListId string

The ID of the prefix list.

status string

The status of the prefix list.

transitRouterId string

The ID of the transit router.

transitRouterTableId string

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_instance_id str

The ID of the network instance associated with the next hop connection.

next_hop_type str

The type of the next hop.

owner_uid int

The ID of the Alibaba Cloud account to which the prefix list belongs.

prefix_list_id str

The ID of the prefix list.

status str

The status of the prefix list.

transit_router_id str

The ID of the transit router.

transit_router_table_id str

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.

nextHopInstanceId String

The ID of the network instance associated with the next hop connection.

nextHopType String

The type of the next hop.

ownerUid Number

The ID of the Alibaba Cloud account to which the prefix list belongs.

prefixListId String

The ID of the prefix list.

status String

The status of the prefix list.

transitRouterId String

The ID of the transit router.

transitRouterTableId String

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 alicloud Terraform Provider.