你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

CostManagementExtensions.GetBenefitUtilizationSummariesBySavingsPlanIdAsync 方法

定义

列出每日或每月粒度的节省计划利用率摘要。

  • Request Path/providers/Microsoft.BillingBenefits/savingsPlanOrders/{savingsPlanOrderId}/savingsPlans/{savingsPlanId}/providers/Microsoft.CostManagement/benefitUtilizationSummaries
  • 操作IdBenefitUtilizationSummaries_ListBySavingsPlanId
public static Azure.AsyncPageable<Azure.ResourceManager.CostManagement.Models.BenefitUtilizationSummary> GetBenefitUtilizationSummariesBySavingsPlanIdAsync (this Azure.ResourceManager.Resources.TenantResource tenantResource, string savingsPlanOrderId, string savingsPlanId, string filter = default, Azure.ResourceManager.CostManagement.Models.GrainContent? grainParameter = default, System.Threading.CancellationToken cancellationToken = default);
static member GetBenefitUtilizationSummariesBySavingsPlanIdAsync : Azure.ResourceManager.Resources.TenantResource * string * string * string * Nullable<Azure.ResourceManager.CostManagement.Models.GrainContent> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.CostManagement.Models.BenefitUtilizationSummary>
<Extension()>
Public Function GetBenefitUtilizationSummariesBySavingsPlanIdAsync (tenantResource As TenantResource, savingsPlanOrderId As String, savingsPlanId As String, Optional filter As String = Nothing, Optional grainParameter As Nullable(Of GrainContent) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of BenefitUtilizationSummary)

参数

tenantResource
TenantResource

方法 TenantResource 将对其执行的实例。

savingsPlanOrderId
String

节省计划订单 ID。

savingsPlanId
String

节省计划 ID。

filter
String

支持按 properties/usageDate 进行筛选。

grainParameter
Nullable<GrainContent>

粮食。

cancellationToken
CancellationToken

要使用的取消标记。

返回

的异步集合 BenefitUtilizationSummary ,可能需要多个服务请求进行迭代。

例外

savingsPlanOrderIdsavingsPlanId 是空字符串,预期为非空。

savingsPlanOrderIdsavingsPlanId 为 null。

适用于