SqlElasticPool Interface
public interface SqlElasticPool extends IndependentChildResource<SqlServerManager, ElasticPoolInner>,Refreshable,Updatable<SqlElasticPool.Update>,ExternalChildResource<SqlElasticPool, SqlServer>,HasInner,HasResourceGroup,Refreshable,Updatable<SqlElasticPool.Update>
An immutable client-side representation of an Azure SQL Elastic Pool.
An immutable client-side representation of an Azure SQL ElasticPool.
Method Summary
Modifier and Type | Method and Description |
---|---|
Sql |
addExistingDatabase(SqlDatabase database)
Adds an existing SQL Database to the Elastic Pool. |
Sql |
addExistingDatabase(String databaseName)
Adds an existing SQL Database to the Elastic Pool. |
Sql |
addNewDatabase(String databaseName)
Adds a new SQL Database to the Elastic Pool. |
DateTime | creationDate() |
int | databaseDtuMax() |
int | databaseDtuMin() |
void |
delete()
Deletes this SQL Elastic Pool from the parent SQL server. |
Completable |
deleteAsync()
Deletes this SQL Elastic Pool asynchronously from the parent SQL server. |
int | dtu() |
Elastic |
edition() |
Sql |
getDatabase(String databaseName)
Gets the specific database in the elastic pool. |
List<Elastic |
listActivities() |
Observable<Elastic |
listActivitiesAsync() |
List<Elastic |
listDatabaseActivities() |
Observable<Elastic |
listDatabaseActivitiesAsync() |
List<Sql |
listDatabaseMetricDefinitions()
Lists the database metric definitions for this SQL Elastic Pool. |
Observable<Sql |
listDatabaseMetricDefinitionsAsync()
Asynchronously lists the database metric definitions for this SQL Elastic Pool. |
List<Sql |
listDatabaseMetrics(String filter)
Lists the database metrics for this SQL Elastic Pool. |
Observable<Sql |
listDatabaseMetricsAsync(String filter)
Asynchronously lists the database metrics for this SQL Elastic Pool. |
List<Sql |
listDatabases()
Lists the SQL databases in this SQL Elastic Pool. |
Observable<Sql |
listDatabasesAsync()
Asynchronously lists the SQL databases in this SQL Elastic Pool. |
String | parentId() |
Region | region() |
String | regionName() |
Sql |
removeDatabase(String databaseName)
Removes an existing SQL Database from the Elastic Pool. |
String | sqlServerName() |
Elastic |
state() |
int | storageCapacityInMB() |
int | storageMB() |
Inherited Members
Method Details
addExistingDatabase
public SqlDatabase addExistingDatabase(SqlDatabase database)
Adds an existing SQL Database to the Elastic Pool.
Parameters:
Returns:
addExistingDatabase
public SqlDatabase addExistingDatabase(String databaseName)
Adds an existing SQL Database to the Elastic Pool.
Parameters:
Returns:
addNewDatabase
public SqlDatabase addNewDatabase(String databaseName)
Adds a new SQL Database to the Elastic Pool.
Parameters:
Returns:
creationDate
public DateTime creationDate()
Returns:
databaseDtuMax
public int databaseDtuMax()
Returns:
databaseDtuMin
public int databaseDtuMin()
Returns:
delete
public void delete()
Deletes this SQL Elastic Pool from the parent SQL server.
deleteAsync
public Completable deleteAsync()
Deletes this SQL Elastic Pool asynchronously from the parent SQL server.
Returns:
dtu
public int dtu()
Returns:
edition
public ElasticPoolEdition edition()
Returns:
getDatabase
public SqlDatabase getDatabase(String databaseName)
Gets the specific database in the elastic pool.
Parameters:
Returns:
listActivities
public List
Returns:
listActivitiesAsync
public Observable
Returns:
listDatabaseActivities
public List
Returns:
listDatabaseActivitiesAsync
public Observable
Returns:
listDatabaseMetricDefinitions
public List
Lists the database metric definitions for this SQL Elastic Pool.
Returns:
listDatabaseMetricDefinitionsAsync
public Observable
Asynchronously lists the database metric definitions for this SQL Elastic Pool.
Returns:
listDatabaseMetrics
public List
Lists the database metrics for this SQL Elastic Pool.
Parameters:
Returns:
listDatabaseMetricsAsync
public Observable
Asynchronously lists the database metrics for this SQL Elastic Pool.
Parameters:
Returns:
listDatabases
public List
Lists the SQL databases in this SQL Elastic Pool.
Returns:
listDatabasesAsync
public Observable
Asynchronously lists the SQL databases in this SQL Elastic Pool.
Returns:
parentId
public String parentId()
Returns:
region
public Region region()
Returns:
regionName
public String regionName()
Returns:
removeDatabase
public SqlDatabase removeDatabase(String databaseName)
Removes an existing SQL Database from the Elastic Pool.
Parameters:
Returns:
sqlServerName
public String sqlServerName()
Returns:
state
public ElasticPoolState state()
Returns:
storageCapacityInMB
public int storageCapacityInMB()
Returns:
storageMB
public int storageMB()
Returns:
Applies to
Azure SDK for Java