Show / Hide Table of Contents

Class GetNetworkWatcher

Inheritance
System.Object
GetNetworkWatcher
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 GetNetworkWatcher

Methods

View Source

InvokeAsync(GetNetworkWatcherArgs, InvokeOptions)

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

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
public MyStack()
{
    var example = Output.Create(Azure.Network.GetNetworkWatcher.InvokeAsync(new Azure.Network.GetNetworkWatcherArgs
    {
        Name = azurerm_network_watcher.Example.Name,
        ResourceGroupName = azurerm_resource_group.Example.Name,
    }));
    this.NetworkWatcherId = example.Apply(example => example.Id);
}

[Output("networkWatcherId")]
public Output<string> NetworkWatcherId { get; set; }
}

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

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