ServersClient Interface

Implements

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 Type Method and Description
abstract SyncPoller<PollResult<ServerInner>,ServerInner> beginCreateOrUpdate(String resourceGroupName, String serverName, ServerInner parameters)

Creates or updates a server.

abstract SyncPoller<PollResult<ServerInner>,ServerInner> beginCreateOrUpdate(String resourceGroupName, String serverName, ServerInner parameters, Context context)

Creates or updates a server.

abstract PollerFlux<PollResult<ServerInner>,ServerInner> beginCreateOrUpdateAsync(String resourceGroupName, String serverName, ServerInner parameters)

Creates or updates a server.

abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String serverName)

Deletes a server.

abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String serverName, Context context)

Deletes a server.

abstract PollerFlux<PollResult<Void>,Void> beginDeleteAsync(String resourceGroupName, String serverName)

Deletes a server.

abstract SyncPoller<PollResult<ImportExportOperationResultInner>,ImportExportOperationResultInner> beginImportDatabase(String resourceGroupName, String serverName, ImportNewDatabaseDefinition parameters)

Imports a bacpac into a new database.

abstract SyncPoller<PollResult<ImportExportOperationResultInner>,ImportExportOperationResultInner> beginImportDatabase(String resourceGroupName, String serverName, ImportNewDatabaseDefinition parameters, Context context)

Imports a bacpac into a new database.

abstract PollerFlux<PollResult<ImportExportOperationResultInner>,ImportExportOperationResultInner> beginImportDatabaseAsync(String resourceGroupName, String serverName, ImportNewDatabaseDefinition parameters)

Imports a bacpac into a new database.

abstract SyncPoller<PollResult<ServerInner>,ServerInner> beginUpdate(String resourceGroupName, String serverName, ServerUpdate parameters)

Updates a server.

abstract SyncPoller<PollResult<ServerInner>,ServerInner> beginUpdate(String resourceGroupName, String serverName, ServerUpdate parameters, Context context)

Updates a server.

abstract PollerFlux<PollResult<ServerInner>,ServerInner> beginUpdateAsync(String resourceGroupName, String serverName, ServerUpdate parameters)

Updates a server.

abstract CheckNameAvailabilityResponseInner checkNameAvailability(CheckNameAvailabilityRequest parameters)

Determines whether a resource can be created with the specified name.

abstract Mono<CheckNameAvailabilityResponseInner> checkNameAvailabilityAsync(CheckNameAvailabilityRequest parameters)

Determines whether a resource can be created with the specified name.

abstract Response<CheckNameAvailabilityResponseInner> checkNameAvailabilityWithResponse(CheckNameAvailabilityRequest parameters, Context context)

Determines whether a resource can be created with the specified name.

abstract Mono<Response<CheckNameAvailabilityResponseInner>> checkNameAvailabilityWithResponseAsync(CheckNameAvailabilityRequest parameters)

Determines whether a resource can be created with the specified name.

abstract ServerInner createOrUpdate(String resourceGroupName, String serverName, ServerInner parameters)

Creates or updates a server.

abstract ServerInner createOrUpdate(String resourceGroupName, String serverName, ServerInner parameters, Context context)

Creates or updates a server.

abstract Mono<ServerInner> createOrUpdateAsync(String resourceGroupName, String serverName, ServerInner parameters)

Creates or updates a server.

abstract Mono<Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String serverName, ServerInner parameters)

Creates or updates a server.

abstract void delete(String resourceGroupName, String serverName)

Deletes a server.

abstract void delete(String resourceGroupName, String serverName, Context context)

Deletes a server.

abstract Mono<Void> deleteAsync(String resourceGroupName, String serverName)

Deletes a server.

abstract Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String serverName)

Deletes a server.

abstract ServerInner getByResourceGroup(String resourceGroupName, String serverName)

Gets a server.

abstract Mono<ServerInner> getByResourceGroupAsync(String resourceGroupName, String serverName)

Gets a server.

abstract Response<ServerInner> getByResourceGroupWithResponse(String resourceGroupName, String serverName, String expand, Context context)

Gets a server.

abstract Mono<Response<ServerInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String serverName, String expand)

Gets a server.

abstract ImportExportOperationResultInner importDatabase(String resourceGroupName, String serverName, ImportNewDatabaseDefinition parameters)

Imports a bacpac into a new database.

abstract ImportExportOperationResultInner importDatabase(String resourceGroupName, String serverName, ImportNewDatabaseDefinition parameters, Context context)

Imports a bacpac into a new database.

abstract Mono<ImportExportOperationResultInner> importDatabaseAsync(String resourceGroupName, String serverName, ImportNewDatabaseDefinition parameters)

Imports a bacpac into a new database.

abstract Mono<Response<Flux<ByteBuffer>>> importDatabaseWithResponseAsync(String resourceGroupName, String serverName, ImportNewDatabaseDefinition parameters)

Imports a bacpac into a new database.

abstract PagedIterable<ServerInner> list()

Gets a list of all servers in the subscription.

abstract PagedIterable<ServerInner> list(String expand, Context context)

Gets a list of all servers in the subscription.

abstract PagedFlux<ServerInner> listAsync()

Gets a list of all servers in the subscription.

abstract PagedFlux<ServerInner> listAsync(String expand)

Gets a list of all servers in the subscription.

abstract PagedIterable<ServerInner> listByResourceGroup(String resourceGroupName)

Gets a list of servers in a resource groups.

abstract PagedIterable<ServerInner> listByResourceGroup(String resourceGroupName, String expand, Context context)

Gets a list of servers in a resource groups.

abstract PagedFlux<ServerInner> listByResourceGroupAsync(String resourceGroupName)

Gets a list of servers in a resource groups.

abstract PagedFlux<ServerInner> listByResourceGroupAsync(String resourceGroupName, String expand)

Gets a list of servers in a resource groups.

abstract ServerInner update(String resourceGroupName, String serverName, ServerUpdate parameters)

Updates a server.

abstract ServerInner update(String resourceGroupName, String serverName, ServerUpdate parameters, Context context)

Updates a server.

abstract Mono<ServerInner> updateAsync(String resourceGroupName, String serverName, ServerUpdate parameters)

Updates a server.

abstract Mono<Response<Flux<ByteBuffer>>> updateWithResponseAsync(String resourceGroupName, String serverName, ServerUpdate parameters)

Updates a server.

Method Details

beginCreateOrUpdate

public abstract SyncPoller,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<T,U> for polling of an Azure SQL Database server.

beginCreateOrUpdate

public abstract SyncPoller,ServerInner> beginCreateOrUpdate(String resourceGroupName, String serverName, ServerInner parameters, 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<T,U> for polling of an Azure SQL Database server.

beginCreateOrUpdateAsync

public abstract PollerFlux,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<T,U> for polling of an Azure SQL Database server.

beginDelete

public abstract SyncPoller,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<T,U> for polling of long-running operation.

beginDelete

public abstract SyncPoller,Void> beginDelete(String resourceGroupName, String serverName, 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<T,U> for polling of long-running operation.

beginDeleteAsync

public abstract PollerFlux,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<T,U> for polling of long-running operation.

beginImportDatabase

public abstract SyncPoller,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<T,U> for polling of an ImportExport operation result resource.

beginImportDatabase

public abstract SyncPoller,ImportExportOperationResultInner> beginImportDatabase(String resourceGroupName, String serverName, ImportNewDatabaseDefinition parameters, 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<T,U> for polling of an ImportExport operation result resource.

beginImportDatabaseAsync

public abstract PollerFlux,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<T,U> for polling of an ImportExport operation result resource.

beginUpdate

public abstract SyncPoller,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<T,U> for polling of an Azure SQL Database server.

beginUpdate

public abstract SyncPoller,ServerInner> beginUpdate(String resourceGroupName, String serverName, ServerUpdate parameters, 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<T,U> for polling of an Azure SQL Database server.

beginUpdateAsync

public abstract PollerFlux,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<T,U> for polling of an Azure SQL Database server.

checkNameAvailability

public abstract CheckNameAvailabilityResponseInner checkNameAvailability(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.

checkNameAvailabilityAsync

public abstract Mono 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.

checkNameAvailabilityWithResponse

public abstract Response checkNameAvailabilityWithResponse(CheckNameAvailabilityRequest parameters, 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<T>.

checkNameAvailabilityWithResponseAsync

public abstract Mono> 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<T> on successful completion of Mono.

createOrUpdate

public abstract 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.

createOrUpdate

public abstract ServerInner createOrUpdate(String resourceGroupName, String serverName, ServerInner parameters, 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.

createOrUpdateAsync

public abstract Mono 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.

createOrUpdateWithResponseAsync

public abstract Mono>> 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<T> on successful completion of Mono.

delete

public abstract 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.

delete

public abstract void delete(String resourceGroupName, String serverName, 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.

deleteAsync

public abstract Mono deleteAsync(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:

A Mono that completes when a successful response is received.

deleteWithResponseAsync

public abstract Mono>> 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<T> on successful completion of Mono.

getByResourceGroup

public abstract ServerInner getByResourceGroup(String resourceGroupName, String serverName)

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.

Returns:

a server.

getByResourceGroupAsync

public abstract Mono getByResourceGroupAsync(String resourceGroupName, String serverName)

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.

Returns:

a server on successful completion of Mono.

getByResourceGroupWithResponse

public abstract Response getByResourceGroupWithResponse(String resourceGroupName, String serverName, String expand, 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<T>.

getByResourceGroupWithResponseAsync

public abstract Mono> 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<T> on successful completion of Mono.

importDatabase

public abstract 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.

importDatabase

public abstract ImportExportOperationResultInner importDatabase(String resourceGroupName, String serverName, ImportNewDatabaseDefinition parameters, 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.

importDatabaseAsync

public abstract Mono 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.

importDatabaseWithResponseAsync

public abstract Mono>> 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<T> on successful completion of Mono.

list

public abstract PagedIterable list()

Gets a list of all servers in the subscription.

Returns:

a list of all servers in the subscription as paginated response with PagedIterable<T>.

list

public abstract PagedIterable list(String expand, 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<T>.

listAsync

public abstract PagedFlux listAsync()

Gets a list of all servers in the subscription.

Returns:

a list of all servers in the subscription as paginated response with PagedFlux<T>.

listAsync

public abstract PagedFlux 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<T>.

listByResourceGroup

public abstract PagedIterable listByResourceGroup(String resourceGroupName)

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.

Returns:

a list of servers in a resource groups as paginated response with PagedIterable<T>.

listByResourceGroup

public abstract PagedIterable listByResourceGroup(String resourceGroupName, String expand, 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<T>.

listByResourceGroupAsync

public abstract PagedFlux listByResourceGroupAsync(String resourceGroupName)

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.

Returns:

a list of servers in a resource groups as paginated response with PagedFlux<T>.

listByResourceGroupAsync

public abstract PagedFlux 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<T>.

update

public abstract 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.

update

public abstract ServerInner update(String resourceGroupName, String serverName, ServerUpdate parameters, 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.

updateAsync

public abstract Mono 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.

updateWithResponseAsync

public abstract Mono>> 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<T> on successful completion of Mono.

Applies to