azure-native.network.getNetworkWatcher
Explore with Pulumi AI
Gets the specified network watcher by resource group.
Uses Azure REST API version 2024-05-01.
Other available API versions: 2018-06-01, 2018-07-01, 2018-08-01, 2018-10-01, 2018-11-01, 2018-12-01, 2019-02-01, 2019-04-01, 2019-06-01, 2019-07-01, 2019-08-01, 2019-09-01, 2019-11-01, 2019-12-01, 2020-03-01, 2020-04-01, 2020-05-01, 2020-06-01, 2020-07-01, 2020-08-01, 2020-11-01, 2021-02-01, 2021-03-01, 2021-05-01, 2021-08-01, 2022-01-01, 2022-05-01, 2022-07-01, 2022-09-01, 2022-11-01, 2023-02-01, 2023-04-01, 2023-05-01, 2023-06-01, 2023-09-01, 2023-11-01, 2024-01-01, 2024-03-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native network [ApiVersion]
. See the version guide for details.
Using getNetworkWatcher
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getNetworkWatcher(args: GetNetworkWatcherArgs, opts?: InvokeOptions): Promise<GetNetworkWatcherResult>
function getNetworkWatcherOutput(args: GetNetworkWatcherOutputArgs, opts?: InvokeOptions): Output<GetNetworkWatcherResult>
def get_network_watcher(network_watcher_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNetworkWatcherResult
def get_network_watcher_output(network_watcher_name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNetworkWatcherResult]
func LookupNetworkWatcher(ctx *Context, args *LookupNetworkWatcherArgs, opts ...InvokeOption) (*LookupNetworkWatcherResult, error)
func LookupNetworkWatcherOutput(ctx *Context, args *LookupNetworkWatcherOutputArgs, opts ...InvokeOption) LookupNetworkWatcherResultOutput
> Note: This function is named LookupNetworkWatcher
in the Go SDK.
public static class GetNetworkWatcher
{
public static Task<GetNetworkWatcherResult> InvokeAsync(GetNetworkWatcherArgs args, InvokeOptions? opts = null)
public static Output<GetNetworkWatcherResult> Invoke(GetNetworkWatcherInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNetworkWatcherResult> getNetworkWatcher(GetNetworkWatcherArgs args, InvokeOptions options)
public static Output<GetNetworkWatcherResult> getNetworkWatcher(GetNetworkWatcherArgs args, InvokeOptions options)
fn::invoke:
function: azure-native:network:getNetworkWatcher
arguments:
# arguments dictionary
The following arguments are supported:
- Network
Watcher stringName - The name of the network watcher.
- Resource
Group stringName - The name of the resource group.
- Network
Watcher stringName - The name of the network watcher.
- Resource
Group stringName - The name of the resource group.
- network
Watcher StringName - The name of the network watcher.
- resource
Group StringName - The name of the resource group.
- network
Watcher stringName - The name of the network watcher.
- resource
Group stringName - The name of the resource group.
- network_
watcher_ strname - The name of the network watcher.
- resource_
group_ strname - The name of the resource group.
- network
Watcher StringName - The name of the network watcher.
- resource
Group StringName - The name of the resource group.
getNetworkWatcher Result
The following output properties are available:
- Azure
Api stringVersion - The Azure API version of the resource.
- Etag string
- A unique read-only string that changes whenever the resource is updated.
- Name string
- Resource name.
- Provisioning
State string - The provisioning state of the network watcher resource.
- Type string
- Resource type.
- Id string
- Resource ID.
- Location string
- Resource location.
- Dictionary<string, string>
- Resource tags.
- Azure
Api stringVersion - The Azure API version of the resource.
- Etag string
- A unique read-only string that changes whenever the resource is updated.
- Name string
- Resource name.
- Provisioning
State string - The provisioning state of the network watcher resource.
- Type string
- Resource type.
- Id string
- Resource ID.
- Location string
- Resource location.
- map[string]string
- Resource tags.
- azure
Api StringVersion - The Azure API version of the resource.
- etag String
- A unique read-only string that changes whenever the resource is updated.
- name String
- Resource name.
- provisioning
State String - The provisioning state of the network watcher resource.
- type String
- Resource type.
- id String
- Resource ID.
- location String
- Resource location.
- Map<String,String>
- Resource tags.
- azure
Api stringVersion - The Azure API version of the resource.
- etag string
- A unique read-only string that changes whenever the resource is updated.
- name string
- Resource name.
- provisioning
State string - The provisioning state of the network watcher resource.
- type string
- Resource type.
- id string
- Resource ID.
- location string
- Resource location.
- {[key: string]: string}
- Resource tags.
- azure_
api_ strversion - The Azure API version of the resource.
- etag str
- A unique read-only string that changes whenever the resource is updated.
- name str
- Resource name.
- provisioning_
state str - The provisioning state of the network watcher resource.
- type str
- Resource type.
- id str
- Resource ID.
- location str
- Resource location.
- Mapping[str, str]
- Resource tags.
- azure
Api StringVersion - The Azure API version of the resource.
- etag String
- A unique read-only string that changes whenever the resource is updated.
- name String
- Resource name.
- provisioning
State String - The provisioning state of the network watcher resource.
- type String
- Resource type.
- id String
- Resource ID.
- location String
- Resource location.
- Map<String>
- Resource tags.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0