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