Partilhar via


ConsumptionExtensions.GetConsumptionReservationRecommendationDetails Método

Definição

Detalhes de uma recomendação de reserva para análise de teste de hipóteses de instâncias reservadas.

  • Caminho da Solicitação/{resourceScope}/providers/Microsoft.Consumption/reservationRecommendationDetails
  • IdReservationRecommendationDetails_Get de operação
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

A ArmClient instância na qual o método será executado.

scope
ResourceIdentifier

O escopo ao qual o recurso será aplicado.

reservationScope
ConsumptionReservationRecommendationScope

Escopo da reserva.

region
String

Usado para selecionar a região para a qual a recomendação deve ser gerada.

term
ConsumptionReservationRecommendationTerm

Especifique o comprimento do termo de recomendação de reserva.

lookBackPeriod
ConsumptionReservationRecommendationLookBackPeriod

Filtre o período de tempo no qual os resultados da recomendação de reserva se baseiam.

product
String

Filtre os produtos para os quais os resultados da recomendação de reserva são gerados. Exemplos: Standard_DS1_v2 (para VM), Premium_SSD_Managed_Disks_P30 (para Managed Disks).

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

region ou product é nulo.

Aplica-se a