get Route Maps
This data source provides CEN Route Maps available to the user.
NOTE: Available in v1.87.0+.
Example Usage
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.GetRouteMapsArgs;
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 this = CenFunctions.getRouteMaps(GetRouteMapsArgs.builder()
.cenId("cen-ihdlgo87ai********")
.ids("cen-ihdlgo87ai:cenrmap-bnh97kb3mn********")
.descriptionRegex("datasource_test")
.cenRegionId("cn-hangzhou")
.transmitDirection("RegionIn")
.status("Active")
.build());
ctx.export("firstCenRouteMapId", this_.maps()[0].routeMapId());
}
}
Return
A collection of values returned by getRouteMaps.
Parameters
A collection of arguments for invoking getRouteMaps.
Return
A collection of values returned by getRouteMaps.
See also
Parameters
The ID of the CEN instance.
The ID of the region to which the CEN instance belongs.
A regex string to filter CEN route map by description.
A list of CEN route map IDs. Each item formats as <cen_id>:<route_map_id>
.
File name where to save data source results (after running pulumi preview
).
The status of the route map, including Creating
, Active
and Deleting
.
The direction in which the route map is applied, including RegionIn
and RegionOut
.
Return
A collection of values returned by getRouteMaps.
See also
Parameters
Builder for com.pulumi.alicloud.cen.kotlin.inputs.GetRouteMapsPlainArgs.