ReservationRecommendations Interface
public interface ReservationRecommendations
Resource collection API of ReservationRecommendations.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract
Paged |
list(String scope)
List of recommendations for purchasing reserved instances. |
abstract
Paged |
list(String scope, String filter, Context context)
List of recommendations for purchasing reserved instances. |
Method Details
list
public abstract PagedIterable
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 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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for