Interface ServersClient
- All Superinterfaces:
InnerSupportsDelete<Void>,InnerSupportsGet<ServerInner>,InnerSupportsListing<ServerInner>
public interface ServersClient
extends InnerSupportsGet<ServerInner>, InnerSupportsListing<ServerInner>, InnerSupportsDelete<Void>
An instance of this class provides access to all the operations defined in ServersClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.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.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.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.beginDelete(String resourceGroupName, String serverName) Deletes a server.beginDelete(String resourceGroupName, String serverName, com.azure.core.util.Context context) Deletes a server.beginDeleteAsync(String resourceGroupName, String serverName) Deletes a server.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.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.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.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ServerInner>, ServerInner> beginUpdate(String resourceGroupName, String serverName, ServerUpdate parameters) Updates a server.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.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<ServerInner>, ServerInner> beginUpdateAsync(String resourceGroupName, String serverName, ServerUpdate parameters) Updates a server.checkNameAvailability(CheckNameAvailabilityRequest parameters) Determines whether a resource can be created with the specified name.Determines whether a resource can be created with the specified name.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.Mono<com.azure.core.http.rest.Response<CheckNameAvailabilityResponseInner>> Determines whether a resource can be created with the specified name.createOrUpdate(String resourceGroupName, String serverName, ServerInner parameters) Creates or updates a server.createOrUpdate(String resourceGroupName, String serverName, ServerInner parameters, com.azure.core.util.Context context) Creates or updates a server.createOrUpdateAsync(String resourceGroupName, String serverName, ServerInner parameters) Creates or updates a server.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String serverName, ServerInner parameters) Creates or updates a server.voidDeletes a server.voidDeletes a server.deleteAsync(String resourceGroupName, String serverName) Deletes a server.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String serverName) Deletes a server.getByResourceGroup(String resourceGroupName, String serverName) Gets a server.getByResourceGroupAsync(String resourceGroupName, String serverName) Gets a server.com.azure.core.http.rest.Response<ServerInner> getByResourceGroupWithResponse(String resourceGroupName, String serverName, String expand, com.azure.core.util.Context context) Gets a server.Mono<com.azure.core.http.rest.Response<ServerInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String serverName, String expand) Gets a server.importDatabase(String resourceGroupName, String serverName, ImportNewDatabaseDefinition parameters) Imports a bacpac into a new database.importDatabase(String resourceGroupName, String serverName, ImportNewDatabaseDefinition parameters, com.azure.core.util.Context context) Imports a bacpac into a new database.importDatabaseAsync(String resourceGroupName, String serverName, ImportNewDatabaseDefinition parameters) Imports a bacpac into a new database.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> importDatabaseWithResponseAsync(String resourceGroupName, String serverName, ImportNewDatabaseDefinition parameters) Imports a bacpac into a new database.com.azure.core.http.rest.PagedIterable<ServerInner> list()Gets a list of all servers in the subscription.com.azure.core.http.rest.PagedIterable<ServerInner> Gets a list of all servers in the subscription.com.azure.core.http.rest.PagedFlux<ServerInner> Gets a list of all servers in the subscription.com.azure.core.http.rest.PagedFlux<ServerInner> Gets a list of all servers in the subscription.com.azure.core.http.rest.PagedIterable<ServerInner> listByResourceGroup(String resourceGroupName) Gets a list of servers in a resource groups.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.com.azure.core.http.rest.PagedFlux<ServerInner> listByResourceGroupAsync(String resourceGroupName) Gets a list of servers in a resource groups.com.azure.core.http.rest.PagedFlux<ServerInner> listByResourceGroupAsync(String resourceGroupName, String expand) Gets a list of servers in a resource groups.update(String resourceGroupName, String serverName, ServerUpdate parameters) Updates a server.update(String resourceGroupName, String serverName, ServerUpdate parameters, com.azure.core.util.Context context) Updates a server.updateAsync(String resourceGroupName, String serverName, ServerUpdate parameters) Updates a server.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> updateWithResponseAsync(String resourceGroupName, String serverName, ServerUpdate parameters) Updates a server.
-
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
Responseon successful completion ofMono. - 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
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:
listAsyncin interfaceInnerSupportsListing<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:
listin interfaceInnerSupportsListing<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
Gets a list of servers in a resource groups.- Specified by:
listByResourceGroupAsyncin interfaceInnerSupportsListing<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
Gets a list of servers in a resource groups.- Specified by:
listByResourceGroupin interfaceInnerSupportsListing<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
Responseon successful completion ofMono. - 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
Gets a server.- Specified by:
getByResourceGroupAsyncin interfaceInnerSupportsGet<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
Gets a server.- Specified by:
getByResourceGroupin interfaceInnerSupportsGet<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
Responseon successful completion ofMono. - 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
PollerFluxfor 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
SyncPollerfor 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
SyncPollerfor 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
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
Responseon successful completion ofMono. - 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
PollerFluxfor 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
SyncPollerfor 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
SyncPollerfor 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
Deletes a server.- Specified by:
deleteAsyncin interfaceInnerSupportsDelete<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
Monothat 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
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
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
Responseon successful completion ofMono. - 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
PollerFluxfor 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
SyncPollerfor 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
SyncPollerfor 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
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
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
Responseon successful completion ofMono. - 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
PollerFluxfor 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
SyncPollerfor 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
SyncPollerfor 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.
-