getRouterInterfaces

This data source provides information about router interfaces that connect VPCs together.

DEPRECATED: This datasource has been deprecated from version 1.199.0. Please use new data source alicloud_express_connect_router_interfaces.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.vpc.VpcFunctions;
import com.pulumi.alicloud.vpc.inputs.GetRouterInterfacesArgs;
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 routerInterfacesDs = VpcFunctions.getRouterInterfaces(GetRouterInterfacesArgs.builder()
.nameRegex("^testenv")
.status("Active")
.build());
ctx.export("firstRouterInterfaceId", routerInterfacesDs.applyValue(getRouterInterfacesResult -> getRouterInterfacesResult.interfaces()[0].id()));
}
}

Return

A collection of values returned by getRouterInterfaces.

Parameters

argument

A collection of arguments for invoking getRouterInterfaces.


suspend fun getRouterInterfaces(ids: List<String>? = null, nameRegex: String? = null, oppositeInterfaceId: String? = null, oppositeInterfaceOwnerId: String? = null, outputFile: String? = null, role: String? = null, routerId: String? = null, routerType: String? = null, specification: String? = null, status: String? = null): GetRouterInterfacesResult

Return

A collection of values returned by getRouterInterfaces.

See also

Parameters

ids

A list of router interface IDs.

nameRegex

A regex string used to filter by router interface name.

oppositeInterfaceId

ID of the peer router interface.

oppositeInterfaceOwnerId

Account ID of the owner of the peer router interface.

outputFile

File name where to save data source results (after running pulumi preview).

role

Role of the router interface. Valid values are InitiatingSide (connection initiator) and AcceptingSide (connection receiver). The value of this parameter must be InitiatingSide if the router_type is set to VBR.

routerId

ID of the VRouter located in the local region.

routerType

Router type in the local region. Valid values are VRouter and VBR (physical connection).

specification

Specification of the link, such as Small.1 (10Mb), Middle.1 (100Mb), Large.2 (2Gb), ...etc.

status

Expected status. Valid values are Active, Inactive and Idle.


Return

A collection of values returned by getRouterInterfaces.

See also

Parameters

argument

Builder for com.pulumi.alicloud.vpc.kotlin.inputs.GetRouterInterfacesPlainArgs.