MockableConsumptionManagementGroupResource.GetAggregatedCost Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Azure SDK for .NET
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for