Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.19.0 published on Friday, Mar 18, 2022 by Pulumi

getRouteMaps

This data source provides CEN Route Maps available to the user.

NOTE: Available in v1.87.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var @this = Output.Create(AliCloud.Cen.GetRouteMaps.InvokeAsync(new AliCloud.Cen.GetRouteMapsArgs
        {
            CenId = "cen-ihdlgo87ai********",
            CenRegionId = "cn-hangzhou",
            DescriptionRegex = "datasource_test",
            Ids = 
            {
                "cenrmap-bnh97kb3mn********",
            },
            Status = "Active",
            TransmitDirection = "RegionIn",
        }));
        this.FirstCenRouteMapId = @this.Apply(@this => @this.Maps?[0]?.Id);
    }

    [Output("firstCenRouteMapId")]
    public Output<string> FirstCenRouteMapId { get; set; }
}
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 {
		this, err := cen.GetRouteMaps(ctx, &cen.GetRouteMapsArgs{
			CenId:            "cen-ihdlgo87ai********",
			CenRegionId:      pulumi.StringRef("cn-hangzhou"),
			DescriptionRegex: pulumi.StringRef("datasource_test"),
			Ids: []string{
				"cenrmap-bnh97kb3mn********",
			},
			Status:            pulumi.StringRef("Active"),
			TransmitDirection: pulumi.StringRef("RegionIn"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstCenRouteMapId", this.Maps[0].Id)
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

this = alicloud.cen.get_route_maps(cen_id="cen-ihdlgo87ai********",
    cen_region_id="cn-hangzhou",
    description_regex="datasource_test",
    ids=["cenrmap-bnh97kb3mn********"],
    status="Active",
    transmit_direction="RegionIn")
pulumi.export("firstCenRouteMapId", this.maps[0].id)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const thisRouteMaps = pulumi.output(alicloud.cen.getRouteMaps({
    cenId: "cen-ihdlgo87ai********",
    cenRegionId: "cn-hangzhou",
    descriptionRegex: "datasource_test",
    ids: ["cenrmap-bnh97kb3mn********"],
    status: "Active",
    transmitDirection: "RegionIn",
}));

export const firstCenRouteMapId = thisRouteMaps.maps[0].id;

Coming soon!

Using getRouteMaps

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 getRouteMaps(args: GetRouteMapsArgs, opts?: InvokeOptions): Promise<GetRouteMapsResult>
function getRouteMapsOutput(args: GetRouteMapsOutputArgs, opts?: InvokeOptions): Output<GetRouteMapsResult>
def get_route_maps(cen_id: Optional[str] = None,
                   cen_region_id: Optional[str] = None,
                   description_regex: Optional[str] = None,
                   ids: Optional[Sequence[str]] = None,
                   output_file: Optional[str] = None,
                   status: Optional[str] = None,
                   transmit_direction: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetRouteMapsResult
def get_route_maps_output(cen_id: Optional[pulumi.Input[str]] = None,
                   cen_region_id: Optional[pulumi.Input[str]] = None,
                   description_regex: Optional[pulumi.Input[str]] = None,
                   ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                   output_file: Optional[pulumi.Input[str]] = None,
                   status: Optional[pulumi.Input[str]] = None,
                   transmit_direction: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetRouteMapsResult]
func GetRouteMaps(ctx *Context, args *GetRouteMapsArgs, opts ...InvokeOption) (*GetRouteMapsResult, error)
func GetRouteMapsOutput(ctx *Context, args *GetRouteMapsOutputArgs, opts ...InvokeOption) GetRouteMapsResultOutput

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

public static class GetRouteMaps 
{
    public static Task<GetRouteMapsResult> InvokeAsync(GetRouteMapsArgs args, InvokeOptions? opts = null)
    public static Output<GetRouteMapsResult> Invoke(GetRouteMapsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRouteMapsResult> getRouteMaps(GetRouteMapsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: alicloud:cen/getRouteMaps:getRouteMaps
  Arguments:
    # Arguments dictionary

The following arguments are supported:

CenId string

The ID of the CEN instance.

CenRegionId string

The ID of the region to which the CEN instance belongs.

DescriptionRegex string

A regex string to filter CEN route map by description.

Ids List<string>

A list of CEN route map IDs.

OutputFile string
Status string

The status of the route map, including Creating, Active and Deleting.

TransmitDirection string

The direction in which the route map is applied, including RegionIn and RegionOut.

CenId string

The ID of the CEN instance.

CenRegionId string

The ID of the region to which the CEN instance belongs.

DescriptionRegex string

A regex string to filter CEN route map by description.

Ids []string

A list of CEN route map IDs.

OutputFile string
Status string

The status of the route map, including Creating, Active and Deleting.

TransmitDirection string

The direction in which the route map is applied, including RegionIn and RegionOut.

cenId String

The ID of the CEN instance.

cenRegionId String

The ID of the region to which the CEN instance belongs.

descriptionRegex String

A regex string to filter CEN route map by description.

ids List

A list of CEN route map IDs.

outputFile String
status String

The status of the route map, including Creating, Active and Deleting.

transmitDirection String

The direction in which the route map is applied, including RegionIn and RegionOut.

cenId string

The ID of the CEN instance.

cenRegionId string

The ID of the region to which the CEN instance belongs.

descriptionRegex string

A regex string to filter CEN route map by description.

ids string[]

A list of CEN route map IDs.

outputFile string
status string

The status of the route map, including Creating, Active and Deleting.

transmitDirection string

The direction in which the route map is applied, including RegionIn and RegionOut.

cen_id str

The ID of the CEN instance.

cen_region_id str

The ID of the region to which the CEN instance belongs.

description_regex str

A regex string to filter CEN route map by description.

ids Sequence[str]

A list of CEN route map IDs.

output_file str
status str

The status of the route map, including Creating, Active and Deleting.

transmit_direction str

The direction in which the route map is applied, including RegionIn and RegionOut.

cenId String

The ID of the CEN instance.

cenRegionId String

The ID of the region to which the CEN instance belongs.

descriptionRegex String

A regex string to filter CEN route map by description.

ids List

A list of CEN route map IDs.

outputFile String
status String

The status of the route map, including Creating, Active and Deleting.

transmitDirection String

The direction in which the route map is applied, including RegionIn and RegionOut.

getRouteMaps Result

The following output properties are available:

CenId string

The ID of the CEN instance.

Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>

A list of CEN route map IDs.

Maps List<Pulumi.AliCloud.Cen.Outputs.GetRouteMapsMap>

A list of CEN instances. Each element contains the following attributes:

CenRegionId string

The ID of the region to which the CEN instance belongs.

DescriptionRegex string
OutputFile string
Status string

The status of the route map.

TransmitDirection string

The direction in which the route map is applied.

CenId string

The ID of the CEN instance.

Id string

The provider-assigned unique ID for this managed resource.

Ids []string

A list of CEN route map IDs.

Maps []GetRouteMapsMap

A list of CEN instances. Each element contains the following attributes:

CenRegionId string

The ID of the region to which the CEN instance belongs.

DescriptionRegex string
OutputFile string
Status string

The status of the route map.

TransmitDirection string

The direction in which the route map is applied.

cenId String

The ID of the CEN instance.

id String

The provider-assigned unique ID for this managed resource.

ids List

A list of CEN route map IDs.

maps ListRouteMapsMap>

A list of CEN instances. Each element contains the following attributes:

cenRegionId String

The ID of the region to which the CEN instance belongs.

descriptionRegex String
outputFile String
status String

The status of the route map.

transmitDirection String

The direction in which the route map is applied.

cenId string

The ID of the CEN instance.

id string

The provider-assigned unique ID for this managed resource.

ids string[]

A list of CEN route map IDs.

maps GetRouteMapsMap[]

A list of CEN instances. Each element contains the following attributes:

cenRegionId string

The ID of the region to which the CEN instance belongs.

descriptionRegex string
outputFile string
status string

The status of the route map.

transmitDirection string

The direction in which the route map is applied.

cen_id str

The ID of the CEN instance.

id str

The provider-assigned unique ID for this managed resource.

ids Sequence[str]

A list of CEN route map IDs.

maps Sequence[GetRouteMapsMap]

A list of CEN instances. Each element contains the following attributes:

cen_region_id str

The ID of the region to which the CEN instance belongs.

description_regex str
output_file str
status str

The status of the route map.

transmit_direction str

The direction in which the route map is applied.

cenId String

The ID of the CEN instance.

id String

The provider-assigned unique ID for this managed resource.

ids List

A list of CEN route map IDs.

maps List

A list of CEN instances. Each element contains the following attributes:

cenRegionId String

The ID of the region to which the CEN instance belongs.

descriptionRegex String
outputFile String
status String

The status of the route map.

transmitDirection String

The direction in which the route map is applied.

Supporting Types

GetRouteMapsMap

AsPathMatchMode string

A match statement. It indicates the mode in which the as-path attribute is matched.

CenId string

The ID of the CEN instance.

CenRegionId string

The ID of the region to which the CEN instance belongs.

CidrMatchMode string

A match statement. It indicates the mode in which the prefix attribute is matched.

CommunityMatchMode string

A match statement. It indicates the mode in which the community attribute is matched.

CommunityOperateMode string

An action statement. It indicates the mode in which the community attribute is operated.

Description string

The description of the route map.

DestinationChildInstanceTypes List<string>

A match statement that indicates the list of IDs of the destination instances.

DestinationCidrBlocks List<string>

A match statement that indicates the prefix list.

DestinationInstanceIds List<string>

A match statement that indicates the list of IDs of the destination instances.

DestinationInstanceIdsReverseMatch bool

Indicates whether to enable the reverse match method of the DestinationInstanceIds match condition.

DestinationRouteTableIds List<string>

A match statement that indicates the list of IDs of the destination route tables.

Id string

The ID of the route map.

MapResult string

The action that is performed to a route if the route meets all the match conditions.

MatchAsns List<string>

A match statement that indicates the As path list.

MatchCommunitySets List<string>

A match statement that indicates the community set.

NextPriority int

The priority of the next route map that is associated with the current route map.

OperateCommunitySets List<string>

An action statement that operates the community attribute.

Preference int

An action statement that modifies the preference of the route.

PrependAsPaths List<string>

Indicates AS Path prepending when a regional gateway receives or publishes a route.

Priority int

The priority of the route map.

RouteMapId string

The ID of the route map.

RouteTypes List<string>

A match statement that indicates the list of route types.

SourceChildInstanceTypes List<string>

A match statement that indicates the list of IDs of the source instances.

SourceInstanceIds List<string>

A match statement that indicates the list of IDs of the source instances.

SourceInstanceIdsReverseMatch bool

Indicates whether to enable the reverse match method of the SourceInstanceIds match condition.

SourceRegionIds List<string>

A match statement that indicates the list of IDs of the source regions.

SourceRouteTableIds List<string>

A match statement that indicates the list of IDs of the source route tables.

Status string

The status of the route map, including Creating, Active and Deleting.

TransmitDirection string

The direction in which the route map is applied, including RegionIn and RegionOut.

AsPathMatchMode string

A match statement. It indicates the mode in which the as-path attribute is matched.

CenId string

The ID of the CEN instance.

CenRegionId string

The ID of the region to which the CEN instance belongs.

CidrMatchMode string

A match statement. It indicates the mode in which the prefix attribute is matched.

CommunityMatchMode string

A match statement. It indicates the mode in which the community attribute is matched.

CommunityOperateMode string

An action statement. It indicates the mode in which the community attribute is operated.

Description string

The description of the route map.

DestinationChildInstanceTypes []string

A match statement that indicates the list of IDs of the destination instances.

DestinationCidrBlocks []string

A match statement that indicates the prefix list.

DestinationInstanceIds []string

A match statement that indicates the list of IDs of the destination instances.

DestinationInstanceIdsReverseMatch bool

Indicates whether to enable the reverse match method of the DestinationInstanceIds match condition.

DestinationRouteTableIds []string

A match statement that indicates the list of IDs of the destination route tables.

Id string

The ID of the route map.

MapResult string

The action that is performed to a route if the route meets all the match conditions.

MatchAsns []string

A match statement that indicates the As path list.

MatchCommunitySets []string

A match statement that indicates the community set.

NextPriority int

The priority of the next route map that is associated with the current route map.

OperateCommunitySets []string

An action statement that operates the community attribute.

Preference int

An action statement that modifies the preference of the route.

PrependAsPaths []string

Indicates AS Path prepending when a regional gateway receives or publishes a route.

Priority int

The priority of the route map.

RouteMapId string

The ID of the route map.

RouteTypes []string

A match statement that indicates the list of route types.

SourceChildInstanceTypes []string

A match statement that indicates the list of IDs of the source instances.

SourceInstanceIds []string

A match statement that indicates the list of IDs of the source instances.

SourceInstanceIdsReverseMatch bool

Indicates whether to enable the reverse match method of the SourceInstanceIds match condition.

SourceRegionIds []string

A match statement that indicates the list of IDs of the source regions.

SourceRouteTableIds []string

A match statement that indicates the list of IDs of the source route tables.

Status string

The status of the route map, including Creating, Active and Deleting.

TransmitDirection string

The direction in which the route map is applied, including RegionIn and RegionOut.

asPathMatchMode String

A match statement. It indicates the mode in which the as-path attribute is matched.

cenId String

The ID of the CEN instance.

cenRegionId String

The ID of the region to which the CEN instance belongs.

cidrMatchMode String

A match statement. It indicates the mode in which the prefix attribute is matched.

communityMatchMode String

A match statement. It indicates the mode in which the community attribute is matched.

communityOperateMode String

An action statement. It indicates the mode in which the community attribute is operated.

description String

The description of the route map.

destinationChildInstanceTypes List

A match statement that indicates the list of IDs of the destination instances.

destinationCidrBlocks List

A match statement that indicates the prefix list.

destinationInstanceIds List

A match statement that indicates the list of IDs of the destination instances.

destinationInstanceIdsReverseMatch Boolean

Indicates whether to enable the reverse match method of the DestinationInstanceIds match condition.

destinationRouteTableIds List

A match statement that indicates the list of IDs of the destination route tables.

id String

The ID of the route map.

mapResult String

The action that is performed to a route if the route meets all the match conditions.

matchAsns List

A match statement that indicates the As path list.

matchCommunitySets List

A match statement that indicates the community set.

nextPriority Integer

The priority of the next route map that is associated with the current route map.

operateCommunitySets List

An action statement that operates the community attribute.

preference Integer

An action statement that modifies the preference of the route.

prependAsPaths List

Indicates AS Path prepending when a regional gateway receives or publishes a route.

priority Integer

The priority of the route map.

routeMapId String

The ID of the route map.

routeTypes List

A match statement that indicates the list of route types.

sourceChildInstanceTypes List

A match statement that indicates the list of IDs of the source instances.

sourceInstanceIds List

A match statement that indicates the list of IDs of the source instances.

sourceInstanceIdsReverseMatch Boolean

Indicates whether to enable the reverse match method of the SourceInstanceIds match condition.

sourceRegionIds List

A match statement that indicates the list of IDs of the source regions.

sourceRouteTableIds List

A match statement that indicates the list of IDs of the source route tables.

status String

The status of the route map, including Creating, Active and Deleting.

transmitDirection String

The direction in which the route map is applied, including RegionIn and RegionOut.

asPathMatchMode string

A match statement. It indicates the mode in which the as-path attribute is matched.

cenId string

The ID of the CEN instance.

cenRegionId string

The ID of the region to which the CEN instance belongs.

cidrMatchMode string

A match statement. It indicates the mode in which the prefix attribute is matched.

communityMatchMode string

A match statement. It indicates the mode in which the community attribute is matched.

communityOperateMode string

An action statement. It indicates the mode in which the community attribute is operated.

description string

The description of the route map.

destinationChildInstanceTypes string[]

A match statement that indicates the list of IDs of the destination instances.

destinationCidrBlocks string[]

A match statement that indicates the prefix list.

destinationInstanceIds string[]

A match statement that indicates the list of IDs of the destination instances.

destinationInstanceIdsReverseMatch boolean

Indicates whether to enable the reverse match method of the DestinationInstanceIds match condition.

destinationRouteTableIds string[]

A match statement that indicates the list of IDs of the destination route tables.

id string

The ID of the route map.

mapResult string

The action that is performed to a route if the route meets all the match conditions.

matchAsns string[]

A match statement that indicates the As path list.

matchCommunitySets string[]

A match statement that indicates the community set.

nextPriority number

The priority of the next route map that is associated with the current route map.

operateCommunitySets string[]

An action statement that operates the community attribute.

preference number

An action statement that modifies the preference of the route.

prependAsPaths string[]

Indicates AS Path prepending when a regional gateway receives or publishes a route.

priority number

The priority of the route map.

routeMapId string

The ID of the route map.

routeTypes string[]

A match statement that indicates the list of route types.

sourceChildInstanceTypes string[]

A match statement that indicates the list of IDs of the source instances.

sourceInstanceIds string[]

A match statement that indicates the list of IDs of the source instances.

sourceInstanceIdsReverseMatch boolean

Indicates whether to enable the reverse match method of the SourceInstanceIds match condition.

sourceRegionIds string[]

A match statement that indicates the list of IDs of the source regions.

sourceRouteTableIds string[]

A match statement that indicates the list of IDs of the source route tables.

status string

The status of the route map, including Creating, Active and Deleting.

transmitDirection string

The direction in which the route map is applied, including RegionIn and RegionOut.

as_path_match_mode str

A match statement. It indicates the mode in which the as-path attribute is matched.

cen_id str

The ID of the CEN instance.

cen_region_id str

The ID of the region to which the CEN instance belongs.

cidr_match_mode str

A match statement. It indicates the mode in which the prefix attribute is matched.

community_match_mode str

A match statement. It indicates the mode in which the community attribute is matched.

community_operate_mode str

An action statement. It indicates the mode in which the community attribute is operated.

description str

The description of the route map.

destination_child_instance_types Sequence[str]

A match statement that indicates the list of IDs of the destination instances.

destination_cidr_blocks Sequence[str]

A match statement that indicates the prefix list.

destination_instance_ids Sequence[str]

A match statement that indicates the list of IDs of the destination instances.

destination_instance_ids_reverse_match bool

Indicates whether to enable the reverse match method of the DestinationInstanceIds match condition.

destination_route_table_ids Sequence[str]

A match statement that indicates the list of IDs of the destination route tables.

id str

The ID of the route map.

map_result str

The action that is performed to a route if the route meets all the match conditions.

match_asns Sequence[str]

A match statement that indicates the As path list.

match_community_sets Sequence[str]

A match statement that indicates the community set.

next_priority int

The priority of the next route map that is associated with the current route map.

operate_community_sets Sequence[str]

An action statement that operates the community attribute.

preference int

An action statement that modifies the preference of the route.

prepend_as_paths Sequence[str]

Indicates AS Path prepending when a regional gateway receives or publishes a route.

priority int

The priority of the route map.

route_map_id str

The ID of the route map.

route_types Sequence[str]

A match statement that indicates the list of route types.

source_child_instance_types Sequence[str]

A match statement that indicates the list of IDs of the source instances.

source_instance_ids Sequence[str]

A match statement that indicates the list of IDs of the source instances.

source_instance_ids_reverse_match bool

Indicates whether to enable the reverse match method of the SourceInstanceIds match condition.

source_region_ids Sequence[str]

A match statement that indicates the list of IDs of the source regions.

source_route_table_ids Sequence[str]

A match statement that indicates the list of IDs of the source route tables.

status str

The status of the route map, including Creating, Active and Deleting.

transmit_direction str

The direction in which the route map is applied, including RegionIn and RegionOut.

asPathMatchMode String

A match statement. It indicates the mode in which the as-path attribute is matched.

cenId String

The ID of the CEN instance.

cenRegionId String

The ID of the region to which the CEN instance belongs.

cidrMatchMode String

A match statement. It indicates the mode in which the prefix attribute is matched.

communityMatchMode String

A match statement. It indicates the mode in which the community attribute is matched.

communityOperateMode String

An action statement. It indicates the mode in which the community attribute is operated.

description String

The description of the route map.

destinationChildInstanceTypes List

A match statement that indicates the list of IDs of the destination instances.

destinationCidrBlocks List

A match statement that indicates the prefix list.

destinationInstanceIds List

A match statement that indicates the list of IDs of the destination instances.

destinationInstanceIdsReverseMatch Boolean

Indicates whether to enable the reverse match method of the DestinationInstanceIds match condition.

destinationRouteTableIds List

A match statement that indicates the list of IDs of the destination route tables.

id String

The ID of the route map.

mapResult String

The action that is performed to a route if the route meets all the match conditions.

matchAsns List

A match statement that indicates the As path list.

matchCommunitySets List

A match statement that indicates the community set.

nextPriority Number

The priority of the next route map that is associated with the current route map.

operateCommunitySets List

An action statement that operates the community attribute.

preference Number

An action statement that modifies the preference of the route.

prependAsPaths List

Indicates AS Path prepending when a regional gateway receives or publishes a route.

priority Number

The priority of the route map.

routeMapId String

The ID of the route map.

routeTypes List

A match statement that indicates the list of route types.

sourceChildInstanceTypes List

A match statement that indicates the list of IDs of the source instances.

sourceInstanceIds List

A match statement that indicates the list of IDs of the source instances.

sourceInstanceIdsReverseMatch Boolean

Indicates whether to enable the reverse match method of the SourceInstanceIds match condition.

sourceRegionIds List

A match statement that indicates the list of IDs of the source regions.

sourceRouteTableIds List

A match statement that indicates the list of IDs of the source route tables.

status String

The status of the route map, including Creating, Active and Deleting.

transmitDirection String

The direction in which the route map is applied, including RegionIn and RegionOut.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.