Compartilhar via


Database Construtores

Definição

Sobrecargas

Database()

Inicializa uma nova instância da classe 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)

Inicializa uma nova instância da classe Database.

Database()

Inicializa uma nova instância da classe Database.

public Database ();
Public Sub New ()

Aplica-se a

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)

Inicializa uma nova instância da classe 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)

Parâmetros

location
String

Local do recurso.

id
String

ID do recurso.

name
String

Nome do recurso.

type
String

Tipo de recurso.

tags
IDictionary<String,String>

Marcas de recurso.

sku
Sku

O SKU do banco de dados.

         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

Tipo de banco de dados. Esses são os metadados usados para a experiência de portal do Azure.

managedBy
String

Recurso que gerencia o banco de dados.

identity
DatabaseIdentity

A identidade do Azure Active Directory do banco de dados.

createMode
String

Especifica o modo de criação do banco de dados.

         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

A ordenação do banco de dados.

maxSizeBytes
Nullable<Int64>

O tamanho máximo do banco de dados expresso em bytes.

sampleName
String

O nome do esquema de exemplo a ser aplicado ao criar esse banco de dados. Os valores possíveis incluem: 'AdventureWorksLT', 'WideWorldImportersStd', 'WideWorldImportersFull'

elasticPoolId
String

O identificador de recurso do pool elástico que contém esse banco de dados.

sourceDatabaseId
String

O identificador de recurso do banco de dados de origem associado à operação de criação desse banco de dados.

status
String

O status do banco de dados. Os valores possíveis incluem: 'Online', 'Restoring', 'RecoveryPending', 'Recovering', 'Suspect', 'Offline', 'Standby', 'Shutdown', 'EmergencyMode', 'AutoClosed', 'Copying', 'Creating', 'Inaccessible', 'OfflineSecondary', 'Pausing', 'Paused', 'Resuming', 'Scaling', 'OfflineChangingDwPerformanceTiers', 'OnlineChangingDwPerformanceTiers', 'Disabled', 'Stop', 'Stopped', 'Starting'

databaseId
Nullable<Guid>

A ID do banco de dados.

creationDate
Nullable<DateTime>

A data de criação do banco de dados (formato ISO8601).

currentServiceObjectiveName
String

O nome do objetivo de nível de serviço atual do banco de dados.

requestedServiceObjectiveName
String

O nome do objetivo de nível de serviço solicitado do banco de dados.

defaultSecondaryLocation
String

A região secundária padrão para esse banco de dados.

failoverGroupId
String

Identificador de recurso do Grupo de Failover ao qual este banco de dados pertence.

restorePointInTime
Nullable<DateTime>

Especifica o ponto no tempo (formato ISO8601) do banco de dados de origem que será restaurado para criar o novo banco de dados.

sourceDatabaseDeletionDate
Nullable<DateTime>

Especifica a hora em que o banco de dados foi excluído.

recoveryServicesRecoveryPointId
String

O identificador de recurso do ponto de recuperação associado à operação de criação desse banco de dados.

longTermRetentionBackupResourceId
String

O identificador de recurso do backup de retenção de longo prazo associado à operação de criação desse banco de dados.

recoverableDatabaseId
String

O identificador de recurso do banco de dados recuperável associado à operação de criação desse banco de dados.

restorableDroppedDatabaseId
String

O identificador de recurso do banco de dados descartado restaurável associado à operação de criação desse banco de dados.

catalogCollation
String

Ordenação do catálogo de metadados. Os valores possíveis incluem: 'DATABASE_DEFAULT', 'SQL_Latin1_General_CP1_CI_AS'

zoneRedundant
Nullable<Boolean>

Se esse banco de dados tem ou não redundância de zona, o que significa que as réplicas desse banco de dados serão distribuídas entre várias zonas de disponibilidade.

licenseType
String

O tipo de licença a ser aplicado a esse banco de dados. LicenseIncludedse você precisar de uma licença ou BasePrice se tiver uma licença e estiver qualificado para o Benefício Híbrido do Azure. Os valores possíveis incluem: 'LicenseIncluded', 'BasePrice'

maxLogSizeBytes
Nullable<Int64>

O tamanho máximo do log para este banco de dados.

earliestRestoreDate
Nullable<DateTime>

Isso registra a data e a hora de início mais antigas em que a restauração está disponível para esse banco de dados (formato ISO8601).

readScale
String

O estado do roteamento somente leitura. Se habilitadas, as conexões que têm a intenção do aplicativo definida como somente leitura na cadeia de conexão podem ser roteadas para um réplica secundário somente leitura na mesma região. Não aplicável a um banco de dados de Hiperescala em um pool elástico. Os valores possíveis incluem: 'Enabled', 'Disabled'

highAvailabilityReplicaCount
Nullable<Int32>

O número de réplicas secundárias associadas ao banco de dados que são usadas para fornecer alta disponibilidade. Não aplicável a um banco de dados de Hiperescala em um pool elástico.

secondaryType
String

O tipo secundário do banco de dados se ele for um secundário. Os valores válidos são Geo e Named. Os valores possíveis incluem: 'Geo', 'Named'

currentSku
Sku

O nome e a camada do SKU.

autoPauseDelay
Nullable<Int32>

Tempo em minutos após o qual o banco de dados é pausado automaticamente. Um valor de -1 significa que a pausa automática está desabilitada

currentBackupStorageRedundancy
String

O tipo de conta de armazenamento usado para armazenar backups para esse banco de dados. Os valores possíveis incluem: 'Geo', 'Local', 'Zone', 'GeoZone'

requestedBackupStorageRedundancy
String

O tipo de conta de armazenamento a ser usado para armazenar backups para esse banco de dados. Os valores possíveis incluem: 'Geo', 'Local', 'Zone', 'GeoZone'

minCapacity
Nullable<Double>

Capacidade mínima que o banco de dados sempre terá alocado, se não estiver em pausa

pausedDate
Nullable<DateTime>

A data em que o banco de dados foi pausado pela configuração ou ação do usuário (formato ISO8601). Nulo se o banco de dados estiver pronto.

resumedDate
Nullable<DateTime>

A data em que o banco de dados foi retomado pela ação do usuário ou pelo logon do banco de dados (formato ISO8601). Nulo se o banco de dados estiver em pausa.

maintenanceConfigurationId
String

ID de configuração de manutenção atribuída ao banco de dados. Essa configuração define o período em que as atualizações de manutenção ocorrerão.

isLedgerOn
Nullable<Boolean>

Se esse banco de dados é ou não um banco de dados do razão, o que significa que todas as tabelas no banco de dados são tabelas do razão. Observação: o valor dessa propriedade não pode ser alterado após a criação do banco de dados.

isInfraEncryptionEnabled
Nullable<Boolean>

A criptografia infra está habilitada para este banco de dados.

federatedClientId
Nullable<Guid>

A ID do cliente usada para o cenário de CMK entre locatários por banco de dados

sourceResourceId
String

O identificador de recurso da origem associada à operação de criação desse banco de dados.

         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

Aplica-se a