get Router Interfaces
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
A collection of arguments for invoking getRouterInterfaces.
Return
A collection of values returned by getRouterInterfaces.
See also
Parameters
A list of router interface IDs.
A regex string used to filter by router interface name.
ID of the peer router interface.
Account ID of the owner of the peer router interface.
File name where to save data source results (after running pulumi preview
).
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
.
ID of the VRouter located in the local region.
Router type in the local region. Valid values are VRouter
and VBR
(physical connection).
Specification of the link, such as Small.1
(10Mb), Middle.1
(100Mb), Large.2
(2Gb), ...etc.
Expected status. Valid values are Active
, Inactive
and Idle
.
Return
A collection of values returned by getRouterInterfaces.
See also
Parameters
Builder for com.pulumi.alicloud.vpc.kotlin.inputs.GetRouterInterfacesPlainArgs.