Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi
alicloud.vpc.getRouterInterfaces
Explore with Pulumi AI
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
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const routerInterfacesDs = alicloud.vpc.getRouterInterfaces({
nameRegex: "^testenv",
status: "Active",
});
export const firstRouterInterfaceId = routerInterfacesDs.then(routerInterfacesDs => routerInterfacesDs.interfaces?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
router_interfaces_ds = alicloud.vpc.get_router_interfaces(name_regex="^testenv",
status="Active")
pulumi.export("firstRouterInterfaceId", router_interfaces_ds.interfaces[0].id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
routerInterfacesDs, err := vpc.GetRouterInterfaces(ctx, &vpc.GetRouterInterfacesArgs{
NameRegex: pulumi.StringRef("^testenv"),
Status: pulumi.StringRef("Active"),
}, nil)
if err != nil {
return err
}
ctx.Export("firstRouterInterfaceId", routerInterfacesDs.Interfaces[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var routerInterfacesDs = AliCloud.Vpc.GetRouterInterfaces.Invoke(new()
{
NameRegex = "^testenv",
Status = "Active",
});
return new Dictionary<string, object?>
{
["firstRouterInterfaceId"] = routerInterfacesDs.Apply(getRouterInterfacesResult => getRouterInterfacesResult.Interfaces[0]?.Id),
};
});
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()));
}
}
variables:
routerInterfacesDs:
fn::invoke:
Function: alicloud:vpc:getRouterInterfaces
Arguments:
nameRegex: ^testenv
status: Active
outputs:
firstRouterInterfaceId: ${routerInterfacesDs.interfaces[0].id}
Using getRouterInterfaces
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 getRouterInterfaces(args: GetRouterInterfacesArgs, opts?: InvokeOptions): Promise<GetRouterInterfacesResult>
function getRouterInterfacesOutput(args: GetRouterInterfacesOutputArgs, opts?: InvokeOptions): Output<GetRouterInterfacesResult>
def get_router_interfaces(ids: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
opposite_interface_id: Optional[str] = None,
opposite_interface_owner_id: Optional[str] = None,
output_file: Optional[str] = None,
role: Optional[str] = None,
router_id: Optional[str] = None,
router_type: Optional[str] = None,
specification: Optional[str] = None,
status: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRouterInterfacesResult
def get_router_interfaces_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
opposite_interface_id: Optional[pulumi.Input[str]] = None,
opposite_interface_owner_id: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
role: Optional[pulumi.Input[str]] = None,
router_id: Optional[pulumi.Input[str]] = None,
router_type: Optional[pulumi.Input[str]] = None,
specification: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRouterInterfacesResult]
func GetRouterInterfaces(ctx *Context, args *GetRouterInterfacesArgs, opts ...InvokeOption) (*GetRouterInterfacesResult, error)
func GetRouterInterfacesOutput(ctx *Context, args *GetRouterInterfacesOutputArgs, opts ...InvokeOption) GetRouterInterfacesResultOutput
> Note: This function is named GetRouterInterfaces
in the Go SDK.
public static class GetRouterInterfaces
{
public static Task<GetRouterInterfacesResult> InvokeAsync(GetRouterInterfacesArgs args, InvokeOptions? opts = null)
public static Output<GetRouterInterfacesResult> Invoke(GetRouterInterfacesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRouterInterfacesResult> getRouterInterfaces(GetRouterInterfacesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:vpc/getRouterInterfaces:getRouterInterfaces
arguments:
# arguments dictionary
The following arguments are supported:
- Ids List<string>
- A list of router interface IDs.
- Name
Regex string - A regex string used to filter by router interface name.
- Opposite
Interface stringId - ID of the peer router interface.
- Opposite
Interface stringOwner Id - Account ID of the owner of the peer router interface.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Role string
- Role of the router interface. Valid values are
InitiatingSide
(connection initiator) andAcceptingSide
(connection receiver). The value of this parameter must beInitiatingSide
if therouter_type
is set toVBR
. - Router
Id string - ID of the VRouter located in the local region.
- Router
Type string - Router type in the local region. Valid values are
VRouter
andVBR
(physical connection). - Specification string
- Specification of the link, such as
Small.1
(10Mb),Middle.1
(100Mb),Large.2
(2Gb), ...etc. - Status string
- Expected status. Valid values are
Active
,Inactive
andIdle
.
- Ids []string
- A list of router interface IDs.
- Name
Regex string - A regex string used to filter by router interface name.
- Opposite
Interface stringId - ID of the peer router interface.
- Opposite
Interface stringOwner Id - Account ID of the owner of the peer router interface.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Role string
- Role of the router interface. Valid values are
InitiatingSide
(connection initiator) andAcceptingSide
(connection receiver). The value of this parameter must beInitiatingSide
if therouter_type
is set toVBR
. - Router
Id string - ID of the VRouter located in the local region.
- Router
Type string - Router type in the local region. Valid values are
VRouter
andVBR
(physical connection). - Specification string
- Specification of the link, such as
Small.1
(10Mb),Middle.1
(100Mb),Large.2
(2Gb), ...etc. - Status string
- Expected status. Valid values are
Active
,Inactive
andIdle
.
- ids List<String>
- A list of router interface IDs.
- name
Regex String - A regex string used to filter by router interface name.
- opposite
Interface StringId - ID of the peer router interface.
- opposite
Interface StringOwner Id - Account ID of the owner of the peer router interface.
- output
File String - File name where to save data source results (after running
pulumi preview
). - role String
- Role of the router interface. Valid values are
InitiatingSide
(connection initiator) andAcceptingSide
(connection receiver). The value of this parameter must beInitiatingSide
if therouter_type
is set toVBR
. - router
Id String - ID of the VRouter located in the local region.
- router
Type String - Router type in the local region. Valid values are
VRouter
andVBR
(physical connection). - specification String
- Specification of the link, such as
Small.1
(10Mb),Middle.1
(100Mb),Large.2
(2Gb), ...etc. - status String
- Expected status. Valid values are
Active
,Inactive
andIdle
.
- ids string[]
- A list of router interface IDs.
- name
Regex string - A regex string used to filter by router interface name.
- opposite
Interface stringId - ID of the peer router interface.
- opposite
Interface stringOwner Id - Account ID of the owner of the peer router interface.
- output
File string - File name where to save data source results (after running
pulumi preview
). - role string
- Role of the router interface. Valid values are
InitiatingSide
(connection initiator) andAcceptingSide
(connection receiver). The value of this parameter must beInitiatingSide
if therouter_type
is set toVBR
. - router
Id string - ID of the VRouter located in the local region.
- router
Type string - Router type in the local region. Valid values are
VRouter
andVBR
(physical connection). - specification string
- Specification of the link, such as
Small.1
(10Mb),Middle.1
(100Mb),Large.2
(2Gb), ...etc. - status string
- Expected status. Valid values are
Active
,Inactive
andIdle
.
- ids Sequence[str]
- A list of router interface IDs.
- name_
regex str - A regex string used to filter by router interface name.
- opposite_
interface_ strid - ID of the peer router interface.
- opposite_
interface_ strowner_ id - Account ID of the owner of the peer router interface.
- output_
file str - File name where to save data source results (after running
pulumi preview
). - role str
- Role of the router interface. Valid values are
InitiatingSide
(connection initiator) andAcceptingSide
(connection receiver). The value of this parameter must beInitiatingSide
if therouter_type
is set toVBR
. - router_
id str - ID of the VRouter located in the local region.
- router_
type str - Router type in the local region. Valid values are
VRouter
andVBR
(physical connection). - specification str
- Specification of the link, such as
Small.1
(10Mb),Middle.1
(100Mb),Large.2
(2Gb), ...etc. - status str
- Expected status. Valid values are
Active
,Inactive
andIdle
.
- ids List<String>
- A list of router interface IDs.
- name
Regex String - A regex string used to filter by router interface name.
- opposite
Interface StringId - ID of the peer router interface.
- opposite
Interface StringOwner Id - Account ID of the owner of the peer router interface.
- output
File String - File name where to save data source results (after running
pulumi preview
). - role String
- Role of the router interface. Valid values are
InitiatingSide
(connection initiator) andAcceptingSide
(connection receiver). The value of this parameter must beInitiatingSide
if therouter_type
is set toVBR
. - router
Id String - ID of the VRouter located in the local region.
- router
Type String - Router type in the local region. Valid values are
VRouter
andVBR
(physical connection). - specification String
- Specification of the link, such as
Small.1
(10Mb),Middle.1
(100Mb),Large.2
(2Gb), ...etc. - status String
- Expected status. Valid values are
Active
,Inactive
andIdle
.
getRouterInterfaces Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- A list of router interface IDs.
- Interfaces
List<Pulumi.
Ali Cloud. Vpc. Outputs. Get Router Interfaces Interface> - A list of router interfaces. Each element contains the following attributes:
- Names List<string>
- A list of router interface names.
- Name
Regex string - Opposite
Interface stringId - Peer router interface ID.
- Opposite
Interface stringOwner Id - Account ID of the owner of the peer router interface.
- Output
File string - Role string
- Router interface role. Possible values:
InitiatingSide
andAcceptingSide
. - Router
Id string - ID of the VRouter located in the local region.
- Router
Type string - Router type in the local region. Possible values:
VRouter
andVBR
. - Specification string
- Router interface specification. Possible values:
Small.1
,Middle.1
,Large.2
, ...etc. - Status string
- Router interface status. Possible values:
Active
,Inactive
andIdle
.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- A list of router interface IDs.
- Interfaces
[]Get
Router Interfaces Interface - A list of router interfaces. Each element contains the following attributes:
- Names []string
- A list of router interface names.
- Name
Regex string - Opposite
Interface stringId - Peer router interface ID.
- Opposite
Interface stringOwner Id - Account ID of the owner of the peer router interface.
- Output
File string - Role string
- Router interface role. Possible values:
InitiatingSide
andAcceptingSide
. - Router
Id string - ID of the VRouter located in the local region.
- Router
Type string - Router type in the local region. Possible values:
VRouter
andVBR
. - Specification string
- Router interface specification. Possible values:
Small.1
,Middle.1
,Large.2
, ...etc. - Status string
- Router interface status. Possible values:
Active
,Inactive
andIdle
.
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of router interface IDs.
- interfaces
List<Get
Router Interfaces Interface> - A list of router interfaces. Each element contains the following attributes:
- names List<String>
- A list of router interface names.
- name
Regex String - opposite
Interface StringId - Peer router interface ID.
- opposite
Interface StringOwner Id - Account ID of the owner of the peer router interface.
- output
File String - role String
- Router interface role. Possible values:
InitiatingSide
andAcceptingSide
. - router
Id String - ID of the VRouter located in the local region.
- router
Type String - Router type in the local region. Possible values:
VRouter
andVBR
. - specification String
- Router interface specification. Possible values:
Small.1
,Middle.1
,Large.2
, ...etc. - status String
- Router interface status. Possible values:
Active
,Inactive
andIdle
.
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- A list of router interface IDs.
- interfaces
Get
Router Interfaces Interface[] - A list of router interfaces. Each element contains the following attributes:
- names string[]
- A list of router interface names.
- name
Regex string - opposite
Interface stringId - Peer router interface ID.
- opposite
Interface stringOwner Id - Account ID of the owner of the peer router interface.
- output
File string - role string
- Router interface role. Possible values:
InitiatingSide
andAcceptingSide
. - router
Id string - ID of the VRouter located in the local region.
- router
Type string - Router type in the local region. Possible values:
VRouter
andVBR
. - specification string
- Router interface specification. Possible values:
Small.1
,Middle.1
,Large.2
, ...etc. - status string
- Router interface status. Possible values:
Active
,Inactive
andIdle
.
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- A list of router interface IDs.
- interfaces
Sequence[Get
Router Interfaces Interface] - A list of router interfaces. Each element contains the following attributes:
- names Sequence[str]
- A list of router interface names.
- name_
regex str - opposite_
interface_ strid - Peer router interface ID.
- opposite_
interface_ strowner_ id - Account ID of the owner of the peer router interface.
- output_
file str - role str
- Router interface role. Possible values:
InitiatingSide
andAcceptingSide
. - router_
id str - ID of the VRouter located in the local region.
- router_
type str - Router type in the local region. Possible values:
VRouter
andVBR
. - specification str
- Router interface specification. Possible values:
Small.1
,Middle.1
,Large.2
, ...etc. - status str
- Router interface status. Possible values:
Active
,Inactive
andIdle
.
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of router interface IDs.
- interfaces List<Property Map>
- A list of router interfaces. Each element contains the following attributes:
- names List<String>
- A list of router interface names.
- name
Regex String - opposite
Interface StringId - Peer router interface ID.
- opposite
Interface StringOwner Id - Account ID of the owner of the peer router interface.
- output
File String - role String
- Router interface role. Possible values:
InitiatingSide
andAcceptingSide
. - router
Id String - ID of the VRouter located in the local region.
- router
Type String - Router type in the local region. Possible values:
VRouter
andVBR
. - specification String
- Router interface specification. Possible values:
Small.1
,Middle.1
,Large.2
, ...etc. - status String
- Router interface status. Possible values:
Active
,Inactive
andIdle
.
Supporting Types
GetRouterInterfacesInterface
- Access
Point stringId - ID of the access point used by the VBR.
- Creation
Time string - Router interface creation time.
- Description string
- Router interface description.
- Health
Check stringSource Ip - Source IP address used to perform health check on the physical connection.
- Health
Check stringTarget Ip - Destination IP address used to perform health check on the physical connection.
- Id string
- Router interface ID.
- Name string
- Router interface name.
- Opposite
Interface stringId - ID of the peer router interface.
- Opposite
Interface stringOwner Id - Account ID of the owner of the peer router interface.
- Opposite
Region stringId - Peer router region ID.
- Opposite
Router stringId - Peer router ID.
- Opposite
Router stringType - Router type in the peer region. Possible values:
VRouter
andVBR
. - Role string
- Role of the router interface. Valid values are
InitiatingSide
(connection initiator) andAcceptingSide
(connection receiver). The value of this parameter must beInitiatingSide
if therouter_type
is set toVBR
. - Router
Id string - ID of the VRouter located in the local region.
- Router
Type string - Router type in the local region. Valid values are
VRouter
andVBR
(physical connection). - Specification string
- Specification of the link, such as
Small.1
(10Mb),Middle.1
(100Mb),Large.2
(2Gb), ...etc. - Status string
- Expected status. Valid values are
Active
,Inactive
andIdle
. - Vpc
Id string - ID of the VPC that owns the router in the local region.
- Access
Point stringId - ID of the access point used by the VBR.
- Creation
Time string - Router interface creation time.
- Description string
- Router interface description.
- Health
Check stringSource Ip - Source IP address used to perform health check on the physical connection.
- Health
Check stringTarget Ip - Destination IP address used to perform health check on the physical connection.
- Id string
- Router interface ID.
- Name string
- Router interface name.
- Opposite
Interface stringId - ID of the peer router interface.
- Opposite
Interface stringOwner Id - Account ID of the owner of the peer router interface.
- Opposite
Region stringId - Peer router region ID.
- Opposite
Router stringId - Peer router ID.
- Opposite
Router stringType - Router type in the peer region. Possible values:
VRouter
andVBR
. - Role string
- Role of the router interface. Valid values are
InitiatingSide
(connection initiator) andAcceptingSide
(connection receiver). The value of this parameter must beInitiatingSide
if therouter_type
is set toVBR
. - Router
Id string - ID of the VRouter located in the local region.
- Router
Type string - Router type in the local region. Valid values are
VRouter
andVBR
(physical connection). - Specification string
- Specification of the link, such as
Small.1
(10Mb),Middle.1
(100Mb),Large.2
(2Gb), ...etc. - Status string
- Expected status. Valid values are
Active
,Inactive
andIdle
. - Vpc
Id string - ID of the VPC that owns the router in the local region.
- access
Point StringId - ID of the access point used by the VBR.
- creation
Time String - Router interface creation time.
- description String
- Router interface description.
- health
Check StringSource Ip - Source IP address used to perform health check on the physical connection.
- health
Check StringTarget Ip - Destination IP address used to perform health check on the physical connection.
- id String
- Router interface ID.
- name String
- Router interface name.
- opposite
Interface StringId - ID of the peer router interface.
- opposite
Interface StringOwner Id - Account ID of the owner of the peer router interface.
- opposite
Region StringId - Peer router region ID.
- opposite
Router StringId - Peer router ID.
- opposite
Router StringType - Router type in the peer region. Possible values:
VRouter
andVBR
. - role String
- Role of the router interface. Valid values are
InitiatingSide
(connection initiator) andAcceptingSide
(connection receiver). The value of this parameter must beInitiatingSide
if therouter_type
is set toVBR
. - router
Id String - ID of the VRouter located in the local region.
- router
Type String - Router type in the local region. Valid values are
VRouter
andVBR
(physical connection). - specification String
- Specification of the link, such as
Small.1
(10Mb),Middle.1
(100Mb),Large.2
(2Gb), ...etc. - status String
- Expected status. Valid values are
Active
,Inactive
andIdle
. - vpc
Id String - ID of the VPC that owns the router in the local region.
- access
Point stringId - ID of the access point used by the VBR.
- creation
Time string - Router interface creation time.
- description string
- Router interface description.
- health
Check stringSource Ip - Source IP address used to perform health check on the physical connection.
- health
Check stringTarget Ip - Destination IP address used to perform health check on the physical connection.
- id string
- Router interface ID.
- name string
- Router interface name.
- opposite
Interface stringId - ID of the peer router interface.
- opposite
Interface stringOwner Id - Account ID of the owner of the peer router interface.
- opposite
Region stringId - Peer router region ID.
- opposite
Router stringId - Peer router ID.
- opposite
Router stringType - Router type in the peer region. Possible values:
VRouter
andVBR
. - role string
- Role of the router interface. Valid values are
InitiatingSide
(connection initiator) andAcceptingSide
(connection receiver). The value of this parameter must beInitiatingSide
if therouter_type
is set toVBR
. - router
Id string - ID of the VRouter located in the local region.
- router
Type string - Router type in the local region. Valid values are
VRouter
andVBR
(physical connection). - specification string
- Specification of the link, such as
Small.1
(10Mb),Middle.1
(100Mb),Large.2
(2Gb), ...etc. - status string
- Expected status. Valid values are
Active
,Inactive
andIdle
. - vpc
Id string - ID of the VPC that owns the router in the local region.
- access_
point_ strid - ID of the access point used by the VBR.
- creation_
time str - Router interface creation time.
- description str
- Router interface description.
- health_
check_ strsource_ ip - Source IP address used to perform health check on the physical connection.
- health_
check_ strtarget_ ip - Destination IP address used to perform health check on the physical connection.
- id str
- Router interface ID.
- name str
- Router interface name.
- opposite_
interface_ strid - ID of the peer router interface.
- opposite_
interface_ strowner_ id - Account ID of the owner of the peer router interface.
- opposite_
region_ strid - Peer router region ID.
- opposite_
router_ strid - Peer router ID.
- opposite_
router_ strtype - Router type in the peer region. Possible values:
VRouter
andVBR
. - role str
- Role of the router interface. Valid values are
InitiatingSide
(connection initiator) andAcceptingSide
(connection receiver). The value of this parameter must beInitiatingSide
if therouter_type
is set toVBR
. - router_
id str - ID of the VRouter located in the local region.
- router_
type str - Router type in the local region. Valid values are
VRouter
andVBR
(physical connection). - specification str
- Specification of the link, such as
Small.1
(10Mb),Middle.1
(100Mb),Large.2
(2Gb), ...etc. - status str
- Expected status. Valid values are
Active
,Inactive
andIdle
. - vpc_
id str - ID of the VPC that owns the router in the local region.
- access
Point StringId - ID of the access point used by the VBR.
- creation
Time String - Router interface creation time.
- description String
- Router interface description.
- health
Check StringSource Ip - Source IP address used to perform health check on the physical connection.
- health
Check StringTarget Ip - Destination IP address used to perform health check on the physical connection.
- id String
- Router interface ID.
- name String
- Router interface name.
- opposite
Interface StringId - ID of the peer router interface.
- opposite
Interface StringOwner Id - Account ID of the owner of the peer router interface.
- opposite
Region StringId - Peer router region ID.
- opposite
Router StringId - Peer router ID.
- opposite
Router StringType - Router type in the peer region. Possible values:
VRouter
andVBR
. - role String
- Role of the router interface. Valid values are
InitiatingSide
(connection initiator) andAcceptingSide
(connection receiver). The value of this parameter must beInitiatingSide
if therouter_type
is set toVBR
. - router
Id String - ID of the VRouter located in the local region.
- router
Type String - Router type in the local region. Valid values are
VRouter
andVBR
(physical connection). - specification String
- Specification of the link, such as
Small.1
(10Mb),Middle.1
(100Mb),Large.2
(2Gb), ...etc. - status String
- Expected status. Valid values are
Active
,Inactive
andIdle
. - vpc
Id String - ID of the VPC that owns the router in the local region.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.