Share via


FrontDoorSecurityPolicyCollection.CreateOrUpdate 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 Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Cdn.FrontDoorSecurityPolicyResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string securityPolicyName, Azure.ResourceManager.Cdn.FrontDoorSecurityPolicyData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Cdn.FrontDoorSecurityPolicyData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Cdn.FrontDoorSecurityPolicyResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Cdn.FrontDoorSecurityPolicyData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Cdn.FrontDoorSecurityPolicyResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, securityPolicyName As String, data As FrontDoorSecurityPolicyData, Optional cancellationToken As CancellationToken = Nothing) As 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