你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

BillingAccountConsumptionResource.GetReservationTransactions 方法

定义

计费帐户范围上预留实例的事务列表。 注意:退款交易与其购买交易一起发布 (,即在购买计费月份) 。 例如,退款请求在 2021 年 5 月。 此退款交易的事件日期为 2021 年 5 月,但计费月份为购买预留时的 2020 年 4 月。

  • 请求路径/提供程序/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Consumption/reservationTransactions
  • 操作IdReservationTransactions_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)

参数

filter
String

按日期范围筛选预留事务。 开始日期和结束日期的属性/EventDate。 筛选器支持“le”和“ge”。 注意:API 返回整个开始日期和结束日期的计费月份的数据。 例如,filter properties/eventDate+ge+2020-01-01+AND+properties/eventDate+le+2020-12-29 将包含整个 2020 年 12 月 (即将包含 12 月 30 日和 31) 日期的记录。

cancellationToken
CancellationToken

要使用的取消标记。

返回

的集合 ConsumptionReservationTransaction ,可能需要多个服务请求才能循环访问。

适用于