@Beta(value=V1_7_0) public interface SqlDatabase extends ExternalChildResource<SqlDatabase,SqlServer>, HasInner<com.microsoft.azure.management.sql.implementation.DatabaseInner>, HasResourceGroup, Refreshable<SqlDatabase>, 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.
|
id
key
name
parent
refresh, refreshAsync
inner
resourceGroupName
String 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()
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(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(Creatable<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(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 © 2019. All rights reserved.