次の方法で共有


Database コンストラクター

定義

オーバーロード

Database()

Database クラスの新しいインスタンスを初期化します。

Database(String, String, String, String, IDictionary<String,String>, Sku, String, String, DatabaseIdentity, String, String, Nullable<Int64>, String, String, String, String, Nullable<Guid>, Nullable<DateTime>, String, String, String, String, Nullable<DateTime>, Nullable<DateTime>, String, String, String, String, String, Nullable<Boolean>, String, Nullable<Int64>, Nullable<DateTime>, String, Nullable<Int32>, String, Sku, Nullable<Int32>, String, String, Nullable<Double>, Nullable<DateTime>, Nullable<DateTime>, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Guid>, String)

Database クラスの新しいインスタンスを初期化します。

Database()

Database クラスの新しいインスタンスを初期化します。

public Database();
Public Sub New ()

適用対象

Database(String, String, String, String, IDictionary<String,String>, Sku, String, String, DatabaseIdentity, String, String, Nullable<Int64>, String, String, String, String, Nullable<Guid>, Nullable<DateTime>, String, String, String, String, Nullable<DateTime>, Nullable<DateTime>, String, String, String, String, String, Nullable<Boolean>, String, Nullable<Int64>, Nullable<DateTime>, String, Nullable<Int32>, String, Sku, Nullable<Int32>, String, String, Nullable<Double>, Nullable<DateTime>, Nullable<DateTime>, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Guid>, String)

Database クラスの新しいインスタンスを初期化します。

public Database(string location, string id = default, string name = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default, Microsoft.Azure.Management.Sql.Models.Sku sku = default, string kind = default, string managedBy = default, Microsoft.Azure.Management.Sql.Models.DatabaseIdentity identity = default, string createMode = default, string collation = default, long? maxSizeBytes = default, string sampleName = default, string elasticPoolId = default, string sourceDatabaseId = default, string status = default, Guid? databaseId = default, DateTime? creationDate = default, string currentServiceObjectiveName = default, string requestedServiceObjectiveName = default, string defaultSecondaryLocation = default, string failoverGroupId = default, DateTime? restorePointInTime = default, DateTime? sourceDatabaseDeletionDate = default, string recoveryServicesRecoveryPointId = default, string longTermRetentionBackupResourceId = default, string recoverableDatabaseId = default, string restorableDroppedDatabaseId = default, string catalogCollation = default, bool? zoneRedundant = default, string licenseType = default, long? maxLogSizeBytes = default, DateTime? earliestRestoreDate = default, string readScale = default, int? highAvailabilityReplicaCount = default, string secondaryType = default, Microsoft.Azure.Management.Sql.Models.Sku currentSku = default, int? autoPauseDelay = default, string currentBackupStorageRedundancy = default, string requestedBackupStorageRedundancy = default, double? minCapacity = default, DateTime? pausedDate = default, DateTime? resumedDate = default, string maintenanceConfigurationId = default, bool? isLedgerOn = default, bool? isInfraEncryptionEnabled = default, Guid? federatedClientId = default, string sourceResourceId = default);
new Microsoft.Azure.Management.Sql.Models.Database : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * Microsoft.Azure.Management.Sql.Models.Sku * string * string * Microsoft.Azure.Management.Sql.Models.DatabaseIdentity * string * string * Nullable<int64> * string * string * string * string * Nullable<Guid> * Nullable<DateTime> * string * string * string * string * Nullable<DateTime> * Nullable<DateTime> * string * string * string * string * string * Nullable<bool> * string * Nullable<int64> * Nullable<DateTime> * string * Nullable<int> * string * Microsoft.Azure.Management.Sql.Models.Sku * Nullable<int> * string * string * Nullable<double> * Nullable<DateTime> * Nullable<DateTime> * string * Nullable<bool> * Nullable<bool> * Nullable<Guid> * string -> Microsoft.Azure.Management.Sql.Models.Database
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 sku As Sku = Nothing, Optional kind As String = Nothing, Optional managedBy As String = Nothing, Optional identity As DatabaseIdentity = Nothing, Optional createMode As String = Nothing, Optional collation As String = Nothing, Optional maxSizeBytes As Nullable(Of Long) = Nothing, Optional sampleName As String = Nothing, Optional elasticPoolId As String = Nothing, Optional sourceDatabaseId As String = Nothing, Optional status As String = Nothing, Optional databaseId As Nullable(Of Guid) = Nothing, Optional creationDate As Nullable(Of DateTime) = Nothing, Optional currentServiceObjectiveName As String = Nothing, Optional requestedServiceObjectiveName As String = Nothing, Optional defaultSecondaryLocation As String = Nothing, Optional failoverGroupId As String = Nothing, Optional restorePointInTime As Nullable(Of DateTime) = Nothing, Optional sourceDatabaseDeletionDate As Nullable(Of DateTime) = Nothing, Optional recoveryServicesRecoveryPointId As String = Nothing, Optional longTermRetentionBackupResourceId As String = Nothing, Optional recoverableDatabaseId As String = Nothing, Optional restorableDroppedDatabaseId As String = Nothing, Optional catalogCollation As String = Nothing, Optional zoneRedundant As Nullable(Of Boolean) = Nothing, Optional licenseType As String = Nothing, Optional maxLogSizeBytes As Nullable(Of Long) = Nothing, Optional earliestRestoreDate As Nullable(Of DateTime) = Nothing, Optional readScale As String = Nothing, Optional highAvailabilityReplicaCount As Nullable(Of Integer) = Nothing, Optional secondaryType As String = Nothing, Optional currentSku As Sku = Nothing, Optional autoPauseDelay As Nullable(Of Integer) = Nothing, Optional currentBackupStorageRedundancy As String = Nothing, Optional requestedBackupStorageRedundancy As String = Nothing, Optional minCapacity As Nullable(Of Double) = Nothing, Optional pausedDate As Nullable(Of DateTime) = Nothing, Optional resumedDate As Nullable(Of DateTime) = Nothing, Optional maintenanceConfigurationId As String = Nothing, Optional isLedgerOn As Nullable(Of Boolean) = Nothing, Optional isInfraEncryptionEnabled As Nullable(Of Boolean) = Nothing, Optional federatedClientId As Nullable(Of Guid) = Nothing, Optional sourceResourceId As String = Nothing)

パラメーター

location
String

リソースの場所。

id
String

リソースの ID

name
String

リソース名。

type
String

リソースの種類。

tags
IDictionary<String,String>

リソース タグ。

sku
Sku

データベース SKU。

         The list of SKUs may vary by region and support offer. To determine
         the SKUs (including the SKU name, tier/edition, family, and
         capacity) that are available to your subscription in an Azure
         region, use the `Capabilities_ListByLocation` REST API or one of
         the following commands:

         ```azurecli
         az sql db list-editions -l &lt;location&gt; -o table
         ````

         ```powershell
         Get-AzSqlServerServiceObjective -Location &lt;location&gt;
         ````
kind
String

データベースの種類。 これは、Azure portal エクスペリエンスに使用されるメタデータです。

managedBy
String

データベースを管理するリソース。

identity
DatabaseIdentity

データベースの Azure Active Directory ID。

createMode
String

データベースの作成モードを指定します。

         Default: regular database creation.

         Copy: creates a database as a copy of an existing database.
         sourceDatabaseId must be specified as the resource ID of the source
         database.

         Secondary: creates a database as a secondary replica of an existing
         database. sourceDatabaseId must be specified as the resource ID of
         the existing primary database.

         PointInTimeRestore: Creates a database by restoring a point in time
         backup of an existing database. sourceDatabaseId must be specified
         as the resource ID of the existing database, and restorePointInTime
         must be specified.

         Recovery: Creates a database by restoring a geo-replicated backup.
         sourceDatabaseId must be specified as the recoverable database
         resource ID to restore.

         Restore: Creates a database by restoring a backup of a deleted
         database. sourceDatabaseId must be specified. If sourceDatabaseId
         is the database's original resource ID, then
         sourceDatabaseDeletionDate must be specified. Otherwise
         sourceDatabaseId must be the restorable dropped database resource
         ID and sourceDatabaseDeletionDate is ignored. restorePointInTime
         may also be specified to restore from an earlier point in time.

         RestoreLongTermRetentionBackup: Creates a database by restoring
         from a long term retention vault.
         recoveryServicesRecoveryPointResourceId must be specified as the
         recovery point resource ID.

         Copy, Secondary, and RestoreLongTermRetentionBackup are not
         supported for DataWarehouse edition. Possible values include:
         'Default', 'Copy', 'Secondary', 'PointInTimeRestore', 'Restore',
         'Recovery', 'RestoreExternalBackup',
         'RestoreExternalBackupSecondary', 'RestoreLongTermRetentionBackup',
         'OnlineSecondary'
collation
String

データベースの照合順序。

maxSizeBytes
Nullable<Int64>

データベースの最大サイズ (バイト単位)。

sampleName
String

このデータベースの作成時に適用するサンプル スキーマの名前。 使用できる値は、'AdventureWorksLT'、'WideWorldImportersStd'、'WideWorldImportersFull' です。

elasticPoolId
String

このデータベースを含むエラスティック プールのリソース識別子。

sourceDatabaseId
String

このデータベースの作成操作に関連付けられているソース データベースのリソース識別子。

status
String

データベースの状態。 使用できる値は、'Online'、'Restoring'、'RecoveryPending'、'Recovery'、'Suspect'、'Offline'、 'Standby'、'Shutdown'、'EmergencyMode'、'AutoClosed'、'Copying'、'Creating'、'Inaccessible'、'OfflineSecondary'、'Pausesing'、'Paused'、'Resuming'、'Scaling'、'OfflineChangingDwPerformanceTiers'、'OnlineChangingDwPerformanceTiers'、'Disabled'、'Stopping'、'Stopped'、'Starting'

databaseId
Nullable<Guid>

データベースの ID です。

creationDate
Nullable<DateTime>

データベースの作成日 (ISO8601 形式)。

currentServiceObjectiveName
String

データベースの現在のサービス レベル目標名。

requestedServiceObjectiveName
String

データベースの要求されたサービス レベルの目標名。

defaultSecondaryLocation
String

このデータベースの既定のセカンダリ リージョン。

failoverGroupId
String

このデータベースが属しているフェールオーバー グループ リソース識別子。

restorePointInTime
Nullable<DateTime>

新しいデータベースを作成するために復元されるソース データベースの時点 (ISO8601 形式) を指定します。

sourceDatabaseDeletionDate
Nullable<DateTime>

データベースが削除された時刻を指定します。

recoveryServicesRecoveryPointId
String

このデータベースの作成操作に関連付けられている復旧ポイントのリソース識別子。

longTermRetentionBackupResourceId
String

このデータベースの作成操作に関連付けられている長期保有バックアップのリソース識別子。

recoverableDatabaseId
String

このデータベースの作成操作に関連付けられている回復可能なデータベースのリソース識別子。

restorableDroppedDatabaseId
String

このデータベースの作成操作に関連付けられている復元可能な削除されたデータベースのリソース識別子。

catalogCollation
String

メタデータ カタログの照合順序。 使用できる値は、'DATABASE_DEFAULT'、'SQL_Latin1_General_CP1_CI_AS' です。

zoneRedundant
Nullable<Boolean>

このデータベースがゾーン冗長かどうか。つまり、このデータベースのレプリカは複数の可用性ゾーンに分散されます。

licenseType
String

このデータベースに適用するライセンスの種類。 LicenseIncludedライセンスが必要な場合、またはBasePriceライセンスを持っていて、Azure ハイブリッド特典の対象である場合は 。 使用できる値は、'LicenseIncluded'、'BasePrice' です。

maxLogSizeBytes
Nullable<Int64>

このデータベースの最大ログ サイズ。

earliestRestoreDate
Nullable<DateTime>

これにより、このデータベースで復元できる最も早い開始日と時刻が記録されます (ISO8601 形式)。

readScale
String

読み取り専用ルーティングの状態。 有効にした場合、アプリケーションの意図が接続文字列で読み取り専用に設定されている接続は、同じリージョン内の読み取り専用セカンダリ レプリカにルーティングされる可能性があります。 エラスティック プール内の Hyperscale データベースには適用されません。 使用可能な値は次のとおりです: 'Enabled'、'Disabled'

highAvailabilityReplicaCount
Nullable<Int32>

高可用性を提供するために使用されるデータベースに関連付けられているセカンダリ レプリカの数。 エラスティック プール内の Hyperscale データベースには適用されません。

secondaryType
String

データベースがセカンダリの場合は、セカンダリ の種類。 有効な値は Geo と Named です。 使用可能な値は次のとおりです: 'Geo'、'Named'

currentSku
Sku

SKU の名前と階層。

autoPauseDelay
Nullable<Int32>

データベースが自動的に一時停止されるまでの時間 (分)。 値 -1 は、自動一時停止が無効になっていることを意味します

currentBackupStorageRedundancy
String

このデータベースのバックアップを格納するために使用されるストレージ アカウントの種類。 使用できる値は、'Geo'、'Local'、'Zone'、'GeoZone' です。

requestedBackupStorageRedundancy
String

このデータベースのバックアップを格納するために使用するストレージ アカウントの種類。 使用できる値は、'Geo'、'Local'、'Zone'、'GeoZone' です。

minCapacity
Nullable<Double>

一時停止されていない場合、データベースが常に割り当てる最小容量

pausedDate
Nullable<DateTime>

ユーザー構成またはアクション (ISO8601 形式) によってデータベースが一時停止された日付。 データベースの準備ができている場合は Null。

resumedDate
Nullable<DateTime>

ユーザー アクションまたはデータベース ログインによってデータベースが再開された日付 (ISO8601 形式)。 データベースが一時停止されている場合は Null。

maintenanceConfigurationId
String

データベースに割り当てられたメンテナンス構成 ID。 この構成では、メンテナンス更新が発生する期間を定義します。

isLedgerOn
Nullable<Boolean>

このデータベースが台帳データベースであるかどうかは、データベース内のすべてのテーブルが台帳テーブルであることを意味します。 注: このプロパティの値は、データベースが作成された後は変更できません。

isInfraEncryptionEnabled
Nullable<Boolean>

このデータベースでは、インフラストラクチャ暗号化が有効になっています。

federatedClientId
Nullable<Guid>

データベースごとのテナント間 CMK シナリオに使用されるクライアント ID

sourceResourceId
String

このデータベースの作成操作に関連付けられているソースのリソース識別子。

         When sourceResourceId is specified, sourceDatabaseId,
         recoverableDatabaseId, restorableDroppedDatabaseId and
         sourceDatabaseDeletionDate must not be specified and CreateMode
         must be PointInTimeRestore, Restore or Recover.

         When createMode is PointInTimeRestore, sourceResourceId must be the
         resource ID of an existing database or existing sql pool, and
         restorePointInTime must be specified.

         When createMode is Restore, sourceResourceId must be the resource
         ID of restorable dropped database or restorable dropped sql pool.

         When createMode is Recover, sourceResourceId must be the resource
         ID of recoverable database or recoverable sql pool.

         This property allows to restore across subscriptions which is only
         supported for DataWarehouse edition.

         When source subscription belongs to a different tenant than target
         subscription, “x-ms-authorization-auxiliary” header must contain
         authentication token for the source tenant. For more details about
         “x-ms-authorization-auxiliary” header see
         https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/authenticate-multi-tenant

適用対象