DatabaseUpdate Class

Definition

A database resource.

[Microsoft.Rest.Serialization.JsonTransformation]
public class DatabaseUpdate : Microsoft.Azure.Management.Sql.Models.TrackedResource
type DatabaseUpdate = class
    inherit TrackedResource
Public Class DatabaseUpdate
Inherits TrackedResource
Inheritance
Attributes

Constructors

DatabaseUpdate()

Initializes a new instance of the DatabaseUpdate class.

DatabaseUpdate(Sku, 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>, Sku, Nullable<Int32>, Nullable<Double>, Nullable<DateTime>, Nullable<DateTime>, IDictionary<String,String>)

Initializes a new instance of the DatabaseUpdate class.

Properties

AutoPauseDelay

Gets or sets time in minutes after which database is automatically paused. A value of -1 means that automatic pause is disabled

CatalogCollation

Gets or sets collation of the metadata catalog. Possible values include: 'DATABASE_DEFAULT', 'SQL_Latin1_General_CP1_CI_AS'

Collation

Gets or sets the collation of the database.

CreateMode

Gets or sets specifies the mode of database creation.

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'

CreationDate

Gets the creation date of the database (ISO8601 format).

CurrentServiceObjectiveName

Gets the current service level objective name of the database.

CurrentSku

Gets the name and tier of the SKU.

DatabaseId

Gets the ID of the database.

DefaultSecondaryLocation

Gets the default secondary region for this database.

EarliestRestoreDate

Gets this records the earliest start date and time that restore is available for this database (ISO8601 format).

Edition

Gets the edition of the database. If createMode is OnlineSecondary, this value is ignored.To see possible values, query the capabilities API (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities) referred to by operationId: "Capabilities_ListByLocation." or use the Azure CLI command az sql db list-editions -l westus --query[].name. Possible values include: 'Web', 'Business', 'Basic', 'Standard', 'Premium', 'PremiumRS', 'Free', 'Stretch', 'DataWarehouse', 'System', 'System2'

ElasticPoolId

Gets or sets the resource identifier of the elastic pool containing this database.

ElasticPoolName

Gets the name of the elastic pool the database is in. If elasticPoolName and requestedServiceObjectiveName are both updated, the value of requestedServiceObjectiveName is ignored. Not supported for DataWarehouse edition.

FailoverGroupId

Gets failover Group resource identifier that this database belongs to.

Id

Gets resource ID.

(Inherited from Resource)
LicenseType

Gets or sets the license type to apply for this database. Possible values include: 'LicenseIncluded', 'BasePrice'

Location

Gets or sets resource location.

(Inherited from TrackedResource)
LongTermRetentionBackupResourceId

Gets or sets the resource identifier of the long term retention backup associated with create operation of this database.

MaxLogSizeBytes

Gets the max log size for this database.

MaxSizeBytes

Gets or sets the max size of the database expressed in bytes.

MinCapacity

Gets or sets minimal capacity that database will always have allocated, if not paused

Name

Gets resource name.

(Inherited from Resource)
PausedDate

Gets the date when database was paused by user configuration or action (ISO8601 format). Null if the database is ready.

ReadReplicaCount

Gets or sets the number of readonly secondary replicas associated with the database to which readonly application intent connections may be routed. This property is only settable for Hyperscale edition databases.

ReadScale

Gets or sets if enabled, connections that have application intent set to readonly in their connection string may be routed to a readonly secondary replica. This property is only settable for Premium and Business Critical databases. Possible values include: 'Enabled', 'Disabled'

RecoverableDatabaseId

Gets or sets the resource identifier of the recoverable database associated with create operation of this database.

RecoveryServicesRecoveryPointId

Gets or sets the resource identifier of the recovery point associated with create operation of this database.

RequestedServiceObjectiveName

Gets the requested service level objective name of the database.

RestorableDroppedDatabaseId

Gets or sets the resource identifier of the restorable dropped database associated with create operation of this database.

RestorePointInTime

Gets or sets specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database.

ResumedDate

Gets the date when database was resumed by user action or database login (ISO8601 format). Null if the database is paused.

SampleName

Gets or sets the name of the sample schema to apply when creating this database. Possible values include: 'AdventureWorksLT', 'WideWorldImportersStd', 'WideWorldImportersFull'

ServiceLevelObjective

Gets the current service level objective of the database.

Sku

Gets or sets the name and tier of the SKU.

SourceDatabaseDeletionDate

Gets or sets specifies the time that the database was deleted.

SourceDatabaseId

Gets or sets the resource identifier of the source database associated with create operation of this database.

Status

Gets the status of the database. Possible values include: 'Online', 'Restoring', 'RecoveryPending', 'Recovering', 'Suspect', 'Offline', 'Standby', 'Shutdown', 'EmergencyMode', 'AutoClosed', 'Copying', 'Creating', 'Inaccessible', 'OfflineSecondary', 'Pausing', 'Paused', 'Resuming', 'Scaling', 'OfflineChangingDwPerformanceTiers', 'OnlineChangingDwPerformanceTiers', 'Disabled'

Tags

Gets or sets resource tags.

Type

Gets resource type.

(Inherited from Resource)
ZoneRedundant

Gets or sets whether or not this database is zone redundant, which means the replicas of this database will be spread across multiple availability zones.

Methods

Validate()

Validate the object.

Applies to