Share via


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