getNetworkWatcher

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

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.network.NetworkFunctions;
import com.pulumi.azure.network.inputs.GetNetworkWatcherArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = NetworkFunctions.getNetworkWatcher(GetNetworkWatcherArgs.builder()
.name(azurerm_network_watcher.example().name())
.resourceGroupName(azurerm_resource_group.example().name())
.build());
ctx.export("networkWatcherId", example.applyValue(getNetworkWatcherResult -> getNetworkWatcherResult.id()));
}
}

Return

A collection of values returned by getNetworkWatcher.

Parameters

argument

A collection of arguments for invoking getNetworkWatcher.


suspend fun getNetworkWatcher(name: String, resourceGroupName: String): GetNetworkWatcherResult

Return

A collection of values returned by getNetworkWatcher.

See also

Parameters

name

Specifies the Name of the Network Watcher.

resourceGroupName

Specifies the Name of the Resource Group within which the Network Watcher exists.


Return

A collection of values returned by getNetworkWatcher.

See also

Parameters

argument

Builder for com.pulumi.azure.network.kotlin.inputs.GetNetworkWatcherPlainArgs.