BillingCustomerConsumptionResource.GetLots(String, CancellationToken) Method

Definition

Lists all Azure credits for a customer. The API is only supported for Microsoft Partner Agreements (MPA) billing accounts.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}/providers/Microsoft.Consumption/lots
  • Operation Id: Lots_ListByCustomer
public virtual Azure.Pageable<Azure.ResourceManager.Consumption.Models.ConsumptionLotSummary> GetLots (string filter = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetLots : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Consumption.Models.ConsumptionLotSummary>
override this.GetLots : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Consumption.Models.ConsumptionLotSummary>
Public Overridable Function GetLots (Optional filter As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(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'. 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

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

Applies to