ManagedDatabase interface

受控資料庫資源。

Extends

屬性

autoCompleteRestore

是否要自動完成此受控資料庫的還原。

catalogCollation

元資料目錄的定序。

collation

受控資料庫的定序。

createMode

受控資料庫建立模式。 PointInTimeRestore:藉由還原現有資料庫的時間點備份來建立資料庫。 必須指定SourceDatabaseName、SourceManagedInstanceName和PointInTime。 RestoreExternalBackup:從外部備份文件還原來建立資料庫。 必須指定 Collation、StorageContainerUri 和 StorageContainerSasToken。 復原:藉由還原異地復寫備份來建立資料庫。 RecoverableDatabaseId 必須指定為要還原的可復原資料庫資源標識符。 RestoreLongTermRetentionBackup:從長期保留備份還原來建立資料庫(需要 longTermRetentionBackupResourceId)。

creationDate

資料庫的建立日期。

crossSubscriptionRestorableDroppedDatabaseId

建立此資料庫時,可還原的跨訂用帳戶卸除資料庫資源標識符。

crossSubscriptionSourceDatabaseId

與此資料庫建立作業相關聯的跨訂用帳戶源資料庫資源標識符。

crossSubscriptionTargetManagedInstanceId

目標受控實例標識碼用於跨訂用帳戶還原。

defaultSecondaryLocation

地理配對區域。

earliestRestorePoint

最早的還原時間點進行時間點還原。

extendedAccessibilityInfo

對於處於「不可存取」狀態的資料庫,提供額外的可觀察性與故障排除資訊。

failoverGroupId

此受控資料庫所屬的實例故障轉移群組資源標識符。

isLedgerOn

這個資料庫是否為總賬資料庫,這表示資料庫中的所有數據表都是總賬數據表。 注意:建立資料庫之後,就無法變更此屬性的值。

lastBackupName

還原此受控資料庫的上次備份檔名。

longTermRetentionBackupResourceId

要用於還原此受控資料庫之長期保留備份的名稱。

recoverableDatabaseId

與此資料庫建立作業相關聯的可復原資料庫資源標識符。

restorableDroppedDatabaseId

建立此資料庫時要還原的可還原卸除資料庫資源標識符。

restorePointInTime

有條件的。 如果 createMode 是 PointInTimeRestore,則需要此值。 指定要還原以建立新資料庫的源資料庫的時間點(ISO8601格式)。

sourceDatabaseId

與這個資料庫建立作業相關聯的源資料庫資源標識符。

status

資料庫的狀態。

storageContainerIdentity

有條件的。 如果 createMode 為 RestoreExternalBackup,則會使用此值。 指定用於記憶體容器驗證的身分識別。 可以是 'SharedAccessSignature' 或 'ManagedIdentity';如果未指定 'SharedAccessSignature',則會假設為 。

storageContainerSasToken

有條件的。 如果 createMode 為 RestoreExternalBackup 且 storageContainerIdentity 不是 ManagedIdentity,則需要此值。 指定記憶體容器 sas 令牌。

storageContainerUri

有條件的。 如果 createMode 為 RestoreExternalBackup,則需要此值。 指定儲存此還原備份之記憶體容器的 URI。

繼承的屬性

id

資源的完整資源標識碼。 範例 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

location

資源所在的地理位置

name

資源的名稱

systemData

包含 createdBy 和 modifiedBy 資訊的 Azure Resource Manager 元數據。

tags

資源標籤。

type

資源的類型。 例如:「Microsoft.Compute/virtualMachines」或「Microsoft.Storage/storageAccounts」

屬性詳細資料

autoCompleteRestore

是否要自動完成此受控資料庫的還原。

autoCompleteRestore?: boolean

屬性值

boolean

catalogCollation

元資料目錄的定序。

catalogCollation?: string

屬性值

string

collation

受控資料庫的定序。

collation?: string

屬性值

string

createMode

受控資料庫建立模式。 PointInTimeRestore:藉由還原現有資料庫的時間點備份來建立資料庫。 必須指定SourceDatabaseName、SourceManagedInstanceName和PointInTime。 RestoreExternalBackup:從外部備份文件還原來建立資料庫。 必須指定 Collation、StorageContainerUri 和 StorageContainerSasToken。 復原:藉由還原異地復寫備份來建立資料庫。 RecoverableDatabaseId 必須指定為要還原的可復原資料庫資源標識符。 RestoreLongTermRetentionBackup:從長期保留備份還原來建立資料庫(需要 longTermRetentionBackupResourceId)。

createMode?: string

屬性值

string

creationDate

資料庫的建立日期。

creationDate?: Date

屬性值

Date

crossSubscriptionRestorableDroppedDatabaseId

建立此資料庫時,可還原的跨訂用帳戶卸除資料庫資源標識符。

crossSubscriptionRestorableDroppedDatabaseId?: string

屬性值

string

crossSubscriptionSourceDatabaseId

與此資料庫建立作業相關聯的跨訂用帳戶源資料庫資源標識符。

crossSubscriptionSourceDatabaseId?: string

屬性值

string

crossSubscriptionTargetManagedInstanceId

目標受控實例標識碼用於跨訂用帳戶還原。

crossSubscriptionTargetManagedInstanceId?: string

屬性值

string

defaultSecondaryLocation

地理配對區域。

defaultSecondaryLocation?: string

屬性值

string

earliestRestorePoint

最早的還原時間點進行時間點還原。

earliestRestorePoint?: Date

屬性值

Date

extendedAccessibilityInfo

對於處於「不可存取」狀態的資料庫,提供額外的可觀察性與故障排除資訊。

extendedAccessibilityInfo?: ManagedDatabaseExtendedAccessibilityInfo

屬性值

failoverGroupId

此受控資料庫所屬的實例故障轉移群組資源標識符。

failoverGroupId?: string

屬性值

string

isLedgerOn

這個資料庫是否為總賬資料庫,這表示資料庫中的所有數據表都是總賬數據表。 注意:建立資料庫之後,就無法變更此屬性的值。

isLedgerOn?: boolean

屬性值

boolean

lastBackupName

還原此受控資料庫的上次備份檔名。

lastBackupName?: string

屬性值

string

longTermRetentionBackupResourceId

要用於還原此受控資料庫之長期保留備份的名稱。

longTermRetentionBackupResourceId?: string

屬性值

string

recoverableDatabaseId

與此資料庫建立作業相關聯的可復原資料庫資源標識符。

recoverableDatabaseId?: string

屬性值

string

restorableDroppedDatabaseId

建立此資料庫時要還原的可還原卸除資料庫資源標識符。

restorableDroppedDatabaseId?: string

屬性值

string

restorePointInTime

有條件的。 如果 createMode 是 PointInTimeRestore,則需要此值。 指定要還原以建立新資料庫的源資料庫的時間點(ISO8601格式)。

restorePointInTime?: Date

屬性值

Date

sourceDatabaseId

與這個資料庫建立作業相關聯的源資料庫資源標識符。

sourceDatabaseId?: string

屬性值

string

status

資料庫的狀態。

status?: string

屬性值

string

storageContainerIdentity

有條件的。 如果 createMode 為 RestoreExternalBackup,則會使用此值。 指定用於記憶體容器驗證的身分識別。 可以是 'SharedAccessSignature' 或 'ManagedIdentity';如果未指定 'SharedAccessSignature',則會假設為 。

storageContainerIdentity?: string

屬性值

string

storageContainerSasToken

有條件的。 如果 createMode 為 RestoreExternalBackup 且 storageContainerIdentity 不是 ManagedIdentity,則需要此值。 指定記憶體容器 sas 令牌。

storageContainerSasToken?: string

屬性值

string

storageContainerUri

有條件的。 如果 createMode 為 RestoreExternalBackup,則需要此值。 指定儲存此還原備份之記憶體容器的 URI。

storageContainerUri?: string

屬性值

string

繼承的屬性詳細資料

id

資源的完整資源標識碼。 範例 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

id?: string

屬性值

string

繼承自TrackedResource.id

location

資源所在的地理位置

location: string

屬性值

string

繼承自TrackedResource.location

name

資源的名稱

name?: string

屬性值

string

繼承自TrackedResource.name

systemData

包含 createdBy 和 modifiedBy 資訊的 Azure Resource Manager 元數據。

systemData?: SystemData

屬性值

繼承自TrackedResource.systemData

tags

資源標籤。

tags?: Record<string, string>

屬性值

Record<string, string>

繼承自TrackedResource.tags

type

資源的類型。 例如:「Microsoft.Compute/virtualMachines」或「Microsoft.Storage/storageAccounts」

type?: string

屬性值

string

繼承自TrackedResource.type