Partilhar via


ConsumptionExtensions.GetConsumptionReservationRecommendationsAsync Método

Definição

Lista de recomendações para comprar instâncias reservadas.

  • Caminho da Solicitação/{resourceScope}/providers/Microsoft.Consumption/reservationRecommendations
  • Operação IdReservationRecommendations_List
public static Azure.AsyncPageable<Azure.ResourceManager.Consumption.Models.ConsumptionReservationRecommendation> GetConsumptionReservationRecommendationsAsync (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string filter = default, System.Threading.CancellationToken cancellationToken = default);
static member GetConsumptionReservationRecommendationsAsync : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Consumption.Models.ConsumptionReservationRecommendation>
<Extension()>
Public Function GetConsumptionReservationRecommendationsAsync (client As ArmClient, scope As ResourceIdentifier, Optional filter As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ConsumptionReservationRecommendation)

Parâmetros

client
ArmClient

A ArmClient instância em que o método será executado.

scope
ResourceIdentifier

O escopo no qual o recurso será aplicado.

filter
String

Pode ser usado para filtrar reservationRecommendations por: propriedades/escopo com valores permitidos ['Single', 'Shared'] e valor padrão 'Single'; properties/resourceType com valores permitidos ['VirtualMachines', 'SQLDatabases', 'PostgreSQL', 'ManagedDisk', 'MySQL', 'RedHat', 'MariaDB', 'RedisCache', 'CosmosDB', 'SqlDataWarehouse', 'SUSELinux', 'AppService', 'BlockBlob', 'AzureDataExplorer', 'VMwareCloudSimple'] e o valor padrão 'VirtualMachines'; e properties/lookBackPeriod com valores permitidos ['Last7Days', 'Last30Days', 'Last60Days'] e o valor padrão 'Last7Days'.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Aplica-se a