Compartilhar via


ConsumptionExtensions.GetConsumptionReservationRecommendations Método

Definição

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

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

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.

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