你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ArmSqlModelFactory.ManagedDatabaseData 方法

定义

初始化 ManagedDatabaseData 的新实例。

public static Azure.ResourceManager.Sql.ManagedDatabaseData ManagedDatabaseData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.Core.AzureLocation location = default, string collation = default, Azure.ResourceManager.Sql.Models.ManagedDatabaseStatus? status = default, DateTimeOffset? createdOn = default, DateTimeOffset? earliestRestorePoint = default, DateTimeOffset? restorePointInTime = default, Azure.Core.AzureLocation? defaultSecondaryLocation = default, Azure.ResourceManager.Sql.Models.CatalogCollationType? catalogCollation = default, Azure.ResourceManager.Sql.Models.ManagedDatabaseCreateMode? createMode = default, Uri storageContainerUri = default, Azure.Core.ResourceIdentifier sourceDatabaseId = default, Azure.Core.ResourceIdentifier crossSubscriptionSourceDatabaseId = default, Azure.Core.ResourceIdentifier restorableDroppedDatabaseId = default, Azure.Core.ResourceIdentifier crossSubscriptionRestorableDroppedDatabaseId = default, string storageContainerIdentity = default, string storageContainerSasToken = default, Azure.Core.ResourceIdentifier failoverGroupId = default, Azure.Core.ResourceIdentifier recoverableDatabaseId = default, Azure.Core.ResourceIdentifier longTermRetentionBackupResourceId = default, bool? allowAutoCompleteRestore = default, string lastBackupName = default, Azure.Core.ResourceIdentifier crossSubscriptionTargetManagedInstanceId = default, bool? isLedgerOn = default);
static member ManagedDatabaseData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * string * Nullable<Azure.ResourceManager.Sql.Models.ManagedDatabaseStatus> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<Azure.Core.AzureLocation> * Nullable<Azure.ResourceManager.Sql.Models.CatalogCollationType> * Nullable<Azure.ResourceManager.Sql.Models.ManagedDatabaseCreateMode> * Uri * Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * string * string * Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * Nullable<bool> * string * Azure.Core.ResourceIdentifier * Nullable<bool> -> Azure.ResourceManager.Sql.ManagedDatabaseData
Public Shared Function ManagedDatabaseData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional location As AzureLocation = Nothing, Optional collation As String = Nothing, Optional status As Nullable(Of ManagedDatabaseStatus) = Nothing, Optional createdOn As Nullable(Of DateTimeOffset) = Nothing, Optional earliestRestorePoint As Nullable(Of DateTimeOffset) = Nothing, Optional restorePointInTime As Nullable(Of DateTimeOffset) = Nothing, Optional defaultSecondaryLocation As Nullable(Of AzureLocation) = Nothing, Optional catalogCollation As Nullable(Of CatalogCollationType) = Nothing, Optional createMode As Nullable(Of ManagedDatabaseCreateMode) = Nothing, Optional storageContainerUri As Uri = Nothing, Optional sourceDatabaseId As ResourceIdentifier = Nothing, Optional crossSubscriptionSourceDatabaseId As ResourceIdentifier = Nothing, Optional restorableDroppedDatabaseId As ResourceIdentifier = Nothing, Optional crossSubscriptionRestorableDroppedDatabaseId As ResourceIdentifier = Nothing, Optional storageContainerIdentity As String = Nothing, Optional storageContainerSasToken As String = Nothing, Optional failoverGroupId As ResourceIdentifier = Nothing, Optional recoverableDatabaseId As ResourceIdentifier = Nothing, Optional longTermRetentionBackupResourceId As ResourceIdentifier = Nothing, Optional allowAutoCompleteRestore As Nullable(Of Boolean) = Nothing, Optional lastBackupName As String = Nothing, Optional crossSubscriptionTargetManagedInstanceId As ResourceIdentifier = Nothing, Optional isLedgerOn As Nullable(Of Boolean) = Nothing) As ManagedDatabaseData

参数

name
String

名称。

resourceType
ResourceType

resourceType。

systemData
SystemData

systemData。

tags
IDictionary<String,String>

标记。

location
AzureLocation

位置。

collation
String

托管数据库的排序规则。

status
Nullable<ManagedDatabaseStatus>

数据库的状态。

createdOn
Nullable<DateTimeOffset>

数据库的创建日期。

earliestRestorePoint
Nullable<DateTimeOffset>

时间点还原的最早还原时间点。

restorePointInTime
Nullable<DateTimeOffset>

条件。 如果 createMode 为 PointInTimeRestore,则此值是必需的。 指定要还原以创建新数据库的源数据库的时间点 (ISO8601 格式) 。

defaultSecondaryLocation
Nullable<AzureLocation>

地理配对区域。

catalogCollation
Nullable<CatalogCollationType>

元数据目录的排序规则。

createMode
Nullable<ManagedDatabaseCreateMode>

托管数据库创建模式。 PointInTimeRestore:通过还原现有数据库的时间点备份来创建数据库。 必须指定 SourceDatabaseName、SourceManagedInstanceName 和 PointInTime。 RestoreExternalBackup:通过从外部备份文件还原来创建数据库。 必须指定 Collation、StorageContainerUri 和 StorageContainerSasToken。 恢复:通过还原异地复制的备份来创建数据库。 RecoverableDatabaseId 必须指定为要还原的可恢复数据库资源 ID。 RestoreLongTermRetentionBackup:通过从长期保留备份还原 (所需的 longTermRetentionBackupResourceId) 来创建数据库。

storageContainerUri
Uri

条件。 如果 createMode 为 RestoreExternalBackup,则此值是必需的。 指定存储此还原备份的存储容器的 URI。

sourceDatabaseId
ResourceIdentifier

与此数据库的创建操作关联的源数据库的资源标识符。

crossSubscriptionSourceDatabaseId
ResourceIdentifier

与此数据库的创建操作关联的跨订阅源数据库的资源标识符。

restorableDroppedDatabaseId
ResourceIdentifier

创建此数据库时要还原的可还原已删除数据库资源 ID。

crossSubscriptionRestorableDroppedDatabaseId
ResourceIdentifier

创建此数据库时要还原的可还原跨订阅删除的数据库资源 ID。

storageContainerIdentity
String

条件。 如果 createMode 为 RestoreExternalBackup,则使用此值。 指定用于存储容器身份验证的标识。 可以是“SharedAccessSignature”或“ManagedIdentity”;如果未指定,则假定为“SharedAccessSignature”。

storageContainerSasToken
String

条件。 如果 createMode 为 RestoreExternalBackup 且 storageContainerIdentity 不是 ManagedIdentity,则此值是必需的。 指定存储容器 sas 令牌。

failoverGroupId
ResourceIdentifier

此托管数据库所属的实例故障转移组资源标识符。

recoverableDatabaseId
ResourceIdentifier

与此数据库的创建操作关联的可恢复数据库的资源标识符。

longTermRetentionBackupResourceId
ResourceIdentifier

要用于还原此托管数据库的长期保留备份的名称。

allowAutoCompleteRestore
Nullable<Boolean>

是否自动完成此托管数据库的还原。

lastBackupName
String

用于还原此托管数据库的最后一个备份文件名。

crossSubscriptionTargetManagedInstanceId
ResourceIdentifier

跨订阅还原中使用的目标托管实例 ID。

isLedgerOn
Nullable<Boolean>

此数据库是否为账本数据库,这意味着数据库中的所有表都是账本表。 注意:创建数据库后,无法更改此属性的值。

返回

用于模拟的新 ManagedDatabaseData 实例。

适用于