FrontDoorSecurityPolicyCollection.CreateOrUpdateAsync Method

Definition

Creates a new security policy within the specified profile.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/securityPolicies/{securityPolicyName}
  • Operation Id: FrontDoorSecurityPolicies_Create
  • Default Api Version: 2024-02-01
  • Resource: FrontDoorSecurityPolicyResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Cdn.FrontDoorSecurityPolicyResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string securityPolicyName, Azure.ResourceManager.Cdn.FrontDoorSecurityPolicyData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Cdn.FrontDoorSecurityPolicyData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Cdn.FrontDoorSecurityPolicyResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Cdn.FrontDoorSecurityPolicyData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Cdn.FrontDoorSecurityPolicyResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, securityPolicyName As String, data As FrontDoorSecurityPolicyData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of FrontDoorSecurityPolicyResource))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

securityPolicyName
String

Name of the security policy under the profile.

data
FrontDoorSecurityPolicyData

The security policy properties.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

securityPolicyName is an empty string, and was expected to be non-empty.

securityPolicyName or data is null.

Applies to