DatabaseInner Constructores
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
DatabaseInner()
Inicializa una nueva instancia de la clase DatabaseInner.
public DatabaseInner ();
Public Sub New ()
Se aplica a
DatabaseInner(String, String, String, String, IDictionary<String, String>, String, String, Nullable<DateTime>, Nullable<Int64>, Nullable<Guid>, Nullable<Guid>, Nullable<DateTime>, CreateMode, String, Nullable<DateTime>, Nullable<DateTime>, String, DatabaseEdition, String, Nullable<Guid>, ServiceObjectiveName, ServiceObjectiveName, String, String, String, IList<ServiceTierAdvisorInner>, IList<TransparentDataEncryptionInner>, IList<RecommendedIndex>, String, Nullable<ReadScale>, SampleName, Nullable<Boolean>)
Inicializa una nueva instancia de la clase DatabaseInner.
public DatabaseInner (string location, string id = default, string name = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default, string kind = default, string collation = default, DateTime? creationDate = default, long? containmentState = default, Guid? currentServiceObjectiveId = default, Guid? databaseId = default, DateTime? earliestRestoreDate = default, Microsoft.Azure.Management.Sql.Fluent.Models.CreateMode createMode = default, string sourceDatabaseId = default, DateTime? sourceDatabaseDeletionDate = default, DateTime? restorePointInTime = default, string recoveryServicesRecoveryPointResourceId = default, Microsoft.Azure.Management.Sql.Fluent.Models.DatabaseEdition edition = default, string maxSizeBytes = default, Guid? requestedServiceObjectiveId = default, Microsoft.Azure.Management.Sql.Fluent.Models.ServiceObjectiveName requestedServiceObjectiveName = default, Microsoft.Azure.Management.Sql.Fluent.Models.ServiceObjectiveName serviceLevelObjective = default, string status = default, string elasticPoolName = default, string defaultSecondaryLocation = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Sql.Fluent.Models.ServiceTierAdvisorInner> serviceTierAdvisors = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Sql.Fluent.Models.TransparentDataEncryptionInner> transparentDataEncryption = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Sql.Fluent.Models.RecommendedIndex> recommendedIndex = default, string failoverGroupId = default, Microsoft.Azure.Management.Sql.Fluent.Models.ReadScale? readScale = default, Microsoft.Azure.Management.Sql.Fluent.Models.SampleName sampleName = default, bool? zoneRedundant = default);
new Microsoft.Azure.Management.Sql.Fluent.Models.DatabaseInner : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * string * string * Nullable<DateTime> * Nullable<int64> * Nullable<Guid> * Nullable<Guid> * Nullable<DateTime> * Microsoft.Azure.Management.Sql.Fluent.Models.CreateMode * string * Nullable<DateTime> * Nullable<DateTime> * string * Microsoft.Azure.Management.Sql.Fluent.Models.DatabaseEdition * string * Nullable<Guid> * Microsoft.Azure.Management.Sql.Fluent.Models.ServiceObjectiveName * Microsoft.Azure.Management.Sql.Fluent.Models.ServiceObjectiveName * string * string * string * System.Collections.Generic.IList<Microsoft.Azure.Management.Sql.Fluent.Models.ServiceTierAdvisorInner> * System.Collections.Generic.IList<Microsoft.Azure.Management.Sql.Fluent.Models.TransparentDataEncryptionInner> * System.Collections.Generic.IList<Microsoft.Azure.Management.Sql.Fluent.Models.RecommendedIndex> * string * Nullable<Microsoft.Azure.Management.Sql.Fluent.Models.ReadScale> * Microsoft.Azure.Management.Sql.Fluent.Models.SampleName * Nullable<bool> -> Microsoft.Azure.Management.Sql.Fluent.Models.DatabaseInner
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 kind As String = Nothing, Optional collation As String = Nothing, Optional creationDate As Nullable(Of DateTime) = Nothing, Optional containmentState As Nullable(Of Long) = Nothing, Optional currentServiceObjectiveId As Nullable(Of Guid) = Nothing, Optional databaseId As Nullable(Of Guid) = Nothing, Optional earliestRestoreDate As Nullable(Of DateTime) = Nothing, Optional createMode As CreateMode = Nothing, Optional sourceDatabaseId As String = Nothing, Optional sourceDatabaseDeletionDate As Nullable(Of DateTime) = Nothing, Optional restorePointInTime As Nullable(Of DateTime) = Nothing, Optional recoveryServicesRecoveryPointResourceId As String = Nothing, Optional edition As DatabaseEdition = Nothing, Optional maxSizeBytes As String = Nothing, Optional requestedServiceObjectiveId As Nullable(Of Guid) = Nothing, Optional requestedServiceObjectiveName As ServiceObjectiveName = Nothing, Optional serviceLevelObjective As ServiceObjectiveName = Nothing, Optional status As String = Nothing, Optional elasticPoolName As String = Nothing, Optional defaultSecondaryLocation As String = Nothing, Optional serviceTierAdvisors As IList(Of ServiceTierAdvisorInner) = Nothing, Optional transparentDataEncryption As IList(Of TransparentDataEncryptionInner) = Nothing, Optional recommendedIndex As IList(Of RecommendedIndex) = Nothing, Optional failoverGroupId As String = Nothing, Optional readScale As Nullable(Of ReadScale) = Nothing, Optional sampleName As SampleName = Nothing, Optional zoneRedundant As Nullable(Of Boolean) = Nothing)
Parámetros
- location
- String
Ubicación del recurso
- id
- String
- name
- String
- type
- String
- tags
- IDictionary<String,String>
Etiquetas del recurso.
- kind
- String
Tipo de base de datos. Estos son los metadatos que se usan para la experiencia de Azure Portal.
- collation
- String
Intercalación de la base de datos. Si createMode no es Default, este valor se omite.
Identificador objetivo de nivel de servicio actual de la base de datos. Este es el identificador del objetivo de nivel de servicio que está activo actualmente.
Esto registra la fecha y hora de inicio más tempranas que la restauración está disponible para esta base de datos (formato ISO8601).
- createMode
- CreateMode
Especifica el modo de creación de la base de datos.
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.
OnlineSecondary/NonReadableSecondary: creates a database as a
(readable or nonreadable) 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, NonReadableSecondary, OnlineSecondary and
RestoreLongTermRetentionBackup are not supported for DataWarehouse
edition. Possible values include: 'Copy', 'Default',
'NonReadableSecondary', 'OnlineSecondary', 'PointInTimeRestore',
'Recovery', 'Restore', 'RestoreLongTermRetentionBackup'
- sourceDatabaseId
- String
Condicional. Si createMode es Copy, NonReadableSecondary, OnlineSecondary, PointInTimeRestore, Recovery o Restore, se requiere este valor. Especifica el identificador de recurso de la base de datos de origen. Si createMode es NonReadableSecondary o OnlineSecondary, el nombre de la base de datos de origen debe ser el mismo que la nueva base de datos que se va a crear.
Condicional. Si createMode es Restore y sourceDatabaseId es el identificador de recurso original de la base de datos eliminada cuando existía (en lugar de su identificador de base de datos restaurable actual), se requiere este valor. Especifica la hora en que se eliminó la base de datos.
Condicional. Si createMode es PointInTimeRestore, este valor es necesario. Si createMode es Restore, este valor es opcional. Especifica el momento dado (formato ISO8601) de la base de datos de origen que se restaurará para crear la nueva base de datos. Debe ser mayor o igual que el valor de la base de datos de origentRestoreDate.
- recoveryServicesRecoveryPointResourceId
- String
Condicional. Si createMode es RestoreLongTermRetentionBackup, se requiere este valor. Especifica el identificador de recurso del punto de recuperación desde el que se va a restaurar.
- edition
- DatabaseEdition
Edición de la base de datos. La enumeración DatabaseEditions contiene todas las ediciones válidas. Si createMode es NonReadableSecondary o OnlineSecondary, este valor se omite.
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 <location> -o table
````
```powershell
Get-AzSqlServerServiceObjective -Location <location>
````
. Possible values include: 'Web', 'Business', 'Basic', 'Standard',
'Premium', 'PremiumRS', 'Free', 'Stretch', 'DataWarehouse',
'System', 'System2', 'GeneralPurpose', 'BusinessCritical',
'Hyperscale'
- maxSizeBytes
- String
Tamaño máximo de la base de datos expresada en bytes. Si createMode no es Default, este valor se omite. Para ver los valores posibles, consulte la API de funcionalidades (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities) a la que hace referencia operationId: "Capabilities_ListByLocation".
Identificador de objetivo de nivel de servicio configurado de la base de datos. Este es el objetivo de nivel de servicio que se está aplicando a la base de datos. Una vez que se haya actualizado correctamente, coincidirá con el valor de la propiedad currentServiceObjectiveId. Si requestedServiceObjectiveId y requestedServiceObjectiveName se actualizan, el valor de requestedServiceObjectiveId invalida el valor de requestedServiceObjectiveName.
The list of SKUs may vary by region and support offer. To determine
the service objective ids that are available to your subscription
in an Azure region, use the `Capabilities_ListByLocation` REST
API.
- requestedServiceObjectiveName
- ServiceObjectiveName
Nombre del objetivo de nivel de servicio configurado de la base de datos. Este es el objetivo de nivel de servicio que se está aplicando a la base de datos. Una vez que se haya actualizado correctamente, coincidirá con el valor de la propiedad serviceLevelObjective.
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 <location> -o table
````
```powershell
Get-AzSqlServerServiceObjective -Location <location>
````
. Possible values include: 'System', 'System0', 'System1',
'System2', 'System3', 'System4', 'System2L', 'System3L',
'System4L', 'Free', 'Basic', 'S0', 'S1', 'S2', 'S3', 'S4', 'S6',
'S7', 'S9', 'S12', 'P1', 'P2', 'P3', 'P4', 'P6', 'P11', 'P15',
'PRS1', 'PRS2', 'PRS4', 'PRS6', 'DW100', 'DW200', 'DW300', 'DW400',
'DW500', 'DW600', 'DW1000', 'DW1200', 'DW1000c', 'DW1500',
'DW1500c', 'DW2000', 'DW2000c', 'DW3000', 'DW2500c', 'DW3000c',
'DW6000', 'DW5000c', 'DW6000c', 'DW7500c', 'DW10000c', 'DW15000c',
'DW30000c', 'DS100', 'DS200', 'DS300', 'DS400', 'DS500', 'DS600',
'DS1000', 'DS1200', 'DS1500', 'DS2000', 'ElasticPool'
- serviceLevelObjective
- ServiceObjectiveName
Objetivo de nivel de servicio actual de la base de datos. Entre los valores posibles se incluyen: 'System', 'System0', 'System1', 'System2', 'System3', 'System4', 'System2L', 'System3L', 'System4L', 'Free', 'Basic', 'S0', 'S1', 'S2', 'S3', 'S4', 'S6', 'S7', 'S9', 'S12', 'P1', 'P2', 'P3', 'P4', 'P6', 'P11', 'P15', 'PRS1', 'PRS2', 'PRS4', 'PRS6', 'DW100', 'DW200', 'DW300', 'DW400', 'DW500', 'DW600', 'DW1000', 'DW1200', 'DW1000c', 'DW1500', 'DW1500'0c', 'DW2000', 'DW2000c', 'DW3000', 'DW2500c', 'DW3000c', 'DW6000', 'DW5000c', 'DW6000c', 'DW7500c', 'DW10000c', 'DW15000c', 'DW30000c', 'DS100', 'DS200', 'DS300', 'DS400', 'DS500', 'DS600', 'DS1000', 'DS1200', 'DS1500', 'DS2000', 'ElasticPool'
- status
- String
Estado de la base de datos.
- elasticPoolName
- String
Nombre del grupo elástico en el que se encuentra la base de datos. Si elasticPoolName y requestedServiceObjectiveName se actualizan, se omite el valor de requestedServiceObjectiveName. No se admite para la edición DataWarehouse.
- defaultSecondaryLocation
- String
Región secundaria predeterminada para esta base de datos.
- serviceTierAdvisors
- IList<ServiceTierAdvisorInner>
Lista de asesores de nivel de servicio para esta base de datos. Propiedad expandida
- transparentDataEncryption
- IList<TransparentDataEncryptionInner>
Información de cifrado de datos transparente para esta base de datos.
- recommendedIndex
- IList<RecommendedIndex>
Índices recomendados para esta base de datos.
- failoverGroupId
- String
Identificador de recurso del grupo de conmutación por error que contiene esta base de datos.
Condicional. Si la base de datos es una base de datos secundaria geográfica, readScale indica si se permiten conexiones de solo lectura a esta base de datos o no. No se admite para la edición DataWarehouse. Entre los valores posibles se incluyen: "Enabled", "Disabled"
- sampleName
- SampleName
Indica el nombre del esquema de ejemplo que se va a aplicar al crear esta base de datos. Si createMode no es Default, este valor se omite. No se admite para la edición DataWarehouse. Entre los valores posibles se incluyen: "AdventureWorksLT"
Si esta base de datos tiene redundancia de zona, lo que significa que las réplicas de esta base de datos se distribuirán entre varias zonas de disponibilidad.
Se aplica a
Azure SDK for .NET
Comentarios
https://aka.ms/ContentUserFeedback.
Próximamente: A lo largo de 2024 iremos eliminando gradualmente GitHub Issues como mecanismo de comentarios sobre el contenido y lo sustituiremos por un nuevo sistema de comentarios. Para más información, vea:Enviar y ver comentarios de