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:

InstanceId string

ID of the CEN instance.

RouteTableId string

ID of the route table of the VPC or VBR.

CidrBlock string

The destination CIDR block of the route entry to query.

OutputFile string
InstanceId string

ID of the CEN instance.

RouteTableId string

ID of the route table of the VPC or VBR.

CidrBlock string

The destination CIDR block of the route entry to query.

OutputFile string
instanceId string

ID of the CEN instance.

routeTableId string

ID of the route table of the VPC or VBR.

cidrBlock string

The destination CIDR block of the route entry to query.

outputFile string
instance_id str

ID of the CEN instance.

route_table_id str

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.AliCloud.Cen.Outputs.GetRouteEntriesEntry>

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

Id string

The provider-assigned unique ID for this managed resource.

InstanceId string

ID of the CEN child instance.

RouteTableId string

ID of the route table.

CidrBlock string

The destination CIDR block of the conflicted route entry.

OutputFile string
Entries []GetRouteEntriesEntry

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

Id string

The provider-assigned unique ID for this managed resource.

InstanceId string

ID of the CEN child instance.

RouteTableId string

ID of the route table.

CidrBlock string

The destination CIDR block of the conflicted route entry.

OutputFile string
entries GetRouteEntriesEntry[]

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

id string

The provider-assigned unique ID for this managed resource.

instanceId string

ID of the CEN child instance.

routeTableId string

ID of the route table.

cidrBlock string

The destination CIDR block of the conflicted route entry.

outputFile string
entries List[GetRouteEntriesEntry]

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_id str

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.

CidrBlock string

The destination CIDR block of the route entry to query.

Conflicts List<Pulumi.AliCloud.Cen.Inputs.GetRouteEntriesEntryConflictArgs>

A list of conflicted Route Entries. Each element contains the following attributes:

NextHopId string

ID of the next hop.

NextHopType string

Type of the next hop, including “Instance”, “HaVip” and “RouterInterface”.

OperationalMode bool

Whether to allow the route entry to be published or removed to or from CEN.

PublishStatus string

The publish status of the route entry in CEN, including “Published” and “NonPublished”.

RouteTableId string

ID of the route table of the VPC or VBR.

RouteType string

Type of the route entry, including “System”, “Custom” and “BGP”.

CidrBlock string

The destination CIDR block of the route entry to query.

Conflicts []GetRouteEntriesEntryConflict

A list of conflicted Route Entries. Each element contains the following attributes:

NextHopId string

ID of the next hop.

NextHopType string

Type of the next hop, including “Instance”, “HaVip” and “RouterInterface”.

OperationalMode bool

Whether to allow the route entry to be published or removed to or from CEN.

PublishStatus string

The publish status of the route entry in CEN, including “Published” and “NonPublished”.

RouteTableId string

ID of the route table of the VPC or VBR.

RouteType string

Type of the route entry, including “System”, “Custom” and “BGP”.

cidrBlock string

The destination CIDR block of the route entry to query.

conflicts GetRouteEntriesEntryConflict[]

A list of conflicted Route Entries. Each element contains the following attributes:

nextHopId string

ID of the next hop.

nextHopType string

Type of the next hop, including “Instance”, “HaVip” and “RouterInterface”.

operationalMode boolean

Whether to allow the route entry to be published or removed to or from CEN.

publishStatus string

The publish status of the route entry in CEN, including “Published” and “NonPublished”.

routeTableId string

ID of the route table of the VPC or VBR.

routeType 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[GetRouteEntriesEntryConflict]

A list of conflicted Route Entries. Each element contains the following attributes:

nextHopId str

ID of the next hop.

nextHopType str

Type of the next hop, including “Instance”, “HaVip” and “RouterInterface”.

operationalMode bool

Whether to allow the route entry to be published or removed to or from CEN.

publishStatus str

The publish status of the route entry in CEN, including “Published” and “NonPublished”.

routeType str

Type of the route entry, including “System”, “Custom” and “BGP”.

route_table_id str

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.

CidrBlock string

The destination CIDR block of the route entry to query.

InstanceId string

ID of the CEN instance.

InstanceType string

The type of the CEN child instance.

RegionId string

ID of the region where the conflicted route entry is located.

Status string

Reasons of exceptions.

CidrBlock string

The destination CIDR block of the route entry to query.

InstanceId string

ID of the CEN instance.

InstanceType string

The type of the CEN child instance.

RegionId string

ID of the region where the conflicted route entry is located.

Status string

Reasons of exceptions.

cidrBlock string

The destination CIDR block of the route entry to query.

instanceId string

ID of the CEN instance.

instanceType string

The type of the CEN child instance.

regionId 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.

regionId 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 alicloud Terraform Provider.