MockableConsumptionArmClient.GetConsumptionReservationRecommendationDetails Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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
Azure SDK for .NET