SqlDatabase Interface
Implements
public interface SqlDatabase
extends ExternalChildResource<SqlDatabase,SqlServer>, HasInnerModel<DatabaseInner>, HasResourceGroup, Refreshable<SqlDatabase>, Updatable<Update>
An immutable client-side representation of an Azure SQL Server Database.
Method Summary
Method Details
asWarehouse
public abstract SqlWarehouse asWarehouse()
Returns:
collation
public abstract String collation()
Returns:
creationDate
public abstract OffsetDateTime creationDate()
Returns:
currentServiceObjectiveName
public abstract String currentServiceObjectiveName()
Returns:
databaseId
public abstract String databaseId()
Returns:
defaultSecondaryLocation
public abstract String defaultSecondaryLocation()
Returns:
defineThreatDetectionPolicy
public abstract SqlDatabaseThreatDetectionPolicy.DefinitionStages.Blank defineThreatDetectionPolicy(SecurityAlertPolicyName policyName)
Begins a definition for a security alert policy.
Parameters:
Returns:
defineThreatDetectionPolicy
@Deprecated
public abstract SqlDatabaseThreatDetectionPolicy.DefinitionStages.Blank defineThreatDetectionPolicy(String policyName)
Deprecated
Begins a definition for a security alert policy.
Parameters:
Returns:
delete
public abstract void delete()
Deletes the database from the server.
deleteAsync
public abstract Mono
Deletes the database asynchronously.
Returns:
earliestRestoreDate
public abstract OffsetDateTime earliestRestoreDate()
Returns:
edition
public abstract DatabaseEdition edition()
Returns:
elasticPoolId
public abstract String elasticPoolId()
Returns:
elasticPoolName
public abstract String elasticPoolName()
Returns:
exportTo
public abstract SqlDatabaseExportRequest.DefinitionStages.WithAuthenticationTypeAndLoginPassword exportTo(Creatable
Exports the current database to a new storage account and relative path.
Parameters:
Returns:
exportTo
public abstract 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 abstract SqlDatabaseExportRequest.DefinitionStages.WithStorageTypeAndKey exportTo(String storageUri)
Exports the current database to a specified URI path.
Parameters:
Returns:
getDatabaseAutomaticTuning
public abstract SqlDatabaseAutomaticTuning getDatabaseAutomaticTuning()
Gets a SQL database automatic tuning state and options.
Returns:
getThreatDetectionPolicy
public abstract SqlDatabaseThreatDetectionPolicy getThreatDetectionPolicy()
Gets a SQL database threat detection policy.
Returns:
getTransparentDataEncryption
public abstract TransparentDataEncryption getTransparentDataEncryption()
Gets an Azure SQL Database Transparent Data Encryption for this database.
Returns:
getTransparentDataEncryptionAsync
public abstract Mono
Gets an Azure SQL Database Transparent Data Encryption for this database.
Returns:
importBacpac
public abstract 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 abstract 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 abstract boolean isDataWarehouse()
Returns:
listReplicationLinks
public abstract Map
Returns:
listReplicationLinksAsync
public abstract PagedFlux
Returns:
listRestorePoints
public abstract List
Returns:
listRestorePointsAsync
public abstract PagedFlux
Returns:
listUsageMetrics
public abstract List
Lists the SQL database usage metrics.
Returns:
listUsageMetricsAsync
public abstract PagedFlux
Asynchronously lists the SQL database usage metrics.
Returns:
maxSizeBytes
public abstract long maxSizeBytes()
Returns:
parentId
public abstract String parentId()
Returns:
region
public abstract Region region()
Returns:
regionName
public abstract String regionName()
Returns:
rename
public abstract SqlDatabase rename(String newDatabaseName)
Renames the database.
Parameters:
Returns:
renameAsync
public abstract Mono
Renames the database asynchronously.
Parameters:
Returns:
requestedServiceObjectiveName
public abstract String requestedServiceObjectiveName()
Returns:
sqlServerName
public abstract String sqlServerName()
Returns:
status
public abstract DatabaseStatus status()
Returns:
syncGroups
public abstract SqlSyncGroupOperations.SqlSyncGroupActionsDefinition syncGroups()
Returns:
Applies to
Azure SDK for Java