ReservationOrderResource.Return Method

Definition

Return a reservation and get refund information.

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

content
ReservationRefundContent

Information needed for returning reservation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

content is null.

Applies to