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

CostManagementExtensions.GetBenefitUtilizationSummariesBySavingsPlanOrderAsync 方法

定义

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

  • Request Path/providers/Microsoft.BillingBenefits/savingsPlanOrders/{savingsPlanOrderId}/providers/Microsoft.CostManagement/benefitUtilizationSummaries
  • 操作IdBenefitUtilizationSummaries_ListBySavingsPlanOrder
public static Azure.AsyncPageable<Azure.ResourceManager.CostManagement.Models.BenefitUtilizationSummary> GetBenefitUtilizationSummariesBySavingsPlanOrderAsync (this Azure.ResourceManager.Resources.TenantResource tenantResource, string savingsPlanOrderId, string filter = default, Azure.ResourceManager.CostManagement.Models.GrainContent? grainParameter = default, System.Threading.CancellationToken cancellationToken = default);
static member GetBenefitUtilizationSummariesBySavingsPlanOrderAsync : Azure.ResourceManager.Resources.TenantResource * string * string * Nullable<Azure.ResourceManager.CostManagement.Models.GrainContent> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.CostManagement.Models.BenefitUtilizationSummary>
<Extension()>
Public Function GetBenefitUtilizationSummariesBySavingsPlanOrderAsync (tenantResource As TenantResource, savingsPlanOrderId 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。

filter
String

支持按 properties/usageDate 进行筛选。

grainParameter
Nullable<GrainContent>

粮食。

cancellationToken
CancellationToken

要使用的取消标记。

返回

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

例外

savingsPlanOrderId 是一个空字符串,预期为非空。

savingsPlanOrderId 为 null。

适用于