Interface ReservationRecommendationDetailsClient


  • public interface ReservationRecommendationDetailsClient
    An instance of this class provides access to all the operations defined in ReservationRecommendationDetailsClient.
    • Method Detail

      • get

        ReservationRecommendationDetailsModelInner get​(String scope,
                                                       String region,
                                                       Term term,
                                                       LookBackPeriod lookBackPeriod,
                                                       String product)
        Details of a reservation recommendation for what-if analysis of reserved instances.
        Parameters:
        scope - The scope associated with reservation recommendation details 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.
        region - Used to select the region the recommendation should be generated for.
        term - Specify length of reservation recommendation term.
        lookBackPeriod - Filter the time period on which reservation recommendation results are based.
        product - Filter the products for which reservation recommendation results are generated. Examples: Standard_DS1_v2 (for VM), Premium_SSD_Managed_Disks_P30 (for Managed Disks).
        Returns:
        reservation recommendation details.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getWithResponse

        com.azure.core.http.rest.Response<ReservationRecommendationDetailsModelInner> getWithResponse​(String scope,
                                                                                                      String region,
                                                                                                      Term term,
                                                                                                      LookBackPeriod lookBackPeriod,
                                                                                                      String product,
                                                                                                      com.azure.core.util.Context context)
        Details of a reservation recommendation for what-if analysis of reserved instances.
        Parameters:
        scope - The scope associated with reservation recommendation details 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.
        region - Used to select the region the recommendation should be generated for.
        term - Specify length of reservation recommendation term.
        lookBackPeriod - Filter the time period on which reservation recommendation results are based.
        product - Filter the products for which reservation recommendation results are generated. Examples: Standard_DS1_v2 (for VM), Premium_SSD_Managed_Disks_P30 (for Managed Disks).
        context - The context to associate with this operation.
        Returns:
        reservation recommendation details.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.