SqlDatabase Interface
public interface SqlDatabase extends IndependentChildResource<SqlServerManager, DatabaseInner>,Refreshable,Updatable<SqlDatabase.Update>,ExternalChildResource<SqlDatabase, SqlServer>,HasInner,HasResourceGroup,Refreshable,Updatable<SqlDatabase.Update>
An immutable client-side representation of an Azure SQL Server Database.
An immutable client-side representation of an Azure SQL Database.
Method Summary
Modifier and Type | Method and Description |
---|---|
Sql |
asWarehouse() |
String | collation() |
DateTime | creationDate() |
UUID | currentServiceObjectiveId() |
String | databaseId() |
String | defaultSecondaryLocation() |
SqlDatabaseThreatDetectionPolicy.DefinitionStages.Blank |
defineThreatDetectionPolicy(String policyName)
Begins a definition for a security alert policy. |
void |
delete()
Deletes the database from the server. |
Completable |
deleteAsync()
Deletes the database asynchronously. |
DateTime | earliestRestoreDate() |
Database |
edition() |
String | elasticPoolName() |
SqlDatabaseExportRequest.DefinitionStages.WithAuthenticationTypeAndLoginPassword |
exportTo(Creatable<StorageAccount> storageAccountCreatable, String containerName, String fileName)
Exports the current database to a new storage account and relative path. |
SqlDatabaseExportRequest.DefinitionStages.WithAuthenticationTypeAndLoginPassword |
exportTo(StorageAccount storageAccount, String containerName, String fileName)
Exports the current database to an existing storage account and relative path. |
SqlDatabaseExportRequest.DefinitionStages.WithStorageTypeAndKey |
exportTo(String storageUri)
Exports the current database to a specified URI path. |
Sql |
getDatabaseAutomaticTuning()
Gets a SQL database automatic tuning state and options. |
Sql |
getThreatDetectionPolicy()
Gets a SQL database threat detection policy. |
Transparent |
getTransparentDataEncryption()
Gets an Azure SQL Database Transparent Data Encryption for this database. |
Observable<Transparent |
getTransparentDataEncryptionAsync()
Gets an Azure SQL Database Transparent Data Encryption for this database. |
Upgrade |
getUpgradeHint() |
SqlDatabaseImportRequest.DefinitionStages.WithAuthenticationTypeAndLoginPassword |
importBacpac(StorageAccount storageAccount, String containerName, String fileName)
Imports into the current database from an existing storage account and relative path; the current database must be empty. |
SqlDatabaseImportRequest.DefinitionStages.WithStorageTypeAndKey |
importBacpac(String storageUri)
Imports into the current database from a specified URI path; the current database must be empty. |
boolean | isDataWarehouse() |
List<Sql |
listMetricDefinitions() |
Observable<Sql |
listMetricDefinitionsAsync() |
List<Sql |
listMetrics(String filter) |
Observable<Sql |
listMetricsAsync(String filter) |
Map<String, Replication |
listReplicationLinks() |
Observable<Replication |
listReplicationLinksAsync() |
List<Restore |
listRestorePoints() |
Observable<Restore |
listRestorePointsAsync() |
Map<String, Service |
listServiceTierAdvisors() |
Observable<Service |
listServiceTierAdvisorsAsync() |
List<Sql |
listUsageMetrics()
Lists the SQL database usage metrics. |
Observable<Sql |
listUsageMetricsAsync()
Asynchronously lists the SQL database usage metrics. |
List<Database |
listUsages() |
long | maxSizeBytes() |
String | parentId() |
Region | region() |
String | regionName() |
Sql |
rename(String newDatabaseName)
Renames the database. |
Observable<Sql |
renameAsync(String newDatabaseName)
Renames the database asynchronously. |
UUID | requestedServiceObjectiveId() |
Service |
requestedServiceObjectiveName() |
Service |
serviceLevelObjective() |
String | sqlServerName() |
String | status() |
SqlSyncGroupOperations.SqlSyncGroupActionsDefinition | syncGroups() |
Inherited Members
Method Details
asWarehouse
public SqlWarehouse asWarehouse()
Returns:
collation
public String collation()
Returns:
creationDate
public DateTime creationDate()
Returns:
currentServiceObjectiveId
public UUID currentServiceObjectiveId()
Returns:
databaseId
public String databaseId()
Returns:
defaultSecondaryLocation
public String defaultSecondaryLocation()
Returns:
defineThreatDetectionPolicy
public SqlDatabaseThreatDetectionPolicy.DefinitionStages.Blank defineThreatDetectionPolicy(String policyName)
Begins a definition for a security alert policy.
Parameters:
Returns:
delete
public void delete()
Deletes the database from the server.
deleteAsync
public Completable deleteAsync()
Deletes the database asynchronously.
Returns:
earliestRestoreDate
public DateTime earliestRestoreDate()
Returns:
edition
public DatabaseEdition edition()
Returns:
elasticPoolName
public String elasticPoolName()
Returns:
exportTo
public SqlDatabaseExportRequest.DefinitionStages.WithAuthenticationTypeAndLoginPassword exportTo(Creatable
Exports the current database to a new storage account and relative path.
Parameters:
Returns:
exportTo
public SqlDatabaseExportRequest.DefinitionStages.WithAuthenticationTypeAndLoginPassword exportTo(StorageAccount storageAccount, String containerName, String fileName)
Exports the current database to an existing storage account and relative path.
Parameters:
Returns:
exportTo
public SqlDatabaseExportRequest.DefinitionStages.WithStorageTypeAndKey exportTo(String storageUri)
Exports the current database to a specified URI path.
Parameters:
Returns:
getDatabaseAutomaticTuning
public SqlDatabaseAutomaticTuning getDatabaseAutomaticTuning()
Gets a SQL database automatic tuning state and options.
Returns:
getThreatDetectionPolicy
public SqlDatabaseThreatDetectionPolicy getThreatDetectionPolicy()
Gets a SQL database threat detection policy.
Returns:
getTransparentDataEncryption
public TransparentDataEncryption getTransparentDataEncryption()
Gets an Azure SQL Database Transparent Data Encryption for this database.
Returns:
getTransparentDataEncryptionAsync
public Observable
Gets an Azure SQL Database Transparent Data Encryption for this database.
Returns:
getUpgradeHint
public UpgradeHintInterface getUpgradeHint()
Returns:
importBacpac
public SqlDatabaseImportRequest.DefinitionStages.WithAuthenticationTypeAndLoginPassword importBacpac(StorageAccount storageAccount, String containerName, String fileName)
Imports into the current database from an existing storage account and relative path; the current database must be empty.
Parameters:
Returns:
importBacpac
public SqlDatabaseImportRequest.DefinitionStages.WithStorageTypeAndKey importBacpac(String storageUri)
Imports into the current database from a specified URI path; the current database must be empty.
Parameters:
Returns:
isDataWarehouse
public boolean isDataWarehouse()
Returns:
listMetricDefinitions
public List
Returns:
listMetricDefinitionsAsync
public Observable
Returns:
listMetrics
public List
Parameters:
Returns:
listMetricsAsync
public Observable
Parameters:
Returns:
listReplicationLinks
public Map
Returns:
listReplicationLinksAsync
public Observable
Returns:
listRestorePoints
public List
Returns:
listRestorePointsAsync
public Observable
Returns:
listServiceTierAdvisors
public Map
Returns:
listServiceTierAdvisorsAsync
public Observable
Returns:
listUsageMetrics
public List
Lists the SQL database usage metrics.
Returns:
listUsageMetricsAsync
public Observable
Asynchronously lists the SQL database usage metrics.
Returns:
listUsages
public List
Returns:
maxSizeBytes
public long maxSizeBytes()
Returns:
parentId
public String parentId()
Returns:
region
public Region region()
Returns:
regionName
public String regionName()
Returns:
rename
public SqlDatabase rename(String newDatabaseName)
Renames the database.
Parameters:
Returns:
renameAsync
public Observable
Renames the database asynchronously.
Parameters:
Returns:
requestedServiceObjectiveId
public UUID requestedServiceObjectiveId()
Returns:
requestedServiceObjectiveName
public ServiceObjectiveName requestedServiceObjectiveName()
Returns:
serviceLevelObjective
public ServiceObjectiveName serviceLevelObjective()
Returns:
sqlServerName
public String sqlServerName()
Returns:
status
public String status()
Returns:
syncGroups
public SqlSyncGroupOperations.SqlSyncGroupActionsDefinition syncGroups()
Returns:
Applies to
Azure SDK for Java