Share via


ManagedDatabase Constructors

Definition

Overloads

ManagedDatabase()

Initializes a new instance of the ManagedDatabase class.

ManagedDatabase(String, String, String, String, IDictionary<String, String>, String, String, Nullable<DateTime>, Nullable<DateTime>, Nullable<DateTime>, String, String, String, String, String, String, String, String, String, String, Nullable<Boolean>, String)

Initializes a new instance of the ManagedDatabase class.

ManagedDatabase()

Initializes a new instance of the ManagedDatabase class.

public ManagedDatabase ();
Public Sub New ()

Applies to

ManagedDatabase(String, String, String, String, IDictionary<String, String>, String, String, Nullable<DateTime>, Nullable<DateTime>, Nullable<DateTime>, String, String, String, String, String, String, String, String, String, String, Nullable<Boolean>, String)

Initializes a new instance of the ManagedDatabase class.

public ManagedDatabase (string location, string id = default, string name = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default, string collation = default, string status = default, DateTime? creationDate = default, DateTime? earliestRestorePoint = default, DateTime? restorePointInTime = default, string defaultSecondaryLocation = default, string catalogCollation = default, string createMode = default, string storageContainerUri = default, string sourceDatabaseId = default, string restorableDroppedDatabaseId = default, string storageContainerSasToken = default, string failoverGroupId = default, string recoverableDatabaseId = default, string longTermRetentionBackupResourceId = default, bool? autoCompleteRestore = default, string lastBackupName = default);
new Microsoft.Azure.Management.Sql.Models.ManagedDatabase : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * string * string * Nullable<DateTime> * Nullable<DateTime> * Nullable<DateTime> * string * string * string * string * string * string * string * string * string * string * Nullable<bool> * string -> Microsoft.Azure.Management.Sql.Models.ManagedDatabase
Public Sub New (location As String, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional collation As String = Nothing, Optional status As String = Nothing, Optional creationDate As Nullable(Of DateTime) = Nothing, Optional earliestRestorePoint As Nullable(Of DateTime) = Nothing, Optional restorePointInTime As Nullable(Of DateTime) = Nothing, Optional defaultSecondaryLocation As String = Nothing, Optional catalogCollation As String = Nothing, Optional createMode As String = Nothing, Optional storageContainerUri As String = Nothing, Optional sourceDatabaseId As String = Nothing, Optional restorableDroppedDatabaseId As String = Nothing, Optional storageContainerSasToken As String = Nothing, Optional failoverGroupId As String = Nothing, Optional recoverableDatabaseId As String = Nothing, Optional longTermRetentionBackupResourceId As String = Nothing, Optional autoCompleteRestore As Nullable(Of Boolean) = Nothing, Optional lastBackupName As String = Nothing)

Parameters

location
String

Resource location.

id
String

Resource ID.

name
String

Resource name.

type
String

Resource type.

tags
IDictionary<String,String>

Resource tags.

collation
String

Collation of the managed database.

status
String

Status of the database. Possible values include: 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible', 'Restoring', 'Updating'

creationDate
Nullable<DateTime>

Creation date of the database.

earliestRestorePoint
Nullable<DateTime>

Earliest restore point in time for point in time restore.

restorePointInTime
Nullable<DateTime>

Conditional. If createMode is PointInTimeRestore, this value is required. Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database.

defaultSecondaryLocation
String

Geo paired region.

catalogCollation
String

Collation of the metadata catalog. Possible values include: 'DATABASE_DEFAULT', 'SQL_Latin1_General_CP1_CI_AS'

createMode
String

Managed database create mode. PointInTimeRestore: Create a database by restoring a point in time backup of an existing database. SourceDatabaseName, SourceManagedInstanceName and PointInTime must be specified. RestoreExternalBackup: Create a database by restoring from external backup files. Collation, StorageContainerUri and StorageContainerSasToken must be specified. Recovery: Creates a database by restoring a geo-replicated backup. RecoverableDatabaseId must be specified as the recoverable database resource ID to restore. RestoreLongTermRetentionBackup: Create a database by restoring from a long term retention backup (longTermRetentionBackupResourceId required). Possible values include: 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery', 'RestoreLongTermRetentionBackup'

storageContainerUri
String

Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the uri of the storage container where backups for this restore are stored.

sourceDatabaseId
String

The resource identifier of the source database associated with create operation of this database.

restorableDroppedDatabaseId
String

The restorable dropped database resource id to restore when creating this database.

storageContainerSasToken
String

Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the storage container sas token.

failoverGroupId
String

Instance Failover Group resource identifier that this managed database belongs to.

recoverableDatabaseId
String

The resource identifier of the recoverable database associated with create operation of this database.

longTermRetentionBackupResourceId
String

The name of the Long Term Retention backup to be used for restore of this managed database.

autoCompleteRestore
Nullable<Boolean>

Whether to auto complete restore of this managed database.

lastBackupName
String

Last backup file name for restore of this managed database.

Applies to