Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.19.0 published on Friday, Mar 18, 2022 by Pulumi

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; }
}
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.GetRouteEntries(ctx, &cen.GetRouteEntriesArgs{
			InstanceId:   "cen-id1",
			RouteTableId: "vtb-id1",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstRouteEntriesRouteEntryCidrBlock", entry.Entries[0].CidrBlock)
		return nil
	})
}

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",
}));

export const firstRouteEntriesRouteEntryCidrBlock = entry.entries[0].cidrBlock;

Coming soon!

Using getRouteEntries

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 getRouteEntries(args: GetRouteEntriesArgs, opts?: InvokeOptions): Promise<GetRouteEntriesResult>
function getRouteEntriesOutput(args: GetRouteEntriesOutputArgs, opts?: InvokeOptions): Output<GetRouteEntriesResult>
def get_route_entries(cidr_block: Optional[str] = None,
                      instance_id: Optional[str] = None,
                      output_file: Optional[str] = None,
                      route_table_id: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetRouteEntriesResult
def get_route_entries_output(cidr_block: Optional[pulumi.Input[str]] = None,
                      instance_id: Optional[pulumi.Input[str]] = None,
                      output_file: Optional[pulumi.Input[str]] = None,
                      route_table_id: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetRouteEntriesResult]
func GetRouteEntries(ctx *Context, args *GetRouteEntriesArgs, opts ...InvokeOption) (*GetRouteEntriesResult, error)
func GetRouteEntriesOutput(ctx *Context, args *GetRouteEntriesOutputArgs, opts ...InvokeOption) GetRouteEntriesResultOutput

> Note: This function is named GetRouteEntries in the Go SDK.

public static class GetRouteEntries 
{
    public static Task<GetRouteEntriesResult> InvokeAsync(GetRouteEntriesArgs args, InvokeOptions? opts = null)
    public static Output<GetRouteEntriesResult> Invoke(GetRouteEntriesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRouteEntriesResult> getRouteEntries(GetRouteEntriesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: alicloud:cen/getRouteEntries:getRouteEntries
  Arguments:
    # Arguments dictionary

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

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 ListRouteEntriesEntry>

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 Sequence[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
entries List

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

Supporting Types

GetRouteEntriesEntry

CidrBlock string

The destination CIDR block of the route entry to query.

Conflicts List<Pulumi.AliCloud.Cen.Inputs.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 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 ListRouteEntriesEntryConflict>

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

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

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

next_hop_id str

ID of the next hop.

next_hop_type str

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

ID of the route table of the VPC or VBR.

route_type str

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

cidrBlock String

The destination CIDR block of the route entry to query.

conflicts List

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

GetRouteEntriesEntryConflict

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.

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.

region_id str

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

status str

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.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.