共用方式為


BillingAccountConsumptionResource.GetLots(String, CancellationToken) 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.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'. 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

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

Applies to