Share via


ReservationOrderCollection.CreateOrUpdate Method

Definition

Purchase ReservationOrder and create resource under the specified URI.

  • Request Path: /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}
  • Operation Id: ReservationOrder_Purchase
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Reservations.ReservationOrderResource> CreateOrUpdate (Azure.WaitUntil waitUntil, Guid reservationOrderId, Azure.ResourceManager.Reservations.Models.ReservationPurchaseContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * Guid * Azure.ResourceManager.Reservations.Models.ReservationPurchaseContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Reservations.ReservationOrderResource>
override this.CreateOrUpdate : Azure.WaitUntil * Guid * Azure.ResourceManager.Reservations.Models.ReservationPurchaseContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Reservations.ReservationOrderResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, reservationOrderId As Guid, content As ReservationPurchaseContent, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of ReservationOrderResource)

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.

reservationOrderId
Guid

Order Id of the reservation.

content
ReservationPurchaseContent

Information needed for calculate or purchase reservation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

content is null.

Applies to