SqlDatabases Interface

public interface SqlDatabases extends SupportsCreating<SqlDatabase.DefinitionStages.Blank>,SupportsDeletingById,SupportsGettingById,SupportsBatchCreation,SupportsDeletingByParent,HasManager,HasInner

Entry point to SQL Database management API.

Method Summary

Modifier and Type Method and Description
SqlDatabase getBySqlServer(SqlServer sqlServer, String name)

Gets the SQLDatabase based on the SQLServer instance and SQLDatabase name.

SqlDatabase getBySqlServer(String resourceGroup, String sqlServerName, String name)

Gets the SQLDatabase based on the resource group name, SQLServer name and SQLDatabase name.

List<SqlDatabase> listBySqlServer(SqlServer sqlServer)

Gets the SQLDatabase based on the SQLServer.

List<SqlDatabase> listBySqlServer(String resourceGroupName, String sqlServerName)

Lists resources of the specified type in the specified resource group and SQLServer.

Inherited Members

Method Details

getBySqlServer

public SqlDatabase getBySqlServer(SqlServer sqlServer, String name)

Gets the SQLDatabase based on the SQLServer instance and SQLDatabase name.

Parameters:

sqlServer - the instance of SQLServer.
name - the name of SQLDatabase

Returns:

an immutable representation of the SQLDatabase

getBySqlServer

public SqlDatabase getBySqlServer(String resourceGroup, String sqlServerName, String name)

Gets the SQLDatabase based on the resource group name, SQLServer name and SQLDatabase name.

Parameters:

resourceGroup - the name of resource group.
sqlServerName - the name of SQLServer.
name - the name of SQLDatabase.

Returns:

an immutable representation of the SQLDatabase

listBySqlServer

public List listBySqlServer(SqlServer sqlServer)

Gets the SQLDatabase based on the SQLServer.

Parameters:

sqlServer - the instance of SQLServer

Returns:

the list of SQLDatabases in a SQLServer

listBySqlServer

public List listBySqlServer(String resourceGroupName, String sqlServerName)

Lists resources of the specified type in the specified resource group and SQLServer.

Parameters:

resourceGroupName - the name of the resource group to list the resources from
sqlServerName - the name of SQLServer

Returns:

the list of SQLDatabases in a SQLServer

Applies to