Interface SqlElasticPool
- All Superinterfaces:
ChildResource<SqlServer>,ExternalChildResource<SqlElasticPool,,SqlServer> HasInnerModel<ElasticPoolInner>,HasName,HasParent<SqlServer>,HasResourceGroup,Indexable,Refreshable<SqlElasticPool>,Updatable<SqlElasticPool.Update>
public interface SqlElasticPool
extends ExternalChildResource<SqlElasticPool,SqlServer>, HasInnerModel<ElasticPoolInner>, HasResourceGroup, Refreshable<SqlElasticPool>, Updatable<SqlElasticPool.Update>
An immutable client-side representation of an Azure SQL Elastic Pool.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceGrouping of all the storage account definition stages.static interfaceContainer interface for all the definitions that need to be implemented.static interfaceThe template for a SQL Elastic Pool update operation, containing all the settings that can be modified.static interfaceGrouping of all the SQL Elastic Pool update stages. -
Method Summary
Modifier and TypeMethodDescriptionaddExistingDatabase(SqlDatabase database) Adds an existing SQL Database to the Elastic Pool.addExistingDatabase(String databaseName) Adds an existing SQL Database to the Elastic Pool.addNewDatabase(String databaseName) Adds a new SQL Database to the Elastic Pool.voiddelete()Deletes this SQL Elastic Pool from the parent SQL server.Deletes this SQL Elastic Pool asynchronously from the parent SQL server.intdtu()edition()getDatabase(String databaseName) Gets the specific database in the elastic pool.com.azure.core.http.rest.PagedFlux<ElasticPoolActivity>Lists the SQL databases in this SQL Elastic Pool.com.azure.core.http.rest.PagedFlux<SqlDatabase>Asynchronously lists the SQL databases in this SQL Elastic Pool.parentId()com.azure.core.management.Regionregion()removeDatabase(String databaseName) Removes an existing SQL Database from the Elastic Pool.state()Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.ExternalChildResource
idMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.HasInnerModel
innerModelMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasName
nameMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasParent
parentMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasResourceGroup
resourceGroupNameMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.Refreshable
refresh, refreshAsync
-
Method Details
-
sqlServerName
String sqlServerName()- Returns:
- name of the SQL Server to which this elastic pool belongs
-
creationDate
OffsetDateTime creationDate()- Returns:
- the creation date of the Azure SQL Elastic Pool
-
state
ElasticPoolState state()- Returns:
- the state of the Azure SQL Elastic Pool
-
edition
ElasticPoolEdition edition()- Returns:
- the edition of Azure SQL Elastic Pool
-
dtu
int dtu()- Returns:
- The total shared DTU for the SQL Azure Database Elastic Pool
-
databaseDtuMax
Double databaseDtuMax()- Returns:
- the maximum DTU any one SQL Azure database can consume.
-
databaseDtuMin
Double databaseDtuMin()- Returns:
- the minimum DTU all SQL Azure Databases are guaranteed
-
storageCapacity
Long storageCapacity()- Returns:
- the storage capacity limit for the SQL Azure Database Elastic Pool in Bytes
-
parentId
String parentId()- Returns:
- the parent SQL server ID
-
regionName
String regionName()- Returns:
- the name of the region the resource is in
-
region
com.azure.core.management.Region region()- Returns:
- the region the resource is in
-
listActivities
List<ElasticPoolActivity> listActivities()- Returns:
- the information about elastic pool activities
-
listActivitiesAsync
com.azure.core.http.rest.PagedFlux<ElasticPoolActivity> listActivitiesAsync()- Returns:
- a representation of the deferred computation of the information about elastic pool activities
-
listDatabases
List<SqlDatabase> listDatabases()Lists the SQL databases in this SQL Elastic Pool.- Returns:
- the information about databases in elastic pool
-
listDatabasesAsync
com.azure.core.http.rest.PagedFlux<SqlDatabase> listDatabasesAsync()Asynchronously lists the SQL databases in this SQL Elastic Pool.- Returns:
- a representation of the deferred computation of this call
-
getDatabase
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
-
addNewDatabase
Adds a new SQL Database to the Elastic Pool.- Parameters:
databaseName- name of the database- Returns:
- the database
-
addExistingDatabase
Adds an existing SQL Database to the Elastic Pool.- Parameters:
databaseName- name of the database- Returns:
- the database
-
addExistingDatabase
Adds an existing SQL Database to the Elastic Pool.- Parameters:
database- the database to be added- Returns:
- the database
-
removeDatabase
Removes an existing SQL Database from the Elastic Pool.- Parameters:
databaseName- name of the database- Returns:
- the database
-
delete
void delete()Deletes this SQL Elastic Pool from the parent SQL server. -
deleteAsync
Deletes this SQL Elastic Pool asynchronously from the parent SQL server.- Returns:
- a representation of the deferred computation of this call
-