MockableConsumptionArmClient.GetConsumptionReservationRecommendations Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
List of recommendations for purchasing reserved instances.
- Request Path: /{resourceScope}/providers/Microsoft.Consumption/reservationRecommendations
- Operation Id: ReservationRecommendations_List
public virtual Azure.Pageable<Azure.ResourceManager.Consumption.Models.ConsumptionReservationRecommendation> GetConsumptionReservationRecommendations (Azure.Core.ResourceIdentifier scope, string filter = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetConsumptionReservationRecommendations : Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Consumption.Models.ConsumptionReservationRecommendation>
override this.GetConsumptionReservationRecommendations : Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Consumption.Models.ConsumptionReservationRecommendation>
Public Overridable Function GetConsumptionReservationRecommendations (scope As ResourceIdentifier, Optional filter As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ConsumptionReservationRecommendation)
Parameters
- scope
- ResourceIdentifier
The scope that the resource will apply against.
- filter
- String
May be used to filter reservationRecommendations by: properties/scope with allowed values ['Single', 'Shared'] and default value 'Single'; properties/resourceType with allowed values ['VirtualMachines', 'SQLDatabases', 'PostgreSQL', 'ManagedDisk', 'MySQL', 'RedHat', 'MariaDB', 'RedisCache', 'CosmosDB', 'SqlDataWarehouse', 'SUSELinux', 'AppService', 'BlockBlob', 'AzureDataExplorer', 'VMwareCloudSimple'] and default value 'VirtualMachines'; and properties/lookBackPeriod with allowed values ['Last7Days', 'Last30Days', 'Last60Days'] and default value 'Last7Days'.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of ConsumptionReservationRecommendation that may take multiple service requests to iterate over.
Exceptions
scope
is null.
Applies to
Azure SDK for .NET