Share via


BillingAccountConsumptionResource.GetLotsAsync Method

Definition

Lists all Microsoft Azure consumption commitments for a billing account. The API is only supported for Microsoft Customer Agreements (MCA) and Direct Enterprise Agreement (EA) billing accounts.

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

Parameters

filter
String

May be used to filter the lots by Status, Source etc. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair string where key and value is separated by a colon (:).

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of ConsumptionLotSummary that may take multiple service requests to iterate over.

Applies to