Databases Interface

public interface Databases

Resource collection API of Databases.

Method Summary

Modifier and Type Method and Description
abstract Blank define(String name)

Begins definition for a new Database resource.

abstract void delete(String resourceGroupName, String serverName, String databaseName)

Deletes a database.

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

Deletes a database.

abstract void deleteById(String id)

Deletes a database.

abstract void deleteByIdWithResponse(String id, Context context)

Deletes a database.

abstract Database get(String resourceGroupName, String serverName, String databaseName)

Gets information about a database.

abstract Database getById(String id)

Gets information about a database.

abstract Response<Database> getByIdWithResponse(String id, Context context)

Gets information about a database.

abstract Response<Database> getWithResponse(String resourceGroupName, String serverName, String databaseName, Context context)

Gets information about a database.

abstract PagedIterable<Database> listByServer(String resourceGroupName, String serverName)

List all the databases in a given server.

abstract PagedIterable<Database> listByServer(String resourceGroupName, String serverName, Context context)

List all the databases in a given server.

Method Details

define

public abstract Database.DefinitionStages.Blank define(String name)

Begins definition for a new Database resource.

Parameters:

name - resource name.

Returns:

the first stage of the new Database definition.

delete

public abstract void delete(String resourceGroupName, String serverName, String databaseName)

Deletes a database.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
serverName - The name of the server.
databaseName - The name of the database.

delete

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

Deletes a database.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
serverName - The name of the server.
databaseName - The name of the database.
context - The context to associate with this operation.

deleteById

public abstract void deleteById(String id)

Deletes a database.

Parameters:

id - the resource ID.

deleteByIdWithResponse

public abstract void deleteByIdWithResponse(String id, Context context)

Deletes a database.

Parameters:

id - the resource ID.
context - The context to associate with this operation.

get

public abstract Database get(String resourceGroupName, String serverName, String databaseName)

Gets information about a database.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
serverName - The name of the server.
databaseName - The name of the database.

Returns:

information about a database.

getById

public abstract Database getById(String id)

Gets information about a database.

Parameters:

id - the resource ID.

Returns:

information about a database along with Response<T>.

getByIdWithResponse

public abstract Response<Database> getByIdWithResponse(String id, Context context)

Gets information about a database.

Parameters:

id - the resource ID.
context - The context to associate with this operation.

Returns:

information about a database along with Response<T>.

getWithResponse

public abstract Response<Database> getWithResponse(String resourceGroupName, String serverName, String databaseName, Context context)

Gets information about a database.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
serverName - The name of the server.
databaseName - The name of the database.
context - The context to associate with this operation.

Returns:

information about a database along with Response<T>.

listByServer

public abstract PagedIterable<Database> listByServer(String resourceGroupName, String serverName)

List all the databases in a given server.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
serverName - The name of the server.

Returns:

a List of databases as paginated response with PagedIterable<T>.

listByServer

public abstract PagedIterable<Database> listByServer(String resourceGroupName, String serverName, Context context)

List all the databases in a given server.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
serverName - The name of the server.
context - The context to associate with this operation.

Returns:

a List of databases as paginated response with PagedIterable<T>.

Applies to