次の方法で共有


ConsumptionExtensions.GetConsumptionChargesAsync メソッド

定義

定義されたスコープに基づく料金を一覧表示します。

  • 要求パス/{scope}/providers/Microsoft.Consumption/charges
  • 操作IdCharges_List
public static Azure.AsyncPageable<Azure.ResourceManager.Consumption.Models.ConsumptionChargeSummary> GetConsumptionChargesAsync (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string startDate = default, string endDate = default, string filter = default, string apply = default, System.Threading.CancellationToken cancellationToken = default);
static member GetConsumptionChargesAsync : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * string * string * string * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Consumption.Models.ConsumptionChargeSummary>
<Extension()>
Public Function GetConsumptionChargesAsync (client As ArmClient, scope As ResourceIdentifier, Optional startDate As String = Nothing, Optional endDate As String = Nothing, Optional filter As String = Nothing, Optional apply As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ConsumptionChargeSummary)

パラメーター

client
ArmClient

ArmClientメソッドが実行するインスタンス。

scope
ResourceIdentifier

リソースが適用するスコープ。

startDate
String

開始日。

endDate
String

終了日。

filter
String

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

apply
String

billingAccount スコープの料金を、プロパティ/billingProfileId、properties/invoiceSectionId、properties/customerId (パートナー Led に固有)、またはプロパティ/invoiceSectionId 別の billingProfile スコープでグループ化するために使用できます。

cancellationToken
CancellationToken

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

戻り値

適用対象