Interface SqlServerInstances


public interface SqlServerInstances
Resource collection API of SqlServerInstances.
  • Method Details

    • list

      com.azure.core.http.rest.PagedIterable<SqlServerInstance> list()
      List sqlServerInstance resources in the subscription.
      Returns:
      a list of SqlServerInstance 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<SqlServerInstance> list(com.azure.core.util.Context context)
      List sqlServerInstance resources in the subscription.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      a list of SqlServerInstance 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<SqlServerInstance> listByResourceGroup(String resourceGroupName)
      List sqlServerInstance resources in the resource group

      Gets all sqlServerInstances in a resource group.

      Parameters:
      resourceGroupName - The name of the Azure resource group.
      Returns:
      all sqlServerInstances in a resource group 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<SqlServerInstance> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
      List sqlServerInstance resources in the resource group

      Gets all sqlServerInstances in a resource group.

      Parameters:
      resourceGroupName - The name of the Azure resource group.
      context - The context to associate with this operation.
      Returns:
      all sqlServerInstances in a resource group 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.
    • getByResourceGroupWithResponse

      com.azure.core.http.rest.Response<SqlServerInstance> getByResourceGroupWithResponse(String resourceGroupName, String sqlServerInstanceName, com.azure.core.util.Context context)
      Retrieves a SQL Server Instance resource.
      Parameters:
      resourceGroupName - The name of the Azure resource group.
      sqlServerInstanceName - Name of SQL Server Instance.
      context - The context to associate with this operation.
      Returns:
      a SqlServerInstance 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.
    • getByResourceGroup

      SqlServerInstance getByResourceGroup(String resourceGroupName, String sqlServerInstanceName)
      Retrieves a SQL Server Instance resource.
      Parameters:
      resourceGroupName - The name of the Azure resource group.
      sqlServerInstanceName - Name of SQL Server Instance.
      Returns:
      a SqlServerInstance.
      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.
    • deleteByResourceGroup

      void deleteByResourceGroup(String resourceGroupName, String sqlServerInstanceName)
      Deletes a SQL Server Instance resource.
      Parameters:
      resourceGroupName - The name of the Azure resource group.
      sqlServerInstanceName - The name of SQL Server Instance.
      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.
    • delete

      void delete(String resourceGroupName, String sqlServerInstanceName, com.azure.core.util.Context context)
      Deletes a SQL Server Instance resource.
      Parameters:
      resourceGroupName - The name of the Azure resource group.
      sqlServerInstanceName - The name of SQL Server Instance.
      context - The context to associate with this operation.
      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.
    • getById

      Retrieves a SQL Server Instance resource.
      Parameters:
      id - the resource ID.
      Returns:
      a SqlServerInstance 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.
    • getByIdWithResponse

      com.azure.core.http.rest.Response<SqlServerInstance> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Retrieves a SQL Server Instance resource.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      a SqlServerInstance 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.
    • deleteById

      void deleteById(String id)
      Deletes a SQL Server Instance resource.
      Parameters:
      id - the resource ID.
      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.
    • deleteByIdWithResponse

      void deleteByIdWithResponse(String id, com.azure.core.util.Context context)
      Deletes a SQL Server Instance resource.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      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.
    • define

      Begins definition for a new SqlServerInstance resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new SqlServerInstance definition.