Share via


MockableConsumptionManagementGroupResource.GetAggregatedCost Method

Definition

Provides the aggregate cost of a management group and all child management groups by current billing period.

  • Request Path: /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Consumption/aggregatedcost
  • Operation Id: AggregatedCost_GetByManagementGroup
public virtual Azure.Response<Azure.ResourceManager.Consumption.Models.ConsumptionAggregatedCostResult> GetAggregatedCost (string filter = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAggregatedCost : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Consumption.Models.ConsumptionAggregatedCostResult>
override this.GetAggregatedCost : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Consumption.Models.ConsumptionAggregatedCostResult>
Public Overridable Function GetAggregatedCost (Optional filter As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of ConsumptionAggregatedCostResult)

Parameters

filter
String

May be used to filter aggregated cost by properties/usageStart (Utc time), properties/usageEnd (Utc time). 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

Applies to