EdgeActionCollection.CreateOrUpdateAsync Method

Definition

Create a EdgeAction

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}.
  • Operation Id. : EdgeActions_Create.
  • Default Api Version. : 2025-12-01-preview.
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.EdgeActions.EdgeActionResource>> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string edgeActionName, Azure.ResourceManager.EdgeActions.EdgeActionData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.EdgeActions.EdgeActionData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.EdgeActions.EdgeActionResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.EdgeActions.EdgeActionData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.EdgeActions.EdgeActionResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, edgeActionName As String, data As EdgeActionData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of EdgeActionResource))

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.

edgeActionName
String

The name of the Edge Action.

data
EdgeActionData

Resource create parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

edgeActionName or data is null.

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

Applies to