GetRouterInterfaces
This data source provides information about router interfaces that connect VPCs together.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var routerInterfacesDs = Output.Create(AliCloud.Vpc.GetRouterInterfaces.InvokeAsync(new AliCloud.Vpc.GetRouterInterfacesArgs
{
NameRegex = "^testenv",
Status = "Active",
}));
this.FirstRouterInterfaceId = routerInterfacesDs.Apply(routerInterfacesDs => routerInterfacesDs.Interfaces[0].Id);
}
[Output("firstRouterInterfaceId")]
public Output<string> FirstRouterInterfaceId { get; set; }
}
Coming soon!
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"])import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const routerInterfacesDs = pulumi.output(alicloud.vpc.getRouterInterfaces({
nameRegex: "^testenv",
status: "Active",
}, { async: true }));
export const firstRouterInterfaceId = routerInterfacesDs.interfaces[0].id;Using GetRouterInterfaces
function getRouterInterfaces(args: GetRouterInterfacesArgs, opts?: InvokeOptions): Promise<GetRouterInterfacesResult>function get_router_interfaces(ids=None, name_regex=None, opposite_interface_id=None, opposite_interface_owner_id=None, output_file=None, role=None, router_id=None, router_type=None, specification=None, status=None, opts=None)func GetRouterInterfaces(ctx *Context, args *GetRouterInterfacesArgs, opts ...InvokeOption) (*GetRouterInterfacesResult, error)public static class GetRouterInterfaces {
public static Task<GetRouterInterfacesResult> InvokeAsync(GetRouterInterfacesArgs args, InvokeOptions? opts = null)
}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 - Role string
Role of the router interface. Valid values are
InitiatingSide(connection initiator) andAcceptingSide(connection receiver). The value of this parameter must beInitiatingSideif therouter_typeis 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
VRouterandVBR(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,InactiveandIdle.
- 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 - Role string
Role of the router interface. Valid values are
InitiatingSide(connection initiator) andAcceptingSide(connection receiver). The value of this parameter must beInitiatingSideif therouter_typeis 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
VRouterandVBR(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,InactiveandIdle.
- 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 - role string
Role of the router interface. Valid values are
InitiatingSide(connection initiator) andAcceptingSide(connection receiver). The value of this parameter must beInitiatingSideif therouter_typeis 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
VRouterandVBR(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,InactiveandIdle.
- ids List[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 - role str
Role of the router interface. Valid values are
InitiatingSide(connection initiator) andAcceptingSide(connection receiver). The value of this parameter must beInitiatingSideif therouter_typeis 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
VRouterandVBR(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,InactiveandIdle.
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:
InitiatingSideandAcceptingSide.- Router
Id string ID of the VRouter located in the local region.
- Router
Type string Router type in the local region. Possible values:
VRouterandVBR.- Specification string
Router interface specification. Possible values:
Small.1,Middle.1,Large.2, …etc.- Status string
Router interface status. Possible values:
Active,InactiveandIdle.
- 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:
InitiatingSideandAcceptingSide.- Router
Id string ID of the VRouter located in the local region.
- Router
Type string Router type in the local region. Possible values:
VRouterandVBR.- Specification string
Router interface specification. Possible values:
Small.1,Middle.1,Large.2, …etc.- Status string
Router interface status. Possible values:
Active,InactiveandIdle.
- 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:
InitiatingSideandAcceptingSide.- router
Id string ID of the VRouter located in the local region.
- router
Type string Router type in the local region. Possible values:
VRouterandVBR.- specification string
Router interface specification. Possible values:
Small.1,Middle.1,Large.2, …etc.- status string
Router interface status. Possible values:
Active,InactiveandIdle.
- id str
The provider-assigned unique ID for this managed resource.
- ids List[str]
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[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:
InitiatingSideandAcceptingSide.- router_
id str ID of the VRouter located in the local region.
- router_
type str Router type in the local region. Possible values:
VRouterandVBR.- specification str
Router interface specification. Possible values:
Small.1,Middle.1,Large.2, …etc.- status str
Router interface status. Possible values:
Active,InactiveandIdle.
Supporting Types
GetRouterInterfacesInterface
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- 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:
VRouterandVBR.- Role string
Role of the router interface. Valid values are
InitiatingSide(connection initiator) andAcceptingSide(connection receiver). The value of this parameter must beInitiatingSideif therouter_typeis 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
VRouterandVBR(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,InactiveandIdle.- 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:
VRouterandVBR.- Role string
Role of the router interface. Valid values are
InitiatingSide(connection initiator) andAcceptingSide(connection receiver). The value of this parameter must beInitiatingSideif therouter_typeis 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
VRouterandVBR(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,InactiveandIdle.- 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:
VRouterandVBR.- role string
Role of the router interface. Valid values are
InitiatingSide(connection initiator) andAcceptingSide(connection receiver). The value of this parameter must beInitiatingSideif therouter_typeis 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
VRouterandVBR(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,InactiveandIdle.- 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
Region strId Peer router region ID.
- opposite_
interface_ strid ID of the peer router interface.
- opposite_
interface_ strowner_ id Account ID of the owner of the peer router interface.
- opposite_
router_ strid Peer router ID.
- opposite_
router_ strtype Router type in the peer region. Possible values:
VRouterandVBR.- role str
Role of the router interface. Valid values are
InitiatingSide(connection initiator) andAcceptingSide(connection receiver). The value of this parameter must beInitiatingSideif therouter_typeis 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
VRouterandVBR(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,InactiveandIdle.- vpc_
id str ID of the VPC that owns the router in the local region.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.