次の方法で共有


ConsumptionExtensions.GetAggregatedCostAsync メソッド

定義

現在の請求期間別に、管理グループとすべての子管理グループの集計コストを提供します。

  • 要求パス/プロバイダー/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Consumption/aggregatedcost
  • 操作IdAggregatedCost_GetByManagementGroup
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Consumption.Models.ConsumptionAggregatedCostResult>> GetAggregatedCostAsync (this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, string filter = default, System.Threading.CancellationToken cancellationToken = default);
static member GetAggregatedCostAsync : Azure.ResourceManager.ManagementGroups.ManagementGroupResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Consumption.Models.ConsumptionAggregatedCostResult>>
<Extension()>
Public Function GetAggregatedCostAsync (managementGroupResource As ManagementGroupResource, Optional filter As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ConsumptionAggregatedCostResult))

パラメーター

managementGroupResource
ManagementGroupResource

ManagementGroupResourceメソッドが実行されるインスタンス。

filter
String

集計されたコストをプロパティ/usageStart (Utc 時刻)、properties/usageEnd (Utc 時刻) でフィルター処理するために使用できます。 フィルターは、'eq'、'lt'、'gt'、'le'、'ge'、および 'and' をサポートしています。 現在、'ne'、'or'、または 'not' はサポートされていません。 タグ フィルターは、キーと値がコロン (:)で区切られたキー値ペア文字列です。

cancellationToken
CancellationToken

使用する取り消しトークン。

戻り値

適用対象