Interface ConfigurationsClient


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

    • list

      com.azure.core.http.rest.PagedIterable<ConfigDataInner> list()
      Retrieve Azure Advisor configurations.

      Retrieve Azure Advisor configurations and also retrieve configurations of contained resource groups.

      Returns:
      the list of Advisor configurations as paginated response with PagedIterable.
      Throws:
      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.
    • list

      com.azure.core.http.rest.PagedIterable<ConfigDataInner> list(com.azure.core.util.Context context)
      Retrieve Azure Advisor configurations.

      Retrieve Azure Advisor configurations and also retrieve configurations of contained resource groups.

      Parameters:
      context - The context to associate with this operation.
      Returns:
      the list of Advisor configurations as paginated response with PagedIterable.
      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.
    • createInSubscriptionWithResponse

      com.azure.core.http.rest.Response<ConfigDataInner> createInSubscriptionWithResponse(ConfigurationName configurationName, ConfigDataInner configContract, com.azure.core.util.Context context)
      Create/Overwrite Azure Advisor configuration.

      Create/Overwrite Azure Advisor configuration and also delete all configurations of contained resource groups.

      Parameters:
      configurationName - Advisor configuration name. Value must be 'default'.
      configContract - The Azure Advisor configuration data structure.
      context - The context to associate with this operation.
      Returns:
      the Advisor configuration data structure along with Response.
      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.
    • createInSubscription

      ConfigDataInner createInSubscription(ConfigurationName configurationName, ConfigDataInner configContract)
      Create/Overwrite Azure Advisor configuration.

      Create/Overwrite Azure Advisor configuration and also delete all configurations of contained resource groups.

      Parameters:
      configurationName - Advisor configuration name. Value must be 'default'.
      configContract - The Azure Advisor configuration data structure.
      Returns:
      the Advisor configuration data structure.
      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.
    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<ConfigDataInner> listByResourceGroup(String resourceGroup)
      Retrieve Azure Advisor configurations.
      Parameters:
      resourceGroup - The name of the Azure resource group.
      Returns:
      the list of Advisor configurations as paginated response with PagedIterable.
      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.
    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<ConfigDataInner> listByResourceGroup(String resourceGroup, com.azure.core.util.Context context)
      Retrieve Azure Advisor configurations.
      Parameters:
      resourceGroup - The name of the Azure resource group.
      context - The context to associate with this operation.
      Returns:
      the list of Advisor configurations as paginated response with PagedIterable.
      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.
    • createInResourceGroupWithResponse

      com.azure.core.http.rest.Response<ConfigDataInner> createInResourceGroupWithResponse(ConfigurationName configurationName, String resourceGroup, ConfigDataInner configContract, com.azure.core.util.Context context)
      Create/Overwrite Azure Advisor configuration.
      Parameters:
      configurationName - Advisor configuration name. Value must be 'default'.
      resourceGroup - The name of the Azure resource group.
      configContract - The Azure Advisor configuration data structure.
      context - The context to associate with this operation.
      Returns:
      the Advisor configuration data structure along with Response.
      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.
    • createInResourceGroup

      ConfigDataInner createInResourceGroup(ConfigurationName configurationName, String resourceGroup, ConfigDataInner configContract)
      Create/Overwrite Azure Advisor configuration.
      Parameters:
      configurationName - Advisor configuration name. Value must be 'default'.
      resourceGroup - The name of the Azure resource group.
      configContract - The Azure Advisor configuration data structure.
      Returns:
      the Advisor configuration data structure.
      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.