GetRouteEntries
This data source provides CEN 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.GetRouteEntries.InvokeAsync(new AliCloud.Cen.GetRouteEntriesArgs
{
InstanceId = "cen-id1",
RouteTableId = "vtb-id1",
}));
this.FirstRouteEntriesRouteEntryCidrBlock = entry.Apply(entry => entry.Entries[0].CidrBlock);
}
[Output("firstRouteEntriesRouteEntryCidrBlock")]
public Output<string> FirstRouteEntriesRouteEntryCidrBlock { get; set; }
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
entry = alicloud.cen.get_route_entries(instance_id="cen-id1",
route_table_id="vtb-id1")
pulumi.export("firstRouteEntriesRouteEntryCidrBlock", entry.entries[0]["cidr_block"])import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const entry = pulumi.output(alicloud.cen.getRouteEntries({
instanceId: "cen-id1",
routeTableId: "vtb-id1",
}, { async: true }));
export const firstRouteEntriesRouteEntryCidrBlock = entry.entries[0].cidrBlock;Using GetRouteEntries
function getRouteEntries(args: GetRouteEntriesArgs, opts?: InvokeOptions): Promise<GetRouteEntriesResult>function get_route_entries(cidr_block=None, instance_id=None, output_file=None, route_table_id=None, opts=None)func GetRouteEntries(ctx *Context, args *GetRouteEntriesArgs, opts ...InvokeOption) (*GetRouteEntriesResult, error)public static class GetRouteEntries {
public static Task<GetRouteEntriesResult> InvokeAsync(GetRouteEntriesArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Instance
Id string ID of the CEN instance.
- Route
Table stringId ID of the route table of the VPC or VBR.
- Cidr
Block string The destination CIDR block of the route entry to query.
- Output
File string
- Instance
Id string ID of the CEN instance.
- Route
Table stringId ID of the route table of the VPC or VBR.
- Cidr
Block string The destination CIDR block of the route entry to query.
- Output
File string
- instance
Id string ID of the CEN instance.
- route
Table stringId ID of the route table of the VPC or VBR.
- cidr
Block string The destination CIDR block of the route entry to query.
- output
File string
- instance_
id str ID of the CEN instance.
- route_
table_ strid ID of the route table of the VPC or VBR.
- cidr_
block str The destination CIDR block of the route entry to query.
- output_
file str
GetRouteEntries Result
The following output properties are available:
- Entries
List<Pulumi.
Ali Cloud. Cen. Outputs. Get 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 ID of the CEN child instance.
- Route
Table stringId ID of the route table.
- Cidr
Block string The destination CIDR block of the conflicted route entry.
- Output
File string
- Entries
[]Get
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 ID of the CEN child instance.
- Route
Table stringId ID of the route table.
- Cidr
Block string The destination CIDR block of the conflicted route entry.
- Output
File string
- entries
Get
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 ID of the CEN child instance.
- route
Table stringId ID of the route table.
- cidr
Block string The destination CIDR block of the conflicted route entry.
- output
File string
- entries
List[Get
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 ID of the CEN child instance.
- route_
table_ strid ID of the route table.
- cidr_
block str The destination CIDR block of the conflicted route entry.
- output_
file str
Supporting Types
GetRouteEntriesEntry
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 to query.
- Conflicts
List<Pulumi.
Ali Cloud. Cen. Inputs. Get Route Entries Entry Conflict Args> A list of conflicted Route Entries. Each element contains the following attributes:
- Next
Hop stringId ID of the next hop.
- Next
Hop stringType Type of the next hop, including “Instance”, “HaVip” and “RouterInterface”.
- Operational
Mode bool Whether to allow the route entry to be published or removed to or from CEN.
- Publish
Status string The publish status of the route entry in CEN, including “Published” and “NonPublished”.
- Route
Table stringId ID of the route table of the VPC or VBR.
- Route
Type string Type of the route entry, including “System”, “Custom” and “BGP”.
- Cidr
Block string The destination CIDR block of the route entry to query.
- Conflicts
[]Get
Route Entries Entry Conflict A list of conflicted Route Entries. Each element contains the following attributes:
- Next
Hop stringId ID of the next hop.
- Next
Hop stringType Type of the next hop, including “Instance”, “HaVip” and “RouterInterface”.
- Operational
Mode bool Whether to allow the route entry to be published or removed to or from CEN.
- Publish
Status string The publish status of the route entry in CEN, including “Published” and “NonPublished”.
- Route
Table stringId ID of the route table of the VPC or VBR.
- Route
Type string Type of the route entry, including “System”, “Custom” and “BGP”.
- cidr
Block string The destination CIDR block of the route entry to query.
- conflicts
Get
Route Entries Entry Conflict[] A list of conflicted Route Entries. Each element contains the following attributes:
- next
Hop stringId ID of the next hop.
- next
Hop stringType Type of the next hop, including “Instance”, “HaVip” and “RouterInterface”.
- operational
Mode boolean Whether to allow the route entry to be published or removed to or from CEN.
- publish
Status string The publish status of the route entry in CEN, including “Published” and “NonPublished”.
- route
Table stringId ID of the route table of the VPC or VBR.
- route
Type string Type of the route entry, including “System”, “Custom” and “BGP”.
- cidr_
block str The destination CIDR block of the route entry to query.
- conflicts
List[Get
Route Entries Entry Conflict] A list of conflicted Route Entries. Each element contains the following attributes:
- next
Hop strId ID of the next hop.
- next
Hop strType Type of the next hop, including “Instance”, “HaVip” and “RouterInterface”.
- operational
Mode bool Whether to allow the route entry to be published or removed to or from CEN.
- publish
Status str The publish status of the route entry in CEN, including “Published” and “NonPublished”.
- route
Type str Type of the route entry, including “System”, “Custom” and “BGP”.
- route_
table_ strid ID of the route table of the VPC or VBR.
GetRouteEntriesEntryConflict
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 to query.
- Instance
Id string ID of the CEN instance.
- Instance
Type string The type of the CEN child instance.
- Region
Id string ID of the region where the conflicted route entry is located.
- Status string
Reasons of exceptions.
- Cidr
Block string The destination CIDR block of the route entry to query.
- Instance
Id string ID of the CEN instance.
- Instance
Type string The type of the CEN child instance.
- Region
Id string ID of the region where the conflicted route entry is located.
- Status string
Reasons of exceptions.
- cidr
Block string The destination CIDR block of the route entry to query.
- instance
Id string ID of the CEN instance.
- instance
Type string The type of the CEN child instance.
- region
Id string ID of the region where the conflicted route entry is located.
- status string
Reasons of exceptions.
- cidr_
block str The destination CIDR block of the route entry to query.
- instance_
id str ID of the CEN instance.
- instance_
type str The type of the CEN child instance.
- region
Id str ID of the region where the conflicted route entry is located.
- status str
Reasons of exceptions.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.