ConsumptionExtensions.GetConsumptionReservationRecommendationDetailsAsync Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
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 System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Consumption.Models.ConsumptionReservationRecommendationDetails>> GetConsumptionReservationRecommendationDetailsAsync (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 GetConsumptionReservationRecommendationDetailsAsync : 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 -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Consumption.Models.ConsumptionReservationRecommendationDetails>>
<Extension()>
Public Function GetConsumptionReservationRecommendationDetailsAsync (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 Task(Of Response(Of ConsumptionReservationRecommendationDetails))
Parâmetros
- 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.
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.