共用方式為


NetworkExtensions.GetNetworkWatchers Method

Definition

Overloads

GetNetworkWatchers(ResourceGroupResource)

Gets a collection of NetworkWatcherResources in the ResourceGroupResource. MockingTo mock this method, please mock GetNetworkWatchers() instead.

GetNetworkWatchers(SubscriptionResource, CancellationToken)

Gets all network watchers by subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/networkWatchers
  • Operation Id: NetworkWatchers_ListAll
  • Default Api Version: 2024-03-01
  • Resource: NetworkWatcherResource

GetNetworkWatchers(ResourceGroupResource)

Source:
NetworkExtensions.cs
Source:
NetworkExtensions.cs

Gets a collection of NetworkWatcherResources in the ResourceGroupResource. MockingTo mock this method, please mock GetNetworkWatchers() instead.

public static Azure.ResourceManager.Network.NetworkWatcherCollection GetNetworkWatchers (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetNetworkWatchers : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Network.NetworkWatcherCollection
<Extension()>
Public Function GetNetworkWatchers (resourceGroupResource As ResourceGroupResource) As NetworkWatcherCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of NetworkWatcherResources and their operations over a NetworkWatcherResource.

Exceptions

resourceGroupResource is null.

Applies to

GetNetworkWatchers(SubscriptionResource, CancellationToken)

Source:
NetworkExtensions.cs
Source:
NetworkExtensions.cs

Gets all network watchers by subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/networkWatchers
  • Operation Id: NetworkWatchers_ListAll
  • Default Api Version: 2024-03-01
  • Resource: NetworkWatcherResource
public static Azure.Pageable<Azure.ResourceManager.Network.NetworkWatcherResource> GetNetworkWatchers (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetNetworkWatchers : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Network.NetworkWatcherResource>
<Extension()>
Public Function GetNetworkWatchers (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of NetworkWatcherResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of NetworkWatcherResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to