Sdílet prostřednictvím


NetworkExtensions.GetWebApplicationFirewallPolicies Method

Definition

Overloads

GetWebApplicationFirewallPolicies(ResourceGroupResource)

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

GetWebApplicationFirewallPolicies(SubscriptionResource, CancellationToken)

Gets all the WAF policies in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies
  • Operation Id: WebApplicationFirewallPolicies_ListAll
  • Default Api Version: 2024-03-01
  • Resource: WebApplicationFirewallPolicyResource

GetWebApplicationFirewallPolicies(ResourceGroupResource)

Source:
NetworkExtensions.cs
Source:
NetworkExtensions.cs

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

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

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of WebApplicationFirewallPolicyResources and their operations over a WebApplicationFirewallPolicyResource.

Exceptions

resourceGroupResource is null.

Applies to

GetWebApplicationFirewallPolicies(SubscriptionResource, CancellationToken)

Source:
NetworkExtensions.cs
Source:
NetworkExtensions.cs

Gets all the WAF policies in a subscription.

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

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to