ReservationOrderResource.ReturnAsync Method

Definition

Return a reservation and get refund information.

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

content
ReservationRefundContent

Information needed for returning reservation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

content is null.

Applies to