GetRegionRouteEntries
This data source provides CEN Regional Route Entries available to the user.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var entry = Output.Create(AliCloud.Cen.GetRegionRouteEntries.InvokeAsync(new AliCloud.Cen.GetRegionRouteEntriesArgs
{
InstanceId = "cen-id1",
RegionId = "cn-beijing",
}));
this.FirstRegionRouteEntriesRouteEntryCidrBlock = entry.Apply(entry => entry.Entries[0].CidrBlock);
}
[Output("firstRegionRouteEntriesRouteEntryCidrBlock")]
public Output<string> FirstRegionRouteEntriesRouteEntryCidrBlock { get; set; }
}
Coming soon!
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 = pulumi.output(alicloud.cen.getRegionRouteEntries({
instanceId: "cen-id1",
regionId: "cn-beijing",
}, { async: true }));
export const firstRegionRouteEntriesRouteEntryCidrBlock = entry.entries[0].cidrBlock;Using GetRegionRouteEntries
function getRegionRouteEntries(args: GetRegionRouteEntriesArgs, opts?: InvokeOptions): Promise<GetRegionRouteEntriesResult>function get_region_route_entries(instance_id=None, output_file=None, region_id=None, opts=None)func GetRegionRouteEntries(ctx *Context, args *GetRegionRouteEntriesArgs, opts ...InvokeOption) (*GetRegionRouteEntriesResult, error)public static class GetRegionRouteEntries {
public static Task<GetRegionRouteEntriesResult> InvokeAsync(GetRegionRouteEntriesArgs args, InvokeOptions? opts = null)
}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 str ID of the CEN instance.
- region_
id str ID of the region.
- output_
file str
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
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 str
The provider-assigned unique ID for this managed resource.
- instance_
id str - region_
id str - output_
file str
Supporting Types
GetRegionRouteEntriesEntry
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- 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.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.