MockableCostManagementTenantResource.GetBenefitUtilizationSummariesBySavingsPlanIdAsync Method

Definition

Lists the savings plan utilization summaries for daily or monthly grain.

  • Request Path: /providers/Microsoft.BillingBenefits/savingsPlanOrders/{savingsPlanOrderId}/savingsPlans/{savingsPlanId}/providers/Microsoft.CostManagement/benefitUtilizationSummaries
  • Operation Id: BenefitUtilizationSummaries_ListBySavingsPlanId
public virtual Azure.AsyncPageable<Azure.ResourceManager.CostManagement.Models.BenefitUtilizationSummary> GetBenefitUtilizationSummariesBySavingsPlanIdAsync (string savingsPlanOrderId, string savingsPlanId, string filter = default, Azure.ResourceManager.CostManagement.Models.GrainContent? grainParameter = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetBenefitUtilizationSummariesBySavingsPlanIdAsync : string * string * string * Nullable<Azure.ResourceManager.CostManagement.Models.GrainContent> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.CostManagement.Models.BenefitUtilizationSummary>
override this.GetBenefitUtilizationSummariesBySavingsPlanIdAsync : string * string * string * Nullable<Azure.ResourceManager.CostManagement.Models.GrainContent> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.CostManagement.Models.BenefitUtilizationSummary>
Public Overridable Function GetBenefitUtilizationSummariesBySavingsPlanIdAsync (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)

Parameters

savingsPlanOrderId
String

Savings plan order ID.

savingsPlanId
String

Savings plan ID.

filter
String

Supports filtering by properties/usageDate.

grainParameter
Nullable<GrainContent>

Grain.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of BenefitUtilizationSummary that may take multiple service requests to iterate over.

Exceptions

savingsPlanOrderId or savingsPlanId is an empty string, and was expected to be non-empty.

savingsPlanOrderId or savingsPlanId is null.

Applies to