» alicloud_router_interfaces
This data source provides information about router interfaces that connect VPCs together.
» Example Usage
data "alicloud_router_interfaces" "router_interfaces_ds" {
name_regex = "^testenv"
status = "Active"
}
output "first_router_interface_id" {
value = "${data.alicloud_router_interfaces.router_interfaces_ds.interfaces.0.id}"
}
» Argument Reference
The following arguments are supported:
-
name_regex
- (Optional) A regex string used to filter by router interface name. -
status
- (Optional) Expected status. Valid values areActive
,Inactive
andIdle
. -
specification
- (Optional) Specification of the link, such asSmall.1
(10Mb),Middle.1
(100Mb),Large.2
(2Gb), ...etc. -
router_id
- (Optional) ID of the VRouter located in the local region. -
router_type
- (Optional) Router type in the local region. Valid values areVRouter
andVBR
(physical connection). -
role
- (Optional) Role of the router interface. Valid values areInitiatingSide
(connection initiator) andAcceptingSide
(connection receiver). The value of this parameter must beInitiatingSide
if therouter_type
is set toVBR
. -
opposite_interface_id
- (Optional) ID of the peer router interface. -
opposite_interface_owner_id
- (Optional) Account ID of the owner of the peer router interface. -
output_file
- (Optional) File name where to save data source results (after runningterraform plan
).
» Attributes Reference
The following attributes are exported in addition to the arguments listed above:
-
interfaces
- A list of router interfaces. Each element contains the following attributes:-
id
- Router interface ID. -
status
- Router interface status. Possible values:Active
,Inactive
andIdle
. -
name
- Router interface name. -
description
- Router interface description. -
role
- Router interface role. Possible values:InitiatingSide
andAcceptingSide
. -
specification
- Router interface specification. Possible values:Small.1
,Middle.1
,Large.2
, ...etc. -
router_id
- ID of the VRouter located in the local region. -
router_type
- Router type in the local region. Possible values:VRouter
andVBR
. -
vpc_id
- ID of the VPC that owns the router in the local region. -
access_point_id
- ID of the access point used by the VBR. -
creation_time
- Router interface creation time. -
opposite_region_id
- Peer router region ID. -
opposite_interface_id
- Peer router interface ID. -
opposite_router_id
- Peer router ID. -
opposite_router_type
- Router type in the peer region. Possible values:VRouter
andVBR
. -
opposite_interface_owner_id
- Account ID of the owner of the peer router interface. -
health_check_source_ip
- Source IP address used to perform health check on the physical connection. -
health_check_target_ip
- Destination IP address used to perform health check on the physical connection.
-