WebApplicationFirewallPoliciesOperations.CreateOrUpdate(String, String, WebApplicationFirewallPolicy, CancellationToken) Method

Definition

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

public virtual Azure.Response<Azure.ResourceManager.Network.Models.WebApplicationFirewallPolicy> CreateOrUpdate (string resourceGroupName, string policyName, Azure.ResourceManager.Network.Models.WebApplicationFirewallPolicy parameters, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : string * string * Azure.ResourceManager.Network.Models.WebApplicationFirewallPolicy * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Network.Models.WebApplicationFirewallPolicy>
override this.CreateOrUpdate : string * string * Azure.ResourceManager.Network.Models.WebApplicationFirewallPolicy * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Network.Models.WebApplicationFirewallPolicy>
Public Overridable Function CreateOrUpdate (resourceGroupName As String, policyName As String, parameters As WebApplicationFirewallPolicy, Optional cancellationToken As CancellationToken = Nothing) As Response(Of WebApplicationFirewallPolicy)

Parameters

resourceGroupName
System.String

The name of the resource group.

policyName
System.String

The name of the policy.

parameters
WebApplicationFirewallPolicy

Policy to be created.

cancellationToken
System.Threading.CancellationToken

The cancellation token to use.

Returns

Response<WebApplicationFirewallPolicy>

Applies to