ReservationRecommendations Interface

public interface ReservationRecommendations

Resource collection API of ReservationRecommendations.

Method Summary

Modifier and Type Method and Description
abstract PagedIterable<ReservationRecommendation> list(String scope)

List of recommendations for purchasing reserved instances.

abstract PagedIterable<ReservationRecommendation> list(String scope, String filter, Context context)

List of recommendations for purchasing reserved instances.

Method Details

list

public abstract PagedIterable list(String scope)

List of recommendations for purchasing reserved instances.

Parameters:

scope - The scope associated with reservation recommendations operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resource group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for BillingAccount scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope.

Returns:

result of listing reservation recommendations.

list

public abstract PagedIterable list(String scope, String filter, Context context)

List of recommendations for purchasing reserved instances.

Parameters:

scope - The scope associated with reservation recommendations operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resource group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for BillingAccount scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope.
filter - 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'.
context - The context to associate with this operation.

Returns:

result of listing reservation recommendations.

Applies to