Share via


BillingAccountConsumptionResource.GetReservationTransactions Method

Definition

List of transactions for reserved instances on billing account scope. Note: The refund transactions are posted along with its purchase transaction (i.e. in the purchase billing month). For example, The refund is requested in May 2021. This refund transaction will have event date as May 2021 but the billing month as April 2020 when the reservation purchase was made.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Consumption/reservationTransactions
  • Operation Id: ReservationTransactions_List
public virtual Azure.Pageable<Azure.ResourceManager.Consumption.Models.ConsumptionReservationTransaction> GetReservationTransactions (string filter = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetReservationTransactions : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Consumption.Models.ConsumptionReservationTransaction>
override this.GetReservationTransactions : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Consumption.Models.ConsumptionReservationTransaction>
Public Overridable Function GetReservationTransactions (Optional filter As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ConsumptionReservationTransaction)

Parameters

filter
String

Filter reservation transactions by date range. The properties/EventDate for start date and end date. The filter supports 'le' and 'ge'. Note: API returns data for the entire start date's and end date's billing month. For example, filter properties/eventDate+ge+2020-01-01+AND+properties/eventDate+le+2020-12-29 will include data for the entire December 2020 month (i.e. will contain records for dates December 30 and 31).

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of ConsumptionReservationTransaction that may take multiple service requests to iterate over.

Applies to