Interface SqlManagedInstances


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

    • list

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

      Gets all sqlManagedInstances in a resource group.

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

      Gets all sqlManagedInstances in a resource group.

      Parameters:
      resourceGroupName - The name of the Azure resource group.
      context - The context to associate with this operation.
      Returns:
      all sqlManagedInstances 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<SqlManagedInstance> getByResourceGroupWithResponse(String resourceGroupName, String sqlManagedInstanceName, com.azure.core.util.Context context)
      Retrieves a SQL Managed Instance resource.
      Parameters:
      resourceGroupName - The name of the Azure resource group.
      sqlManagedInstanceName - Name of SQL Managed Instance.
      context - The context to associate with this operation.
      Returns:
      a SqlManagedInstance 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

      SqlManagedInstance getByResourceGroup(String resourceGroupName, String sqlManagedInstanceName)
      Retrieves a SQL Managed Instance resource.
      Parameters:
      resourceGroupName - The name of the Azure resource group.
      sqlManagedInstanceName - Name of SQL Managed Instance.
      Returns:
      a SqlManagedInstance.
      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 sqlManagedInstanceName)
      Deletes a SQL Managed Instance resource.
      Parameters:
      resourceGroupName - The name of the Azure resource group.
      sqlManagedInstanceName - The name of Sql Managed Instances.
      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 sqlManagedInstanceName, com.azure.core.util.Context context)
      Deletes a SQL Managed Instance resource.
      Parameters:
      resourceGroupName - The name of the Azure resource group.
      sqlManagedInstanceName - The name of Sql Managed Instances.
      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 Managed Instance resource.
      Parameters:
      id - the resource ID.
      Returns:
      a SqlManagedInstance 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<SqlManagedInstance> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Retrieves a SQL Managed Instance resource.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      a SqlManagedInstance 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 Managed 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 Managed 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 SqlManagedInstance resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new SqlManagedInstance definition.