Condividi tramite


ISqlDatabase Interface

Definition

An immutable client-side representation of an Azure SQL Server Database.

public interface ISqlDatabase : Microsoft.Azure.Management.ResourceManager.Fluent.Core.IBeta, Microsoft.Azure.Management.ResourceManager.Fluent.Core.IChildResource<Microsoft.Azure.Management.Sql.Fluent.ISqlServer>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.IExternalChildResource<Microsoft.Azure.Management.Sql.Fluent.ISqlDatabase,Microsoft.Azure.Management.Sql.Fluent.ISqlServer>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.IHasInner<Microsoft.Azure.Management.Sql.Fluent.Models.DatabaseInner>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.IHasParent<Microsoft.Azure.Management.Sql.Fluent.ISqlServer>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.IHasResourceGroup, Microsoft.Azure.Management.ResourceManager.Fluent.Core.ResourceActions.IRefreshable<Microsoft.Azure.Management.Sql.Fluent.ISqlDatabase>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.ResourceActions.IUpdatable<Microsoft.Azure.Management.Sql.Fluent.SqlDatabase.Update.IUpdate>
type ISqlDatabase = interface
    interface IBeta
    interface IExternalChildResource<ISqlDatabase, ISqlServer>
    interface IChildResource<ISqlServer>
    interface IHasName
    interface IIndexable
    interface IHasParent<ISqlServer>
    interface IRefreshable<ISqlDatabase>
    interface IHasInner<DatabaseInner>
    interface IHasResourceGroup
    interface IUpdatable<IUpdate>
Public Interface ISqlDatabase
Implements IBeta, IChildResource(Of ISqlServer), IExternalChildResource(Of ISqlDatabase, ISqlServer), IHasInner(Of DatabaseInner), IHasParent(Of ISqlServer), IHasResourceGroup, IRefreshable(Of ISqlDatabase), IUpdatable(Of IUpdate)
Derived
Implements

Properties

Collation

Gets the collation of the Azure SQL Database.

CreationDate

Gets the creation date of the Azure SQL Database.

CurrentServiceObjectiveId

Gets the current Service Level Objective Id of the Azure SQL Database, this is the Id of the Service Level Objective that is currently active.

DatabaseId

Gets the Id of the Azure SQL Database.

DefaultSecondaryLocation

Gets the defaultSecondaryLocation value.

EarliestRestoreDate

Gets the recovery period start date of the Azure SQL Database. This records the start date and time when recovery is available for this Azure SQL Database.

Edition

Gets the edition of the Azure SQL Database.

ElasticPoolName

Gets the elasticPoolName value.

Id (Inherited from IExternalChildResource<FluentModelT,IParentT>)
Inner (Inherited from IHasInner<T>)
IsDataWarehouse

Gets true if this Database is SqlWarehouse.

Key (Inherited from IIndexable)
MaxSizeBytes

Gets the max size of the Azure SQL Database expressed in bytes.

Name

Gets the name of the resource

(Inherited from IHasName)
Parent

Gets the parent of this child resource.

(Inherited from IHasParent<ParentT>)
ParentId

Gets the parent SQL server ID.

Region

Gets the region the resource is in.

RegionName

Gets the name of the region the resource is in.

RequestedServiceObjectiveId

Gets the configured Service Level Objective Id of the Azure SQL Database, this is the Service Level Objective that is being applied to the Azure SQL Database.

RequestedServiceObjectiveName

Gets the name of the configured Service Level Objective of the Azure SQL Database, this is the Service Level Objective that is being applied to the Azure SQL Database.

ResourceGroupName (Inherited from IHasResourceGroup)
ServiceLevelObjective

Gets the Service Level Objective of the Azure SQL Database.

SqlServerName

Gets name of the SQL Server to which this database belongs.

Status

Gets the status of the Azure SQL Database.

SyncGroups

Gets the SQL Sync Group entry point for the current database.

Tags

Gets the tags for the current SQL Database

Methods

AsWarehouse()
DefineThreatDetectionPolicy(String)

Begins a definition for a security alert policy.

Delete()

Deletes the database from the server.

DeleteAsync(CancellationToken)

Deletes the database asynchronously.

ExportTo(ICreatable<IStorageAccount>, String, String)

Exports the current database to a new storage account and relative path.

ExportTo(IStorageAccount, String, String)

Exports the current database to an existing storage account and relative path.

ExportTo(String)

Exports the current database to a specified URI path.

GetDatabaseAutomaticTuning()

Gets a SQL database automatic tuning state and options.

GetThreatDetectionPolicy()

Gets a SQL database threat detection policy.

GetTransparentDataEncryption()

Gets an Azure SQL Database Transparent Data Encryption for this database.

GetTransparentDataEncryptionAsync(CancellationToken)

Gets an Azure SQL Database Transparent Data Encryption for this database.

ImportBacpac(IStorageAccount, String, String)

Imports into the current database from an existing storage account and relative path; the current database must be empty.

ImportBacpac(String)

Imports into the current database from a specified URI path; the current database must be empty.

ListMetricDefinitions()
ListMetricDefinitionsAsync(CancellationToken)
ListMetrics(String)
ListMetricsAsync(String, CancellationToken)
ListReplicationLinks()
ListReplicationLinksAsync(CancellationToken)
ListRestorePoints()
ListRestorePointsAsync(CancellationToken)
ListServiceTierAdvisors()
ListServiceTierAdvisorsAsync(CancellationToken)
ListUsageMetrics()

Lists the SQL database usage metrics.

ListUsageMetricsAsync(CancellationToken)

Asynchronously lists the SQL database usage metrics.

ListUsages()
Refresh()

Refreshes the resource to sync with Azure.

(Inherited from IRefreshable<T>)
RefreshAsync(CancellationToken)

Refreshes the resource to sync with Azure.

(Inherited from IRefreshable<T>)
Rename(String)

Renames the database.

RenameAsync(String, CancellationToken)

Renames the database asynchronously.

Update() (Inherited from IUpdatable<T>)

Applies to