Share via


MockableConsumptionArmClient.GetConsumptionReservationRecommendationDetails Method

Definition

Details of a reservation recommendation for what-if analysis of reserved instances.

  • Request Path: /{resourceScope}/providers/Microsoft.Consumption/reservationRecommendationDetails
  • Operation Id: ReservationRecommendationDetails_Get
public virtual Azure.Response<Azure.ResourceManager.Consumption.Models.ConsumptionReservationRecommendationDetails> GetConsumptionReservationRecommendationDetails (Azure.Core.ResourceIdentifier scope, Azure.ResourceManager.Consumption.Models.ConsumptionReservationRecommendationScope reservationScope, string region, Azure.ResourceManager.Consumption.Models.ConsumptionReservationRecommendationTerm term, Azure.ResourceManager.Consumption.Models.ConsumptionReservationRecommendationLookBackPeriod lookBackPeriod, string product, System.Threading.CancellationToken cancellationToken = default);
abstract member GetConsumptionReservationRecommendationDetails : Azure.Core.ResourceIdentifier * Azure.ResourceManager.Consumption.Models.ConsumptionReservationRecommendationScope * string * Azure.ResourceManager.Consumption.Models.ConsumptionReservationRecommendationTerm * Azure.ResourceManager.Consumption.Models.ConsumptionReservationRecommendationLookBackPeriod * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Consumption.Models.ConsumptionReservationRecommendationDetails>
override this.GetConsumptionReservationRecommendationDetails : Azure.Core.ResourceIdentifier * Azure.ResourceManager.Consumption.Models.ConsumptionReservationRecommendationScope * string * Azure.ResourceManager.Consumption.Models.ConsumptionReservationRecommendationTerm * Azure.ResourceManager.Consumption.Models.ConsumptionReservationRecommendationLookBackPeriod * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Consumption.Models.ConsumptionReservationRecommendationDetails>
Public Overridable Function GetConsumptionReservationRecommendationDetails (scope As ResourceIdentifier, reservationScope As ConsumptionReservationRecommendationScope, region As String, term As ConsumptionReservationRecommendationTerm, lookBackPeriod As ConsumptionReservationRecommendationLookBackPeriod, product As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of ConsumptionReservationRecommendationDetails)

Parameters

scope
ResourceIdentifier

The scope that the resource will apply against.

reservationScope
ConsumptionReservationRecommendationScope

Scope of the reservation.

region
String

Used to select the region the recommendation should be generated for.

term
ConsumptionReservationRecommendationTerm

Specify length of reservation recommendation term.

lookBackPeriod
ConsumptionReservationRecommendationLookBackPeriod

Filter the time period on which reservation recommendation results are based.

product
String

Filter the products for which reservation recommendation results are generated. Examples: Standard_DS1_v2 (for VM), Premium_SSD_Managed_Disks_P30 (for Managed Disks).

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

scope, region or product is null.

Applies to