Share via


MockableReservationsTenantResource.ExchangeAsync Method

Definition

Returns one or more Reservations in exchange for one or more Reservation purchases.

  • Request Path: /providers/Microsoft.Capacity/exchange
  • Operation Id: Exchange_Post
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Reservations.Models.ExchangeResult>> ExchangeAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.Reservations.Models.ExchangeContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member ExchangeAsync : Azure.WaitUntil * Azure.ResourceManager.Reservations.Models.ExchangeContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Reservations.Models.ExchangeResult>>
override this.ExchangeAsync : Azure.WaitUntil * Azure.ResourceManager.Reservations.Models.ExchangeContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Reservations.Models.ExchangeResult>>
Public Overridable Function ExchangeAsync (waitUntil As WaitUntil, content As ExchangeContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of ExchangeResult))

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
ExchangeContent

Request containing the refunds and purchases that need to be executed.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

content is null.

Applies to