Share via


EdgeOrderItemCollection.CreateOrUpdateAsync Method

Definition

Creates an order item. Existing order item cannot be updated with this api and should instead be updated with the Update order item API.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EdgeOrder/orderItems/{orderItemName}
  • Operation Id: CreateOrderItem
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.EdgeOrder.EdgeOrderItemResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string orderItemName, Azure.ResourceManager.EdgeOrder.EdgeOrderItemData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.EdgeOrder.EdgeOrderItemData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.EdgeOrder.EdgeOrderItemResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.EdgeOrder.EdgeOrderItemData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.EdgeOrder.EdgeOrderItemResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, orderItemName As String, data As EdgeOrderItemData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of EdgeOrderItemResource))

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.

orderItemName
String

The name of the order item.

data
EdgeOrderItemData

Order item details from request body.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

orderItemName or data is null.

Applies to