alicloud.cen.getRegionRouteEntries
This data source provides CEN Regional Route Entries available to the user.
Example Usage
using System.Collections.Generic;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var entry = AliCloud.Cen.GetRegionRouteEntries.Invoke(new()
{
InstanceId = "cen-id1",
RegionId = "cn-beijing",
});
return new Dictionary<string, object?>
{
["firstRegionRouteEntriesRouteEntryCidrBlock"] = entry.Apply(getRegionRouteEntriesResult => getRegionRouteEntriesResult.Entries[0]?.CidrBlock),
};
});
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 {
entry, err := cen.GetRegionRouteEntries(ctx, &cen.GetRegionRouteEntriesArgs{
InstanceId: "cen-id1",
RegionId: "cn-beijing",
}, nil)
if err != nil {
return err
}
ctx.Export("firstRegionRouteEntriesRouteEntryCidrBlock", entry.Entries[0].CidrBlock)
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.GetRegionRouteEntriesArgs;
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 entry = CenFunctions.getRegionRouteEntries(GetRegionRouteEntriesArgs.builder()
.instanceId("cen-id1")
.regionId("cn-beijing")
.build());
ctx.export("firstRegionRouteEntriesRouteEntryCidrBlock", entry.applyValue(getRegionRouteEntriesResult -> getRegionRouteEntriesResult.entries()[0].cidrBlock()));
}
}
import pulumi
import pulumi_alicloud as alicloud
entry = alicloud.cen.get_region_route_entries(instance_id="cen-id1",
region_id="cn-beijing")
pulumi.export("firstRegionRouteEntriesRouteEntryCidrBlock", entry.entries[0].cidr_block)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const entry = alicloud.cen.getRegionRouteEntries({
instanceId: "cen-id1",
regionId: "cn-beijing",
});
export const firstRegionRouteEntriesRouteEntryCidrBlock = entry.then(entry => entry.entries?.[0]?.cidrBlock);
variables:
entry:
fn::invoke:
Function: alicloud:cen:getRegionRouteEntries
Arguments:
instanceId: cen-id1
regionId: cn-beijing
outputs:
firstRegionRouteEntriesRouteEntryCidrBlock: ${entry.entries[0].cidrBlock}
Using getRegionRouteEntries
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 getRegionRouteEntries(args: GetRegionRouteEntriesArgs, opts?: InvokeOptions): Promise<GetRegionRouteEntriesResult>
function getRegionRouteEntriesOutput(args: GetRegionRouteEntriesOutputArgs, opts?: InvokeOptions): Output<GetRegionRouteEntriesResult>
def get_region_route_entries(instance_id: Optional[str] = None,
output_file: Optional[str] = None,
region_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRegionRouteEntriesResult
def get_region_route_entries_output(instance_id: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
region_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRegionRouteEntriesResult]
func GetRegionRouteEntries(ctx *Context, args *GetRegionRouteEntriesArgs, opts ...InvokeOption) (*GetRegionRouteEntriesResult, error)
func GetRegionRouteEntriesOutput(ctx *Context, args *GetRegionRouteEntriesOutputArgs, opts ...InvokeOption) GetRegionRouteEntriesResultOutput
> Note: This function is named GetRegionRouteEntries
in the Go SDK.
public static class GetRegionRouteEntries
{
public static Task<GetRegionRouteEntriesResult> InvokeAsync(GetRegionRouteEntriesArgs args, InvokeOptions? opts = null)
public static Output<GetRegionRouteEntriesResult> Invoke(GetRegionRouteEntriesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRegionRouteEntriesResult> getRegionRouteEntries(GetRegionRouteEntriesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:cen/getRegionRouteEntries:getRegionRouteEntries
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Id string ID of the CEN instance.
- Region
Id string ID of the region.
- Output
File string
- Instance
Id string ID of the CEN instance.
- Region
Id string ID of the region.
- Output
File string
- instance
Id String ID of the CEN instance.
- region
Id String ID of the region.
- output
File String
- instance
Id string ID of the CEN instance.
- region
Id string ID of the region.
- output
File string
- instance_
id str ID of the CEN instance.
- region_
id str ID of the region.
- output_
file str
- instance
Id String ID of the CEN instance.
- region
Id String ID of the region.
- output
File String
getRegionRouteEntries Result
The following output properties are available:
- Entries
List<Pulumi.
Ali Cloud. Cen. Outputs. Get Region Route Entries Entry> A list of CEN Route Entries. Each element contains the following attributes:
- Id string
The provider-assigned unique ID for this managed resource.
- Instance
Id string - Region
Id string - Output
File string
- Entries
[]Get
Region Route Entries Entry A list of CEN Route Entries. Each element contains the following attributes:
- Id string
The provider-assigned unique ID for this managed resource.
- Instance
Id string - Region
Id string - Output
File string
- entries
List<Get
Region Route Entries Entry> A list of CEN Route Entries. Each element contains the following attributes:
- id String
The provider-assigned unique ID for this managed resource.
- instance
Id String - region
Id String - output
File String
- entries
Get
Region Route Entries Entry[] A list of CEN Route Entries. Each element contains the following attributes:
- id string
The provider-assigned unique ID for this managed resource.
- instance
Id string - region
Id string - output
File string
- entries
Sequence[Get
Region Route Entries Entry] A list of CEN Route Entries. Each element contains the following attributes:
- id str
The provider-assigned unique ID for this managed resource.
- instance_
id str - region_
id str - output_
file str
- entries List<Property Map>
A list of CEN Route Entries. Each element contains the following attributes:
- id String
The provider-assigned unique ID for this managed resource.
- instance
Id String - region
Id String - output
File String
Supporting Types
GetRegionRouteEntriesEntry
- Cidr
Block string The destination CIDR block of the route entry.
- Next
Hop stringId ID of the next hop.
- Next
Hop stringRegion Id ID of the region where the next hop is located.
- Next
Hop stringType Type of the next hop.
- Type string
Type of the route entry.
- Cidr
Block string The destination CIDR block of the route entry.
- Next
Hop stringId ID of the next hop.
- Next
Hop stringRegion Id ID of the region where the next hop is located.
- Next
Hop stringType Type of the next hop.
- Type string
Type of the route entry.
- cidr
Block String The destination CIDR block of the route entry.
- next
Hop StringId ID of the next hop.
- next
Hop StringRegion Id ID of the region where the next hop is located.
- next
Hop StringType Type of the next hop.
- type String
Type of the route entry.
- cidr
Block string The destination CIDR block of the route entry.
- next
Hop stringId ID of the next hop.
- next
Hop stringRegion Id ID of the region where the next hop is located.
- next
Hop stringType Type of the next hop.
- type string
Type of the route entry.
- cidr_
block str The destination CIDR block of the route entry.
- next_
hop_ strid ID of the next hop.
- next_
hop_ strregion_ id ID of the region where the next hop is located.
- next_
hop_ strtype Type of the next hop.
- type str
Type of the route entry.
- cidr
Block String The destination CIDR block of the route entry.
- next
Hop StringId ID of the next hop.
- next
Hop StringRegion Id ID of the region where the next hop is located.
- next
Hop StringType Type of the next hop.
- type String
Type of the route entry.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.