Show / Hide Table of Contents

Class GetNetworkInterface

Inheritance
System.Object
GetNetworkInterface
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.Azure.Network
Assembly: Pulumi.Azure.dll
Syntax
public static class GetNetworkInterface

Methods

View Source

InvokeAsync(GetNetworkInterfaceArgs, InvokeOptions)

Use this data source to access information about an existing Network Interface.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
public MyStack()
{
    var example = Output.Create(Azure.Network.GetNetworkInterface.InvokeAsync(new Azure.Network.GetNetworkInterfaceArgs
    {
        Name = "acctest-nic",
        ResourceGroupName = "networking",
    }));
    this.NetworkInterfaceId = example.Apply(example => example.Id);
}

[Output("networkInterfaceId")]
public Output<string> NetworkInterfaceId { get; set; }
}

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

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