1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. cen
  5. getTransitRouteTableAggregations
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.cen.getTransitRouteTableAggregations

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

    This data source provides the Cen Transit Route Table Aggregations of the current Alibaba Cloud user.

    NOTE: Available in v1.202.0+.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const ids = alicloud.cen.getTransitRouteTableAggregations({
        ids: ["example_id"],
        transitRouteTableId: "your_transit_route_table_id",
    });
    export const cenTransitRouterMulticastDomainId0 = ids.then(ids => ids.transitRouteTableAggregations?.[0]?.id);
    const nameRegex = alicloud.cen.getTransitRouteTableAggregations({
        nameRegex: "^my-name",
        transitRouteTableId: "your_transit_route_table_id",
    });
    export const cenTransitRouterMulticastDomainId1 = nameRegex.then(nameRegex => nameRegex.transitRouteTableAggregations?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    ids = alicloud.cen.get_transit_route_table_aggregations(ids=["example_id"],
        transit_route_table_id="your_transit_route_table_id")
    pulumi.export("cenTransitRouterMulticastDomainId0", ids.transit_route_table_aggregations[0].id)
    name_regex = alicloud.cen.get_transit_route_table_aggregations(name_regex="^my-name",
        transit_route_table_id="your_transit_route_table_id")
    pulumi.export("cenTransitRouterMulticastDomainId1", name_regex.transit_route_table_aggregations[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 {
    		ids, err := cen.GetTransitRouteTableAggregations(ctx, &cen.GetTransitRouteTableAggregationsArgs{
    			Ids: []string{
    				"example_id",
    			},
    			TransitRouteTableId: "your_transit_route_table_id",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("cenTransitRouterMulticastDomainId0", ids.TransitRouteTableAggregations[0].Id)
    		nameRegex, err := cen.GetTransitRouteTableAggregations(ctx, &cen.GetTransitRouteTableAggregationsArgs{
    			NameRegex:           pulumi.StringRef("^my-name"),
    			TransitRouteTableId: "your_transit_route_table_id",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("cenTransitRouterMulticastDomainId1", nameRegex.TransitRouteTableAggregations[0].Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var ids = AliCloud.Cen.GetTransitRouteTableAggregations.Invoke(new()
        {
            Ids = new[]
            {
                "example_id",
            },
            TransitRouteTableId = "your_transit_route_table_id",
        });
    
        var nameRegex = AliCloud.Cen.GetTransitRouteTableAggregations.Invoke(new()
        {
            NameRegex = "^my-name",
            TransitRouteTableId = "your_transit_route_table_id",
        });
    
        return new Dictionary<string, object?>
        {
            ["cenTransitRouterMulticastDomainId0"] = ids.Apply(getTransitRouteTableAggregationsResult => getTransitRouteTableAggregationsResult.TransitRouteTableAggregations[0]?.Id),
            ["cenTransitRouterMulticastDomainId1"] = nameRegex.Apply(getTransitRouteTableAggregationsResult => getTransitRouteTableAggregationsResult.TransitRouteTableAggregations[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.GetTransitRouteTableAggregationsArgs;
    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 ids = CenFunctions.getTransitRouteTableAggregations(GetTransitRouteTableAggregationsArgs.builder()
                .ids("example_id")
                .transitRouteTableId("your_transit_route_table_id")
                .build());
    
            ctx.export("cenTransitRouterMulticastDomainId0", ids.applyValue(getTransitRouteTableAggregationsResult -> getTransitRouteTableAggregationsResult.transitRouteTableAggregations()[0].id()));
            final var nameRegex = CenFunctions.getTransitRouteTableAggregations(GetTransitRouteTableAggregationsArgs.builder()
                .nameRegex("^my-name")
                .transitRouteTableId("your_transit_route_table_id")
                .build());
    
            ctx.export("cenTransitRouterMulticastDomainId1", nameRegex.applyValue(getTransitRouteTableAggregationsResult -> getTransitRouteTableAggregationsResult.transitRouteTableAggregations()[0].id()));
        }
    }
    
    variables:
      ids:
        fn::invoke:
          Function: alicloud:cen:getTransitRouteTableAggregations
          Arguments:
            ids:
              - example_id
            transitRouteTableId: your_transit_route_table_id
      nameRegex:
        fn::invoke:
          Function: alicloud:cen:getTransitRouteTableAggregations
          Arguments:
            nameRegex: ^my-name
            transitRouteTableId: your_transit_route_table_id
    outputs:
      cenTransitRouterMulticastDomainId0: ${ids.transitRouteTableAggregations[0].id}
      cenTransitRouterMulticastDomainId1: ${nameRegex.transitRouteTableAggregations[0].id}
    

    Using getTransitRouteTableAggregations

    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 getTransitRouteTableAggregations(args: GetTransitRouteTableAggregationsArgs, opts?: InvokeOptions): Promise<GetTransitRouteTableAggregationsResult>
    function getTransitRouteTableAggregationsOutput(args: GetTransitRouteTableAggregationsOutputArgs, opts?: InvokeOptions): Output<GetTransitRouteTableAggregationsResult>
    def get_transit_route_table_aggregations(ids: Optional[Sequence[str]] = None,
                                             name_regex: Optional[str] = None,
                                             output_file: Optional[str] = None,
                                             status: Optional[str] = None,
                                             transit_route_table_aggregation_cidr: Optional[str] = None,
                                             transit_route_table_id: Optional[str] = None,
                                             opts: Optional[InvokeOptions] = None) -> GetTransitRouteTableAggregationsResult
    def get_transit_route_table_aggregations_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                             name_regex: Optional[pulumi.Input[str]] = None,
                                             output_file: Optional[pulumi.Input[str]] = None,
                                             status: Optional[pulumi.Input[str]] = None,
                                             transit_route_table_aggregation_cidr: Optional[pulumi.Input[str]] = None,
                                             transit_route_table_id: Optional[pulumi.Input[str]] = None,
                                             opts: Optional[InvokeOptions] = None) -> Output[GetTransitRouteTableAggregationsResult]
    func GetTransitRouteTableAggregations(ctx *Context, args *GetTransitRouteTableAggregationsArgs, opts ...InvokeOption) (*GetTransitRouteTableAggregationsResult, error)
    func GetTransitRouteTableAggregationsOutput(ctx *Context, args *GetTransitRouteTableAggregationsOutputArgs, opts ...InvokeOption) GetTransitRouteTableAggregationsResultOutput

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

    public static class GetTransitRouteTableAggregations 
    {
        public static Task<GetTransitRouteTableAggregationsResult> InvokeAsync(GetTransitRouteTableAggregationsArgs args, InvokeOptions? opts = null)
        public static Output<GetTransitRouteTableAggregationsResult> Invoke(GetTransitRouteTableAggregationsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTransitRouteTableAggregationsResult> getTransitRouteTableAggregations(GetTransitRouteTableAggregationsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:cen/getTransitRouteTableAggregations:getTransitRouteTableAggregations
      arguments:
        # arguments dictionary

    The following arguments are supported:

    TransitRouteTableId string
    The ID of the route table of the Enterprise Edition transit router.
    Ids List<string>
    A list of Transit Route Table Aggregation IDs.
    NameRegex string
    A regex string to filter results by Transit Route Table Aggregation name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Status string
    The status of Transit Route Table Aggregation. Valid Values: AllConfigured, Configuring, ConfigFailed, PartialConfigured, Deleting.
    TransitRouteTableAggregationCidr string
    The destination CIDR block of the aggregate route.
    TransitRouteTableId string
    The ID of the route table of the Enterprise Edition transit router.
    Ids []string
    A list of Transit Route Table Aggregation IDs.
    NameRegex string
    A regex string to filter results by Transit Route Table Aggregation name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Status string
    The status of Transit Route Table Aggregation. Valid Values: AllConfigured, Configuring, ConfigFailed, PartialConfigured, Deleting.
    TransitRouteTableAggregationCidr string
    The destination CIDR block of the aggregate route.
    transitRouteTableId String
    The ID of the route table of the Enterprise Edition transit router.
    ids List<String>
    A list of Transit Route Table Aggregation IDs.
    nameRegex String
    A regex string to filter results by Transit Route Table Aggregation name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    status String
    The status of Transit Route Table Aggregation. Valid Values: AllConfigured, Configuring, ConfigFailed, PartialConfigured, Deleting.
    transitRouteTableAggregationCidr String
    The destination CIDR block of the aggregate route.
    transitRouteTableId string
    The ID of the route table of the Enterprise Edition transit router.
    ids string[]
    A list of Transit Route Table Aggregation IDs.
    nameRegex string
    A regex string to filter results by Transit Route Table Aggregation name.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    status string
    The status of Transit Route Table Aggregation. Valid Values: AllConfigured, Configuring, ConfigFailed, PartialConfigured, Deleting.
    transitRouteTableAggregationCidr string
    The destination CIDR block of the aggregate route.
    transit_route_table_id str
    The ID of the route table of the Enterprise Edition transit router.
    ids Sequence[str]
    A list of Transit Route Table Aggregation IDs.
    name_regex str
    A regex string to filter results by Transit Route Table Aggregation name.
    output_file str
    File name where to save data source results (after running pulumi preview).
    status str
    The status of Transit Route Table Aggregation. Valid Values: AllConfigured, Configuring, ConfigFailed, PartialConfigured, Deleting.
    transit_route_table_aggregation_cidr str
    The destination CIDR block of the aggregate route.
    transitRouteTableId String
    The ID of the route table of the Enterprise Edition transit router.
    ids List<String>
    A list of Transit Route Table Aggregation IDs.
    nameRegex String
    A regex string to filter results by Transit Route Table Aggregation name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    status String
    The status of Transit Route Table Aggregation. Valid Values: AllConfigured, Configuring, ConfigFailed, PartialConfigured, Deleting.
    transitRouteTableAggregationCidr String
    The destination CIDR block of the aggregate route.

    getTransitRouteTableAggregations Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    Names List<string>
    A list of Transit Route Table Aggregation names.
    TransitRouteTableAggregations List<Pulumi.AliCloud.Cen.Outputs.GetTransitRouteTableAggregationsTransitRouteTableAggregation>
    A list of Cen Transit Route Table Aggregations. Each element contains the following attributes:
    TransitRouteTableId string
    The ID of the route table of the Enterprise Edition transit router.
    NameRegex string
    OutputFile string
    Status string
    The status of the Transit Route Table Aggregation.
    TransitRouteTableAggregationCidr string
    The destination CIDR block of the aggregate route.
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    Names []string
    A list of Transit Route Table Aggregation names.
    TransitRouteTableAggregations []GetTransitRouteTableAggregationsTransitRouteTableAggregation
    A list of Cen Transit Route Table Aggregations. Each element contains the following attributes:
    TransitRouteTableId string
    The ID of the route table of the Enterprise Edition transit router.
    NameRegex string
    OutputFile string
    Status string
    The status of the Transit Route Table Aggregation.
    TransitRouteTableAggregationCidr string
    The destination CIDR block of the aggregate route.
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    names List<String>
    A list of Transit Route Table Aggregation names.
    transitRouteTableAggregations List<GetTransitRouteTableAggregationsTransitRouteTableAggregation>
    A list of Cen Transit Route Table Aggregations. Each element contains the following attributes:
    transitRouteTableId String
    The ID of the route table of the Enterprise Edition transit router.
    nameRegex String
    outputFile String
    status String
    The status of the Transit Route Table Aggregation.
    transitRouteTableAggregationCidr String
    The destination CIDR block of the aggregate route.
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    names string[]
    A list of Transit Route Table Aggregation names.
    transitRouteTableAggregations GetTransitRouteTableAggregationsTransitRouteTableAggregation[]
    A list of Cen Transit Route Table Aggregations. Each element contains the following attributes:
    transitRouteTableId string
    The ID of the route table of the Enterprise Edition transit router.
    nameRegex string
    outputFile string
    status string
    The status of the Transit Route Table Aggregation.
    transitRouteTableAggregationCidr string
    The destination CIDR block of the aggregate route.
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    names Sequence[str]
    A list of Transit Route Table Aggregation names.
    transit_route_table_aggregations Sequence[GetTransitRouteTableAggregationsTransitRouteTableAggregation]
    A list of Cen Transit Route Table Aggregations. Each element contains the following attributes:
    transit_route_table_id str
    The ID of the route table of the Enterprise Edition transit router.
    name_regex str
    output_file str
    status str
    The status of the Transit Route Table Aggregation.
    transit_route_table_aggregation_cidr str
    The destination CIDR block of the aggregate route.
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    names List<String>
    A list of Transit Route Table Aggregation names.
    transitRouteTableAggregations List<Property Map>
    A list of Cen Transit Route Table Aggregations. Each element contains the following attributes:
    transitRouteTableId String
    The ID of the route table of the Enterprise Edition transit router.
    nameRegex String
    outputFile String
    status String
    The status of the Transit Route Table Aggregation.
    transitRouteTableAggregationCidr String
    The destination CIDR block of the aggregate route.

    Supporting Types

    GetTransitRouteTableAggregationsTransitRouteTableAggregation

    Id string
    The ID of the Transit Route Table Aggregation. It formats as <transit_route_table_id>:<transit_route_table_aggregation_cidr>.
    RouteType string
    The route type of the aggregate route.
    Status string
    The status of Transit Route Table Aggregation. Valid Values: AllConfigured, Configuring, ConfigFailed, PartialConfigured, Deleting.
    TransitRouteTableAggregationCidr string
    The destination CIDR block of the aggregate route.
    TransitRouteTableAggregationDescription string
    The description of the aggregate route.
    TransitRouteTableAggregationName string
    The name of the aggregate route.
    TransitRouteTableAggregationScope string
    The scope of networks that you want to advertise the aggregate route.
    TransitRouteTableId string
    The ID of the route table of the Enterprise Edition transit router.
    Id string
    The ID of the Transit Route Table Aggregation. It formats as <transit_route_table_id>:<transit_route_table_aggregation_cidr>.
    RouteType string
    The route type of the aggregate route.
    Status string
    The status of Transit Route Table Aggregation. Valid Values: AllConfigured, Configuring, ConfigFailed, PartialConfigured, Deleting.
    TransitRouteTableAggregationCidr string
    The destination CIDR block of the aggregate route.
    TransitRouteTableAggregationDescription string
    The description of the aggregate route.
    TransitRouteTableAggregationName string
    The name of the aggregate route.
    TransitRouteTableAggregationScope string
    The scope of networks that you want to advertise the aggregate route.
    TransitRouteTableId string
    The ID of the route table of the Enterprise Edition transit router.
    id String
    The ID of the Transit Route Table Aggregation. It formats as <transit_route_table_id>:<transit_route_table_aggregation_cidr>.
    routeType String
    The route type of the aggregate route.
    status String
    The status of Transit Route Table Aggregation. Valid Values: AllConfigured, Configuring, ConfigFailed, PartialConfigured, Deleting.
    transitRouteTableAggregationCidr String
    The destination CIDR block of the aggregate route.
    transitRouteTableAggregationDescription String
    The description of the aggregate route.
    transitRouteTableAggregationName String
    The name of the aggregate route.
    transitRouteTableAggregationScope String
    The scope of networks that you want to advertise the aggregate route.
    transitRouteTableId String
    The ID of the route table of the Enterprise Edition transit router.
    id string
    The ID of the Transit Route Table Aggregation. It formats as <transit_route_table_id>:<transit_route_table_aggregation_cidr>.
    routeType string
    The route type of the aggregate route.
    status string
    The status of Transit Route Table Aggregation. Valid Values: AllConfigured, Configuring, ConfigFailed, PartialConfigured, Deleting.
    transitRouteTableAggregationCidr string
    The destination CIDR block of the aggregate route.
    transitRouteTableAggregationDescription string
    The description of the aggregate route.
    transitRouteTableAggregationName string
    The name of the aggregate route.
    transitRouteTableAggregationScope string
    The scope of networks that you want to advertise the aggregate route.
    transitRouteTableId string
    The ID of the route table of the Enterprise Edition transit router.
    id str
    The ID of the Transit Route Table Aggregation. It formats as <transit_route_table_id>:<transit_route_table_aggregation_cidr>.
    route_type str
    The route type of the aggregate route.
    status str
    The status of Transit Route Table Aggregation. Valid Values: AllConfigured, Configuring, ConfigFailed, PartialConfigured, Deleting.
    transit_route_table_aggregation_cidr str
    The destination CIDR block of the aggregate route.
    transit_route_table_aggregation_description str
    The description of the aggregate route.
    transit_route_table_aggregation_name str
    The name of the aggregate route.
    transit_route_table_aggregation_scope str
    The scope of networks that you want to advertise the aggregate route.
    transit_route_table_id str
    The ID of the route table of the Enterprise Edition transit router.
    id String
    The ID of the Transit Route Table Aggregation. It formats as <transit_route_table_id>:<transit_route_table_aggregation_cidr>.
    routeType String
    The route type of the aggregate route.
    status String
    The status of Transit Route Table Aggregation. Valid Values: AllConfigured, Configuring, ConfigFailed, PartialConfigured, Deleting.
    transitRouteTableAggregationCidr String
    The destination CIDR block of the aggregate route.
    transitRouteTableAggregationDescription String
    The description of the aggregate route.
    transitRouteTableAggregationName String
    The name of the aggregate route.
    transitRouteTableAggregationScope String
    The scope of networks that you want to advertise the aggregate route.
    transitRouteTableId 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.
    alicloud logo
    Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi