WebApplicationFirewallPolicyCollection Class

Definition

A class representing a collection of WebApplicationFirewallPolicyResource and their operations. Each WebApplicationFirewallPolicyResource in the collection will belong to the same instance of ResourceGroupResource. To get a WebApplicationFirewallPolicyCollection instance call the GetWebApplicationFirewallPolicies method from an instance of ResourceGroupResource.

public class WebApplicationFirewallPolicyCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable<Azure.ResourceManager.Network.WebApplicationFirewallPolicyResource>, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.WebApplicationFirewallPolicyResource>
type WebApplicationFirewallPolicyCollection = class
    inherit ArmCollection
    interface seq<WebApplicationFirewallPolicyResource>
    interface IEnumerable
    interface IAsyncEnumerable<WebApplicationFirewallPolicyResource>
Public Class WebApplicationFirewallPolicyCollection
Inherits ArmCollection
Implements IAsyncEnumerable(Of WebApplicationFirewallPolicyResource), IEnumerable(Of WebApplicationFirewallPolicyResource)
Inheritance
WebApplicationFirewallPolicyCollection
Implements

Constructors

WebApplicationFirewallPolicyCollection()

Initializes a new instance of the WebApplicationFirewallPolicyCollection class for mocking.

Properties

Client

Gets the ArmClient this resource client was created from.

(Inherited from ArmCollection)
Diagnostics

Gets the diagnostic options for this resource client.

(Inherited from ArmCollection)
Endpoint

Gets the base uri for this resource client.

(Inherited from ArmCollection)
Id

Gets the resource identifier.

(Inherited from ArmCollection)
Pipeline

Gets the pipeline for this resource client.

(Inherited from ArmCollection)

Methods

CreateOrUpdate(WaitUntil, String, WebApplicationFirewallPolicyData, CancellationToken)

Creates or update policy with specified rule set name within a resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/{policyName}
  • Operation Id: WebApplicationFirewallPolicies_CreateOrUpdate
  • Default Api Version: 2024-03-01
  • Resource: WebApplicationFirewallPolicyResource
CreateOrUpdateAsync(WaitUntil, String, WebApplicationFirewallPolicyData, CancellationToken)

Creates or update policy with specified rule set name within a resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/{policyName}
  • Operation Id: WebApplicationFirewallPolicies_CreateOrUpdate
  • Default Api Version: 2024-03-01
  • Resource: WebApplicationFirewallPolicyResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/{policyName}
  • Operation Id: WebApplicationFirewallPolicies_Get
  • Default Api Version: 2024-03-01
  • Resource: WebApplicationFirewallPolicyResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/{policyName}
  • Operation Id: WebApplicationFirewallPolicies_Get
  • Default Api Version: 2024-03-01
  • Resource: WebApplicationFirewallPolicyResource
Get(String, CancellationToken)

Retrieve protection policy with specified name within a resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/{policyName}
  • Operation Id: WebApplicationFirewallPolicies_Get
  • Default Api Version: 2024-03-01
  • Resource: WebApplicationFirewallPolicyResource
GetAll(CancellationToken)

Lists all of the protection policies within a resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies
  • Operation Id: WebApplicationFirewallPolicies_List
  • Default Api Version: 2024-03-01
  • Resource: WebApplicationFirewallPolicyResource
GetAllAsync(CancellationToken)

Lists all of the protection policies within a resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies
  • Operation Id: WebApplicationFirewallPolicies_List
  • Default Api Version: 2024-03-01
  • Resource: WebApplicationFirewallPolicyResource
GetAsync(String, CancellationToken)

Retrieve protection policy with specified name within a resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/{policyName}
  • Operation Id: WebApplicationFirewallPolicies_Get
  • Default Api Version: 2024-03-01
  • Resource: WebApplicationFirewallPolicyResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/{policyName}
  • Operation Id: WebApplicationFirewallPolicies_Get
  • Default Api Version: 2024-03-01
  • Resource: WebApplicationFirewallPolicyResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/{policyName}
  • Operation Id: WebApplicationFirewallPolicies_Get
  • Default Api Version: 2024-03-01
  • Resource: WebApplicationFirewallPolicyResource
TryGetApiVersion(ResourceType, String)

Gets the api version override if it has been set for the current client options.

(Inherited from ArmCollection)

Explicit Interface Implementations

IAsyncEnumerable<WebApplicationFirewallPolicyResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<WebApplicationFirewallPolicyResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to