Class DatabaseState
Inherited Members
Namespace: Pulumi.Azure.MSSql
Assembly: Pulumi.Azure.dll
Syntax
public sealed class DatabaseState : ResourceArgs
Constructors
View SourceDatabaseState()
Declaration
public DatabaseState()
Properties
View SourceAutoPauseDelayInMinutes
Time in minutes after which database is automatically paused. A value of -1 means that automatic pause is disabled. This property is only settable for General Purpose Serverless databases.
Declaration
public Input<int> AutoPauseDelayInMinutes { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
Collation
Specifies the collation of the database. Changing this forces a new resource to be created.
Declaration
public Input<string> Collation { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
CreateMode
The create mode of the database. Possible values are Copy, Default, OnlineSecondary, PointInTimeRestore, Restore, RestoreExternalBackup, RestoreExternalBackupSecondary, RestoreLongTermRetentionBackup and Secondary.
Declaration
public Input<string> CreateMode { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
CreationSourceDatabaseId
The id of the source database to be referred to create the new database. This should only be used for databases with create_mode values that use another database as reference. Changing this forces a new resource to be created.
Declaration
public Input<string> CreationSourceDatabaseId { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
ElasticPoolId
Specifies the ID of the elastic pool containing this database. Changing this forces a new resource to be created.
Declaration
public Input<string> ElasticPoolId { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
ExtendedAuditingPolicy
A extended_auditing_policy block as defined below.
Declaration
public Input<DatabaseExtendedAuditingPolicyGetArgs> ExtendedAuditingPolicy { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<DatabaseExtendedAuditingPolicyGetArgs> |
LicenseType
Specifies the license type applied to this database. Possible values are LicenseIncluded and BasePrice.
Declaration
public Input<string> LicenseType { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
MaxSizeGb
The max size of the database in gigabytes.
Declaration
public Input<int> MaxSizeGb { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
MinCapacity
Minimal capacity that database will always have allocated, if not paused. This property is only settable for General Purpose Serverless databases.
Declaration
public Input<double> MinCapacity { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Double> |
Name
The name of the Ms SQL Database. Changing this forces a new resource to be created.
Declaration
public Input<string> Name { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
ReadReplicaCount
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.
Declaration
public Input<int> ReadReplicaCount { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
ReadScale
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.
Declaration
public Input<bool> ReadScale { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
RestorePointInTime
Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. This property is only settable for create_mode= PointInTimeRestore databases.
Declaration
public Input<string> RestorePointInTime { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
SampleName
Specifies the name of the sample schema to apply when creating this database. Possible value is AdventureWorksLT.
Declaration
public Input<string> SampleName { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
ServerId
The id of the Ms SQL Server on which to create the database. Changing this forces a new resource to be created.
Declaration
public Input<string> ServerId { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
SkuName
Specifies the name of the sku used by the database. Changing this forces a new resource to be created. For example, GP_S_Gen5_2,HS_Gen4_1,BC_Gen5_2, ElasticPool, Basic,S0, P2 ,DW100c, DS100.
Declaration
public Input<string> SkuName { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Tags
A mapping of tags to assign to the resource.
Declaration
public InputMap<string> Tags { get; set; }
Property Value
| Type | Description |
|---|---|
| InputMap<System.String> |
ThreatDetectionPolicy
Threat detection policy configuration. The threat_detection_policy block supports fields documented below.
Declaration
public Input<DatabaseThreatDetectionPolicyGetArgs> ThreatDetectionPolicy { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<DatabaseThreatDetectionPolicyGetArgs> |
ZoneRedundant
Whether or not this database is zone redundant, which means the replicas of this database will be spread across multiple availability zones. This property is only settable for Premium and Business Critical databases.
Declaration
public Input<bool> ZoneRedundant { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |