SqlElasticPool Interface

Implements

public interface SqlElasticPool
extends ExternalChildResource<SqlElasticPool,SqlServer>, HasInnerModel<ElasticPoolInner>, HasResourceGroup, Refreshable<SqlElasticPool>, Updatable<Update>

An immutable client-side representation of an Azure SQL Elastic Pool.

Method Summary

Modifier and Type Method and Description
abstract SqlDatabase addExistingDatabase(SqlDatabase database)

Adds an existing SQL Database to the Elastic Pool.

abstract SqlDatabase addExistingDatabase(String databaseName)

Adds an existing SQL Database to the Elastic Pool.

abstract SqlDatabase addNewDatabase(String databaseName)

Adds a new SQL Database to the Elastic Pool.

abstract OffsetDateTime creationDate()
abstract Double databaseDtuMax()
abstract Double databaseDtuMin()
abstract void delete()

Deletes this SQL Elastic Pool from the parent SQL server.

abstract Mono<Void> deleteAsync()

Deletes this SQL Elastic Pool asynchronously from the parent SQL server.

abstract int dtu()
abstract ElasticPoolEdition edition()
abstract SqlDatabase getDatabase(String databaseName)

Gets the specific database in the elastic pool.

abstract List<ElasticPoolActivity> listActivities()
abstract PagedFlux<ElasticPoolActivity> listActivitiesAsync()
abstract List<SqlDatabase> listDatabases()

Lists the SQL databases in this SQL Elastic Pool.

abstract PagedFlux<SqlDatabase> listDatabasesAsync()

Asynchronously lists the SQL databases in this SQL Elastic Pool.

abstract String parentId()
abstract Region region()
abstract String regionName()
abstract SqlDatabase removeDatabase(String databaseName)

Removes an existing SQL Database from the Elastic Pool.

abstract String sqlServerName()
abstract ElasticPoolState state()
abstract Long storageCapacity()

Method Details

addExistingDatabase

public abstract SqlDatabase addExistingDatabase(SqlDatabase database)

Adds an existing SQL Database to the Elastic Pool.

Parameters:

database - the database to be added

Returns:

the database

addExistingDatabase

public abstract SqlDatabase addExistingDatabase(String databaseName)

Adds an existing SQL Database to the Elastic Pool.

Parameters:

databaseName - name of the database

Returns:

the database

addNewDatabase

public abstract SqlDatabase addNewDatabase(String databaseName)

Adds a new SQL Database to the Elastic Pool.

Parameters:

databaseName - name of the database

Returns:

the database

creationDate

public abstract OffsetDateTime creationDate()

Returns:

the creation date of the Azure SQL Elastic Pool

databaseDtuMax

public abstract Double databaseDtuMax()

Returns:

the maximum DTU any one SQL Azure database can consume.

databaseDtuMin

public abstract Double databaseDtuMin()

Returns:

the minimum DTU all SQL Azure Databases are guaranteed

delete

public abstract void delete()

Deletes this SQL Elastic Pool from the parent SQL server.

deleteAsync

public abstract Mono deleteAsync()

Deletes this SQL Elastic Pool asynchronously from the parent SQL server.

Returns:

a representation of the deferred computation of this call

dtu

public abstract int dtu()

Returns:

The total shared DTU for the SQL Azure Database Elastic Pool

edition

public abstract ElasticPoolEdition edition()

Returns:

the edition of Azure SQL Elastic Pool

getDatabase

public abstract SqlDatabase getDatabase(String databaseName)

Gets the specific database in the elastic pool.

Parameters:

databaseName - name of the database to look into

Returns:

the information about specific database in elastic pool

listActivities

public abstract List listActivities()

Returns:

the information about elastic pool activities

listActivitiesAsync

public abstract PagedFlux listActivitiesAsync()

Returns:

a representation of the deferred computation of the information about elastic pool activities

listDatabases

public abstract List listDatabases()

Lists the SQL databases in this SQL Elastic Pool.

Returns:

the information about databases in elastic pool

listDatabasesAsync

public abstract PagedFlux listDatabasesAsync()

Asynchronously lists the SQL databases in this SQL Elastic Pool.

Returns:

a representation of the deferred computation of this call

parentId

public abstract String parentId()

Returns:

the parent SQL server ID

region

public abstract Region region()

Returns:

the region the resource is in

regionName

public abstract String regionName()

Returns:

the name of the region the resource is in

removeDatabase

public abstract SqlDatabase removeDatabase(String databaseName)

Removes an existing SQL Database from the Elastic Pool.

Parameters:

databaseName - name of the database

Returns:

the database

sqlServerName

public abstract String sqlServerName()

Returns:

name of the SQL Server to which this elastic pool belongs

state

public abstract ElasticPoolState state()

Returns:

the state of the Azure SQL Elastic Pool

storageCapacity

public abstract Long storageCapacity()

Returns:

the storage capacity limit for the SQL Azure Database Elastic Pool in Bytes

Applies to