@Beta(value=V1_7_0) public interface SqlDatabase extends com.microsoft.azure.management.resources.fluentcore.arm.models.ExternalChildResource<SqlDatabase,SqlServer>, com.microsoft.azure.management.resources.fluentcore.model.HasInner<com.microsoft.azure.management.sql.implementation.DatabaseInner>, com.microsoft.azure.management.resources.fluentcore.arm.models.HasResourceGroup, com.microsoft.azure.management.resources.fluentcore.model.Refreshable<SqlDatabase>, com.microsoft.azure.management.resources.fluentcore.model.Updatable<SqlDatabase.Update>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
SqlDatabase.DefinitionStages
Grouping of all the SQL Database definition stages.
|
static interface |
SqlDatabase.SqlDatabaseDefinition<ParentT>
Container interface for all the definitions that need to be implemented.
|
static interface |
SqlDatabase.Update
The template for a SqlDatabase update operation, containing all the settings that can be modified.
|
static interface |
SqlDatabase.UpdateStages
Grouping of all the SqlDatabase update stages.
|
| Modifier and Type | Method and Description |
|---|---|
SqlWarehouse |
asWarehouse() |
String |
collation() |
org.joda.time.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.
|
rx.Completable |
deleteAsync()
Deletes the database asynchronously.
|
org.joda.time.DateTime |
earliestRestoreDate() |
DatabaseEditions |
edition() |
String |
elasticPoolName() |
SqlDatabaseExportRequest.DefinitionStages.WithAuthenticationTypeAndLoginPassword |
exportTo(com.microsoft.azure.management.resources.fluentcore.model.Creatable<com.microsoft.azure.management.storage.StorageAccount> storageAccountCreatable,
String containerName,
String fileName)
Exports the current database to a new storage account and relative path.
|
SqlDatabaseExportRequest.DefinitionStages.WithAuthenticationTypeAndLoginPassword |
exportTo(com.microsoft.azure.management.storage.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.
|
SqlDatabaseAutomaticTuning |
getDatabaseAutomaticTuning()
Gets a SQL database automatic tuning state and options.
|
SqlDatabaseThreatDetectionPolicy |
getThreatDetectionPolicy()
Gets a SQL database threat detection policy.
|
TransparentDataEncryption |
getTransparentDataEncryption()
Gets an Azure SQL Database Transparent Data Encryption for this database.
|
rx.Observable<TransparentDataEncryption> |
getTransparentDataEncryptionAsync()
Gets an Azure SQL Database Transparent Data Encryption for this database.
|
UpgradeHintInterface |
getUpgradeHint()
Deprecated.
|
SqlDatabaseImportRequest.DefinitionStages.WithAuthenticationTypeAndLoginPassword |
importBacpac(com.microsoft.azure.management.storage.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<SqlDatabaseMetricDefinition> |
listMetricDefinitions() |
rx.Observable<SqlDatabaseMetricDefinition> |
listMetricDefinitionsAsync() |
List<SqlDatabaseMetric> |
listMetrics(String filter) |
rx.Observable<SqlDatabaseMetric> |
listMetricsAsync(String filter) |
Map<String,ReplicationLink> |
listReplicationLinks() |
rx.Observable<ReplicationLink> |
listReplicationLinksAsync() |
List<RestorePoint> |
listRestorePoints() |
rx.Observable<RestorePoint> |
listRestorePointsAsync() |
Map<String,ServiceTierAdvisor> |
listServiceTierAdvisors() |
rx.Observable<ServiceTierAdvisor> |
listServiceTierAdvisorsAsync() |
List<SqlDatabaseUsageMetric> |
listUsageMetrics()
Lists the SQL database usage metrics.
|
rx.Observable<SqlDatabaseUsageMetric> |
listUsageMetricsAsync()
Asynchronously lists the SQL database usage metrics.
|
List<DatabaseMetric> |
listUsages()
Deprecated.
|
long |
maxSizeBytes() |
String |
parentId() |
com.microsoft.azure.management.resources.fluentcore.arm.Region |
region() |
String |
regionName() |
SqlDatabase |
rename(String newDatabaseName)
Renames the database.
|
rx.Observable<SqlDatabase> |
renameAsync(String newDatabaseName)
Renames the database asynchronously.
|
UUID |
requestedServiceObjectiveId() |
ServiceObjectiveName |
requestedServiceObjectiveName() |
ServiceObjectiveName |
serviceLevelObjective() |
String |
sqlServerName() |
String |
status() |
SqlSyncGroupOperations.SqlSyncGroupActionsDefinition |
syncGroups() |
idkeynameparentrefresh, refreshAsyncinnerString sqlServerName()
String collation()
org.joda.time.DateTime creationDate()
UUID currentServiceObjectiveId()
String databaseId()
org.joda.time.DateTime earliestRestoreDate()
DatabaseEditions edition()
UUID requestedServiceObjectiveId()
long maxSizeBytes()
ServiceObjectiveName requestedServiceObjectiveName()
ServiceObjectiveName serviceLevelObjective()
String status()
String elasticPoolName()
String defaultSecondaryLocation()
String parentId()
String regionName()
com.microsoft.azure.management.resources.fluentcore.arm.Region region()
@Deprecated UpgradeHintInterface getUpgradeHint()
boolean isDataWarehouse()
SqlWarehouse asWarehouse()
List<RestorePoint> listRestorePoints()
@Beta(value=V1_7_0) rx.Observable<RestorePoint> listRestorePointsAsync()
@Deprecated List<DatabaseMetric> listUsages()
@Beta(value=V1_7_0) List<SqlDatabaseMetric> listMetrics(String filter)
filter - an OData filter expression that describes a subset of metrics to return.@Beta(value=V1_7_0) rx.Observable<SqlDatabaseMetric> listMetricsAsync(String filter)
filter - an OData filter expression that describes a subset of metrics to return.@Beta(value=V1_7_0) List<SqlDatabaseMetricDefinition> listMetricDefinitions()
@Beta(value=V1_7_0) rx.Observable<SqlDatabaseMetricDefinition> listMetricDefinitionsAsync()
TransparentDataEncryption getTransparentDataEncryption()
@Beta(value=V1_7_0) rx.Observable<TransparentDataEncryption> getTransparentDataEncryptionAsync()
Map<String,ServiceTierAdvisor> listServiceTierAdvisors()
@Beta(value=V1_7_0) rx.Observable<ServiceTierAdvisor> listServiceTierAdvisorsAsync()
Map<String,ReplicationLink> listReplicationLinks()
@Beta(value=V1_7_0) rx.Observable<ReplicationLink> listReplicationLinksAsync()
@Beta(value=V1_7_0) SqlDatabaseExportRequest.DefinitionStages.WithStorageTypeAndKey exportTo(String storageUri)
storageUri - the storage URI to use@Beta(value=V1_7_0) SqlDatabaseExportRequest.DefinitionStages.WithAuthenticationTypeAndLoginPassword exportTo(com.microsoft.azure.management.storage.StorageAccount storageAccount, String containerName, String fileName)
storageAccount - an existing storage account to be usedcontainerName - the container name within the storage account to usefileName - the exported database file name@Beta(value=V1_7_0) SqlDatabaseExportRequest.DefinitionStages.WithAuthenticationTypeAndLoginPassword exportTo(com.microsoft.azure.management.resources.fluentcore.model.Creatable<com.microsoft.azure.management.storage.StorageAccount> storageAccountCreatable, String containerName, String fileName)
storageAccountCreatable - a storage account to be created as part of this execution flowcontainerName - the container name within the storage account to usefileName - the exported database file name@Beta(value=V1_7_0) SqlDatabaseImportRequest.DefinitionStages.WithStorageTypeAndKey importBacpac(String storageUri)
storageUri - the storage URI to use@Beta(value=V1_7_0) SqlDatabaseImportRequest.DefinitionStages.WithAuthenticationTypeAndLoginPassword importBacpac(com.microsoft.azure.management.storage.StorageAccount storageAccount, String containerName, String fileName)
storageAccount - an existing storage account to be usedcontainerName - the container name within the storage account to usefileName - the exported database file name@Beta(value=V1_7_0) SqlDatabaseThreatDetectionPolicy.DefinitionStages.Blank defineThreatDetectionPolicy(String policyName)
policyName - the name of the security alert policy@Beta(value=V1_7_0) SqlDatabaseThreatDetectionPolicy getThreatDetectionPolicy()
@Beta(value=V1_8_0) SqlDatabaseAutomaticTuning getDatabaseAutomaticTuning()
@Beta(value=V1_8_0) List<SqlDatabaseUsageMetric> listUsageMetrics()
@Beta(value=V1_8_0) rx.Observable<SqlDatabaseUsageMetric> listUsageMetricsAsync()
@Beta(value=V1_8_0) SqlDatabase rename(String newDatabaseName)
newDatabaseName - the new name for the database@Beta(value=V1_8_0) rx.Observable<SqlDatabase> renameAsync(String newDatabaseName)
newDatabaseName - the new name for the databasevoid delete()
@Beta(value=V1_7_0) rx.Completable deleteAsync()
@Beta(value=V1_9_0) SqlSyncGroupOperations.SqlSyncGroupActionsDefinition syncGroups()
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/