共用方式為


ReservationOrderCollection.CreateOrUpdateAsync Method

Definition

Purchase ReservationOrder and create resource under the specified URI.

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