Interface ServersClient

All Superinterfaces:
InnerSupportsDelete<Void>, InnerSupportsGet<ServerInner>, InnerSupportsListing<ServerInner>

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

    • checkNameAvailabilityWithResponseAsync

      Mono<com.azure.core.http.rest.Response<CheckNameAvailabilityResponseInner>> checkNameAvailabilityWithResponseAsync(CheckNameAvailabilityRequest parameters)
      Determines whether a resource can be created with the specified name.
      Parameters:
      parameters - The name availability request parameters.
      Returns:
      the result of a name availability check along with Response on successful completion of Mono.
      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.
    • checkNameAvailabilityAsync

      Mono<CheckNameAvailabilityResponseInner> checkNameAvailabilityAsync(CheckNameAvailabilityRequest parameters)
      Determines whether a resource can be created with the specified name.
      Parameters:
      parameters - The name availability request parameters.
      Returns:
      the result of a name availability check on successful completion of Mono.
      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.
    • checkNameAvailabilityWithResponse

      com.azure.core.http.rest.Response<CheckNameAvailabilityResponseInner> checkNameAvailabilityWithResponse(CheckNameAvailabilityRequest parameters, com.azure.core.util.Context context)
      Determines whether a resource can be created with the specified name.
      Parameters:
      parameters - The name availability request parameters.
      context - The context to associate with this operation.
      Returns:
      the result of a name availability check 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.
    • checkNameAvailability

      Determines whether a resource can be created with the specified name.
      Parameters:
      parameters - The name availability request parameters.
      Returns:
      the result of a name availability check.
      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.
    • listAsync

      com.azure.core.http.rest.PagedFlux<ServerInner> listAsync(String expand)
      Gets a list of all servers in the subscription.
      Parameters:
      expand - The child resources to include in the response.
      Returns:
      a list of all servers in the subscription as paginated response with PagedFlux.
      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.
    • listAsync

      com.azure.core.http.rest.PagedFlux<ServerInner> listAsync()
      Gets a list of all servers in the subscription.
      Specified by:
      listAsync in interface InnerSupportsListing<ServerInner>
      Returns:
      a list of all servers in the subscription as paginated response with PagedFlux.
      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<ServerInner> list()
      Gets a list of all servers in the subscription.
      Specified by:
      list in interface InnerSupportsListing<ServerInner>
      Returns:
      a list of all servers in the subscription 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<ServerInner> list(String expand, com.azure.core.util.Context context)
      Gets a list of all servers in the subscription.
      Parameters:
      expand - The child resources to include in the response.
      context - The context to associate with this operation.
      Returns:
      a list of all servers in the subscription 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.
    • listByResourceGroupAsync

      com.azure.core.http.rest.PagedFlux<ServerInner> listByResourceGroupAsync(String resourceGroupName, String expand)
      Gets a list of servers in a resource groups.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      expand - The child resources to include in the response.
      Returns:
      a list of servers in a resource groups as paginated response with PagedFlux.
      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.
    • listByResourceGroupAsync

      com.azure.core.http.rest.PagedFlux<ServerInner> listByResourceGroupAsync(String resourceGroupName)
      Gets a list of servers in a resource groups.
      Specified by:
      listByResourceGroupAsync in interface InnerSupportsListing<ServerInner>
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      Returns:
      a list of servers in a resource groups as paginated response with PagedFlux.
      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<ServerInner> listByResourceGroup(String resourceGroupName)
      Gets a list of servers in a resource groups.
      Specified by:
      listByResourceGroup in interface InnerSupportsListing<ServerInner>
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      Returns:
      a list of servers in a resource groups 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<ServerInner> listByResourceGroup(String resourceGroupName, String expand, com.azure.core.util.Context context)
      Gets a list of servers in a resource groups.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      expand - The child resources to include in the response.
      context - The context to associate with this operation.
      Returns:
      a list of servers in a resource groups 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.
    • getByResourceGroupWithResponseAsync

      Mono<com.azure.core.http.rest.Response<ServerInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String serverName, String expand)
      Gets a server.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      expand - The child resources to include in the response.
      Returns:
      a server along with Response on successful completion of Mono.
      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.
    • getByResourceGroupAsync

      Mono<ServerInner> getByResourceGroupAsync(String resourceGroupName, String serverName)
      Gets a server.
      Specified by:
      getByResourceGroupAsync in interface InnerSupportsGet<ServerInner>
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      Returns:
      a server on successful completion of Mono.
      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<ServerInner> getByResourceGroupWithResponse(String resourceGroupName, String serverName, String expand, com.azure.core.util.Context context)
      Gets a server.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      expand - The child resources to include in the response.
      context - The context to associate with this operation.
      Returns:
      a server 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

      ServerInner getByResourceGroup(String resourceGroupName, String serverName)
      Gets a server.
      Specified by:
      getByResourceGroup in interface InnerSupportsGet<ServerInner>
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      Returns:
      a server.
      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.
    • createOrUpdateWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String serverName, ServerInner parameters)
      Creates or updates a server.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      parameters - The requested server resource state.
      Returns:
      an Azure SQL Database server along with Response on successful completion of Mono.
      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.
    • beginCreateOrUpdateAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<ServerInner>,ServerInner> beginCreateOrUpdateAsync(String resourceGroupName, String serverName, ServerInner parameters)
      Creates or updates a server.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      parameters - The requested server resource state.
      Returns:
      the PollerFlux for polling of an Azure SQL Database server.
      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.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ServerInner>,ServerInner> beginCreateOrUpdate(String resourceGroupName, String serverName, ServerInner parameters)
      Creates or updates a server.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      parameters - The requested server resource state.
      Returns:
      the SyncPoller for polling of an Azure SQL Database server.
      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.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ServerInner>,ServerInner> beginCreateOrUpdate(String resourceGroupName, String serverName, ServerInner parameters, com.azure.core.util.Context context)
      Creates or updates a server.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      parameters - The requested server resource state.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of an Azure SQL Database server.
      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.
    • createOrUpdateAsync

      Mono<ServerInner> createOrUpdateAsync(String resourceGroupName, String serverName, ServerInner parameters)
      Creates or updates a server.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      parameters - The requested server resource state.
      Returns:
      an Azure SQL Database server on successful completion of Mono.
      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.
    • createOrUpdate

      ServerInner createOrUpdate(String resourceGroupName, String serverName, ServerInner parameters)
      Creates or updates a server.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      parameters - The requested server resource state.
      Returns:
      an Azure SQL Database server.
      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.
    • createOrUpdate

      ServerInner createOrUpdate(String resourceGroupName, String serverName, ServerInner parameters, com.azure.core.util.Context context)
      Creates or updates a server.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      parameters - The requested server resource state.
      context - The context to associate with this operation.
      Returns:
      an Azure SQL Database server.
      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.
    • deleteWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String serverName)
      Deletes a server.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      Returns:
      the Response on successful completion of Mono.
      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.
    • beginDeleteAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginDeleteAsync(String resourceGroupName, String serverName)
      Deletes a server.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      Returns:
      the PollerFlux for polling of long-running 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.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String serverName)
      Deletes a server.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      Returns:
      the SyncPoller for polling of long-running 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.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String serverName, com.azure.core.util.Context context)
      Deletes a server.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of long-running 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.
    • deleteAsync

      Mono<Void> deleteAsync(String resourceGroupName, String serverName)
      Deletes a server.
      Specified by:
      deleteAsync in interface InnerSupportsDelete<Void>
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      Returns:
      A Mono that completes when a successful response is received.
      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 serverName)
      Deletes a server.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      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 serverName, com.azure.core.util.Context context)
      Deletes a server.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      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.
    • updateWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> updateWithResponseAsync(String resourceGroupName, String serverName, ServerUpdate parameters)
      Updates a server.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      parameters - The requested server resource state.
      Returns:
      an Azure SQL Database server along with Response on successful completion of Mono.
      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.
    • beginUpdateAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<ServerInner>,ServerInner> beginUpdateAsync(String resourceGroupName, String serverName, ServerUpdate parameters)
      Updates a server.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      parameters - The requested server resource state.
      Returns:
      the PollerFlux for polling of an Azure SQL Database server.
      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.
    • beginUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ServerInner>,ServerInner> beginUpdate(String resourceGroupName, String serverName, ServerUpdate parameters)
      Updates a server.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      parameters - The requested server resource state.
      Returns:
      the SyncPoller for polling of an Azure SQL Database server.
      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.
    • beginUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ServerInner>,ServerInner> beginUpdate(String resourceGroupName, String serverName, ServerUpdate parameters, com.azure.core.util.Context context)
      Updates a server.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      parameters - The requested server resource state.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of an Azure SQL Database server.
      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.
    • updateAsync

      Mono<ServerInner> updateAsync(String resourceGroupName, String serverName, ServerUpdate parameters)
      Updates a server.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      parameters - The requested server resource state.
      Returns:
      an Azure SQL Database server on successful completion of Mono.
      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.
    • update

      ServerInner update(String resourceGroupName, String serverName, ServerUpdate parameters)
      Updates a server.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      parameters - The requested server resource state.
      Returns:
      an Azure SQL Database server.
      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.
    • update

      ServerInner update(String resourceGroupName, String serverName, ServerUpdate parameters, com.azure.core.util.Context context)
      Updates a server.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      parameters - The requested server resource state.
      context - The context to associate with this operation.
      Returns:
      an Azure SQL Database server.
      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.
    • importDatabaseWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> importDatabaseWithResponseAsync(String resourceGroupName, String serverName, ImportNewDatabaseDefinition parameters)
      Imports a bacpac into a new database.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      parameters - The database import request parameters.
      Returns:
      an ImportExport operation result resource along with Response on successful completion of Mono.
      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.
    • beginImportDatabaseAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<ImportExportOperationResultInner>,ImportExportOperationResultInner> beginImportDatabaseAsync(String resourceGroupName, String serverName, ImportNewDatabaseDefinition parameters)
      Imports a bacpac into a new database.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      parameters - The database import request parameters.
      Returns:
      the PollerFlux for polling of an ImportExport operation result resource.
      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.
    • beginImportDatabase

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ImportExportOperationResultInner>,ImportExportOperationResultInner> beginImportDatabase(String resourceGroupName, String serverName, ImportNewDatabaseDefinition parameters)
      Imports a bacpac into a new database.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      parameters - The database import request parameters.
      Returns:
      the SyncPoller for polling of an ImportExport operation result resource.
      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.
    • beginImportDatabase

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ImportExportOperationResultInner>,ImportExportOperationResultInner> beginImportDatabase(String resourceGroupName, String serverName, ImportNewDatabaseDefinition parameters, com.azure.core.util.Context context)
      Imports a bacpac into a new database.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      parameters - The database import request parameters.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of an ImportExport operation result resource.
      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.
    • importDatabaseAsync

      Mono<ImportExportOperationResultInner> importDatabaseAsync(String resourceGroupName, String serverName, ImportNewDatabaseDefinition parameters)
      Imports a bacpac into a new database.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      parameters - The database import request parameters.
      Returns:
      an ImportExport operation result resource on successful completion of Mono.
      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.
    • importDatabase

      ImportExportOperationResultInner importDatabase(String resourceGroupName, String serverName, ImportNewDatabaseDefinition parameters)
      Imports a bacpac into a new database.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      parameters - The database import request parameters.
      Returns:
      an ImportExport operation result resource.
      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.
    • importDatabase

      ImportExportOperationResultInner importDatabase(String resourceGroupName, String serverName, ImportNewDatabaseDefinition parameters, com.azure.core.util.Context context)
      Imports a bacpac into a new database.
      Parameters:
      resourceGroupName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      serverName - The name of the server.
      parameters - The database import request parameters.
      context - The context to associate with this operation.
      Returns:
      an ImportExport operation result resource.
      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.