Show / Hide Table of Contents

Class GetRouterInterfaces

Inheritance
System.Object
GetRouterInterfaces
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AliCloud.Vpc
Assembly: Pulumi.AliCloud.dll
Syntax
public static class GetRouterInterfaces

Methods

View Source

InvokeAsync(GetRouterInterfacesArgs, InvokeOptions)

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

{{% examples %}}

Example Usage

{{% example %}}

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; }
}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetRouterInterfacesResult> InvokeAsync(GetRouterInterfacesArgs args = null, InvokeOptions options = null)
Parameters
Type Name Description
GetRouterInterfacesArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetRouterInterfacesResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.