Share via


ManagedNetworkFabricExtensions.GetNetworkTapRules Method

Definition

Overloads

GetNetworkTapRules(ResourceGroupResource)

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

GetNetworkTapRules(SubscriptionResource, CancellationToken)

List all the Network Tap Rule resources in the given subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ManagedNetworkFabric/networkTapRules
  • Operation Id: NetworkTapRules_ListBySubscription

GetNetworkTapRules(ResourceGroupResource)

Source:
ManagedNetworkFabricExtensions.cs

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

public static Azure.ResourceManager.ManagedNetworkFabric.NetworkTapRuleCollection GetNetworkTapRules (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetNetworkTapRules : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.ManagedNetworkFabric.NetworkTapRuleCollection
<Extension()>
Public Function GetNetworkTapRules (resourceGroupResource As ResourceGroupResource) As NetworkTapRuleCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of NetworkTapRuleResources and their operations over a NetworkTapRuleResource.

Exceptions

resourceGroupResource is null.

Applies to

GetNetworkTapRules(SubscriptionResource, CancellationToken)

Source:
ManagedNetworkFabricExtensions.cs

List all the Network Tap Rule resources in the given subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ManagedNetworkFabric/networkTapRules
  • Operation Id: NetworkTapRules_ListBySubscription
public static Azure.Pageable<Azure.ResourceManager.ManagedNetworkFabric.NetworkTapRuleResource> GetNetworkTapRules (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetNetworkTapRules : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ManagedNetworkFabric.NetworkTapRuleResource>
<Extension()>
Public Function GetNetworkTapRules (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of NetworkTapRuleResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to