Compartir a través de


ConsumptionExtensions.GetConsumptionReservationRecommendationDetails Método

Definición

Detalles de una recomendación de reserva para el análisis de hipótesis de las instancias reservadas.

  • Ruta de acceso de solicitud/{resourceScope}/providers/Microsoft.Consumption/reservationRecommendationDetails
  • IdReservationRecommendationDetails_Get de operaciones
public static Azure.Response<Azure.ResourceManager.Consumption.Models.ConsumptionReservationRecommendationDetails> GetConsumptionReservationRecommendationDetails (this Azure.ResourceManager.ArmClient client, 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);
static member GetConsumptionReservationRecommendationDetails : Azure.ResourceManager.ArmClient * 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>
<Extension()>
Public Function GetConsumptionReservationRecommendationDetails (client As ArmClient, 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)

Parámetros

client
ArmClient

Instancia ArmClient en la que se ejecutará el método.

scope
ResourceIdentifier

Ámbito en el que se aplicará el recurso.

reservationScope
ConsumptionReservationRecommendationScope

Ámbito de la reserva.

region
String

Se usa para seleccionar la región para la que se debe generar la recomendación.

term
ConsumptionReservationRecommendationTerm

Especifique la longitud del período de recomendación de reserva.

lookBackPeriod
ConsumptionReservationRecommendationLookBackPeriod

Filtre el período de tiempo en el que se basan los resultados de la recomendación de reserva.

product
String

Filtre los productos para los que se generan los resultados de la recomendación de reserva. Ejemplos: Standard_DS1_v2 (para máquina virtual), Premium_SSD_Managed_Disks_P30 (para Managed Disks).

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

region o product es null.

Se aplica a