Compartir a través de


ConsumptionExtensions.GetConsumptionReservationRecommendationsAsync Método

Definición

Lista de recomendaciones para comprar instancias reservadas.

  • Ruta de acceso de solicitud/{resourceScope}/providers/Microsoft.Consumption/reservationRecommendations
  • IdReservationRecommendations_List de operación
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

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

scope
ResourceIdentifier

Ámbito en el que se aplicará el recurso.

filter
String

Se puede usar para filtrar reservationRecommendations por: properties/scope with allowed values ['Single', 'Shared'] and default value 'Single'; properties/resourceType con valores permitidos ['VirtualMachines', 'SQLDatabases', 'PostgreSQL', 'ManagedDisk', 'MySQL', 'RedHat', 'MariaDB', 'RedisCache', 'CosmosDB', 'SqlDataWarehouse', 'SUSELinux', 'AppService', 'BlockBlob', 'AzureDataExplorer', 'VMwareCloudSimple'] y el valor predeterminado 'VirtualMachines'; y properties/lookBackPeriod con valores permitidos ['Last7Days', 'Last30Days', 'Last60Days'] y el valor predeterminado 'Last7Days'.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Se aplica a