Database
Manages a MS SQL Database.
Create a Database Resource
new Database(name: string, args: DatabaseArgs, opts?: CustomResourceOptions);def Database(resource_name, opts=None, auto_pause_delay_in_minutes=None, collation=None, create_mode=None, creation_source_database_id=None, elastic_pool_id=None, extended_auditing_policy=None, license_type=None, max_size_gb=None, min_capacity=None, name=None, read_replica_count=None, read_scale=None, restore_point_in_time=None, sample_name=None, server_id=None, sku_name=None, tags=None, threat_detection_policy=None, zone_redundant=None, __props__=None);func NewDatabase(ctx *Context, name string, args DatabaseArgs, opts ...ResourceOption) (*Database, error)public Database(string name, DatabaseArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args DatabaseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DatabaseArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DatabaseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Database Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Database resource accepts the following input properties:
- Server
Id string The id of the Ms SQL Server on which to create the database. Changing this forces a new resource to be created.
- Auto
Pause intDelay In Minutes Time in minutes after which database is automatically paused. A value of
-1means that automatic pause is disabled. This property is only settable for General Purpose Serverless databases.- Collation string
Specifies the collation of the database. Changing this forces a new resource to be created.
- Create
Mode string The create mode of the database. Possible values are
Copy,Default,OnlineSecondary,PointInTimeRestore,Restore,RestoreExternalBackup,RestoreExternalBackupSecondary,RestoreLongTermRetentionBackupandSecondary.- Creation
Source stringDatabase Id The id of the source database to be referred to create the new database. This should only be used for databases with
create_modevalues that use another database as reference. Changing this forces a new resource to be created.- Elastic
Pool stringId Specifies the ID of the elastic pool containing this database. Changing this forces a new resource to be created.
- Extended
Auditing DatabasePolicy Extended Auditing Policy Args A
extended_auditing_policyblock as defined below.- License
Type string Specifies the license type applied to this database. Possible values are
LicenseIncludedandBasePrice.- Max
Size intGb The max size of the database in gigabytes.
- Min
Capacity double Minimal capacity that database will always have allocated, if not paused. This property is only settable for General Purpose Serverless databases.
- Name string
The name of the Ms SQL Database. Changing this forces a new resource to be created.
- Read
Replica intCount 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.
- Read
Scale bool 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.
- Restore
Point stringIn Time 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=PointInTimeRestoredatabases.- Sample
Name string Specifies the name of the sample schema to apply when creating this database. Possible value is
AdventureWorksLT.- Sku
Name string 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.- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Threat
Detection DatabasePolicy Threat Detection Policy Args Threat detection policy configuration. The
threat_detection_policyblock supports fields documented below.- Zone
Redundant bool 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.
- Server
Id string The id of the Ms SQL Server on which to create the database. Changing this forces a new resource to be created.
- Auto
Pause intDelay In Minutes Time in minutes after which database is automatically paused. A value of
-1means that automatic pause is disabled. This property is only settable for General Purpose Serverless databases.- Collation string
Specifies the collation of the database. Changing this forces a new resource to be created.
- Create
Mode string The create mode of the database. Possible values are
Copy,Default,OnlineSecondary,PointInTimeRestore,Restore,RestoreExternalBackup,RestoreExternalBackupSecondary,RestoreLongTermRetentionBackupandSecondary.- Creation
Source stringDatabase Id The id of the source database to be referred to create the new database. This should only be used for databases with
create_modevalues that use another database as reference. Changing this forces a new resource to be created.- Elastic
Pool stringId Specifies the ID of the elastic pool containing this database. Changing this forces a new resource to be created.
- Extended
Auditing DatabasePolicy Extended Auditing Policy A
extended_auditing_policyblock as defined below.- License
Type string Specifies the license type applied to this database. Possible values are
LicenseIncludedandBasePrice.- Max
Size intGb The max size of the database in gigabytes.
- Min
Capacity float64 Minimal capacity that database will always have allocated, if not paused. This property is only settable for General Purpose Serverless databases.
- Name string
The name of the Ms SQL Database. Changing this forces a new resource to be created.
- Read
Replica intCount 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.
- Read
Scale bool 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.
- Restore
Point stringIn Time 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=PointInTimeRestoredatabases.- Sample
Name string Specifies the name of the sample schema to apply when creating this database. Possible value is
AdventureWorksLT.- Sku
Name string 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.- map[string]string
A mapping of tags to assign to the resource.
- Threat
Detection DatabasePolicy Threat Detection Policy Threat detection policy configuration. The
threat_detection_policyblock supports fields documented below.- Zone
Redundant bool 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.
- server
Id string The id of the Ms SQL Server on which to create the database. Changing this forces a new resource to be created.
- auto
Pause numberDelay In Minutes Time in minutes after which database is automatically paused. A value of
-1means that automatic pause is disabled. This property is only settable for General Purpose Serverless databases.- collation string
Specifies the collation of the database. Changing this forces a new resource to be created.
- create
Mode string The create mode of the database. Possible values are
Copy,Default,OnlineSecondary,PointInTimeRestore,Restore,RestoreExternalBackup,RestoreExternalBackupSecondary,RestoreLongTermRetentionBackupandSecondary.- creation
Source stringDatabase Id The id of the source database to be referred to create the new database. This should only be used for databases with
create_modevalues that use another database as reference. Changing this forces a new resource to be created.- elastic
Pool stringId Specifies the ID of the elastic pool containing this database. Changing this forces a new resource to be created.
- extended
Auditing DatabasePolicy Extended Auditing Policy A
extended_auditing_policyblock as defined below.- license
Type string Specifies the license type applied to this database. Possible values are
LicenseIncludedandBasePrice.- max
Size numberGb The max size of the database in gigabytes.
- min
Capacity number Minimal capacity that database will always have allocated, if not paused. This property is only settable for General Purpose Serverless databases.
- name string
The name of the Ms SQL Database. Changing this forces a new resource to be created.
- read
Replica numberCount 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.
- read
Scale boolean 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.
- restore
Point stringIn Time 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=PointInTimeRestoredatabases.- sample
Name string Specifies the name of the sample schema to apply when creating this database. Possible value is
AdventureWorksLT.- sku
Name string 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.- {[key: string]: string}
A mapping of tags to assign to the resource.
- threat
Detection DatabasePolicy Threat Detection Policy Threat detection policy configuration. The
threat_detection_policyblock supports fields documented below.- zone
Redundant boolean 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.
- server_
id str The id of the Ms SQL Server on which to create the database. Changing this forces a new resource to be created.
- auto_
pause_ floatdelay_ in_ minutes Time in minutes after which database is automatically paused. A value of
-1means that automatic pause is disabled. This property is only settable for General Purpose Serverless databases.- collation str
Specifies the collation of the database. Changing this forces a new resource to be created.
- create_
mode str The create mode of the database. Possible values are
Copy,Default,OnlineSecondary,PointInTimeRestore,Restore,RestoreExternalBackup,RestoreExternalBackupSecondary,RestoreLongTermRetentionBackupandSecondary.- creation_
source_ strdatabase_ id The id of the source database to be referred to create the new database. This should only be used for databases with
create_modevalues that use another database as reference. Changing this forces a new resource to be created.- elastic_
pool_ strid Specifies the ID of the elastic pool containing this database. Changing this forces a new resource to be created.
- extended_
auditing_ Dict[Databasepolicy Extended Auditing Policy] A
extended_auditing_policyblock as defined below.- license_
type str Specifies the license type applied to this database. Possible values are
LicenseIncludedandBasePrice.- max_
size_ floatgb The max size of the database in gigabytes.
- min_
capacity float Minimal capacity that database will always have allocated, if not paused. This property is only settable for General Purpose Serverless databases.
- name str
The name of the Ms SQL Database. Changing this forces a new resource to be created.
- read_
replica_ floatcount 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.
- read_
scale bool 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.
- restore_
point_ strin_ time 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=PointInTimeRestoredatabases.- sample_
name str Specifies the name of the sample schema to apply when creating this database. Possible value is
AdventureWorksLT.- sku_
name str 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.- Dict[str, str]
A mapping of tags to assign to the resource.
- threat_
detection_ Dict[Databasepolicy Threat Detection Policy] Threat detection policy configuration. The
threat_detection_policyblock supports fields documented below.- zone_
redundant bool 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the Database resource produces the following output properties:
Look up an Existing Database Resource
Get an existing Database resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DatabaseState, opts?: CustomResourceOptions): Databasestatic get(resource_name, id, opts=None, auto_pause_delay_in_minutes=None, collation=None, create_mode=None, creation_source_database_id=None, elastic_pool_id=None, extended_auditing_policy=None, license_type=None, max_size_gb=None, min_capacity=None, name=None, read_replica_count=None, read_scale=None, restore_point_in_time=None, sample_name=None, server_id=None, sku_name=None, tags=None, threat_detection_policy=None, zone_redundant=None, __props__=None);func GetDatabase(ctx *Context, name string, id IDInput, state *DatabaseState, opts ...ResourceOption) (*Database, error)public static Database Get(string name, Input<string> id, DatabaseState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Auto
Pause intDelay In Minutes Time in minutes after which database is automatically paused. A value of
-1means that automatic pause is disabled. This property is only settable for General Purpose Serverless databases.- Collation string
Specifies the collation of the database. Changing this forces a new resource to be created.
- Create
Mode string The create mode of the database. Possible values are
Copy,Default,OnlineSecondary,PointInTimeRestore,Restore,RestoreExternalBackup,RestoreExternalBackupSecondary,RestoreLongTermRetentionBackupandSecondary.- Creation
Source stringDatabase Id The id of the source database to be referred to create the new database. This should only be used for databases with
create_modevalues that use another database as reference. Changing this forces a new resource to be created.- Elastic
Pool stringId Specifies the ID of the elastic pool containing this database. Changing this forces a new resource to be created.
- Extended
Auditing DatabasePolicy Extended Auditing Policy Args A
extended_auditing_policyblock as defined below.- License
Type string Specifies the license type applied to this database. Possible values are
LicenseIncludedandBasePrice.- Max
Size intGb The max size of the database in gigabytes.
- Min
Capacity double Minimal capacity that database will always have allocated, if not paused. This property is only settable for General Purpose Serverless databases.
- Name string
The name of the Ms SQL Database. Changing this forces a new resource to be created.
- Read
Replica intCount 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.
- Read
Scale bool 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.
- Restore
Point stringIn Time 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=PointInTimeRestoredatabases.- Sample
Name string Specifies the name of the sample schema to apply when creating this database. Possible value is
AdventureWorksLT.- Server
Id string The id of the Ms SQL Server on which to create the database. Changing this forces a new resource to be created.
- Sku
Name string 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.- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Threat
Detection DatabasePolicy Threat Detection Policy Args Threat detection policy configuration. The
threat_detection_policyblock supports fields documented below.- Zone
Redundant bool 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.
- Auto
Pause intDelay In Minutes Time in minutes after which database is automatically paused. A value of
-1means that automatic pause is disabled. This property is only settable for General Purpose Serverless databases.- Collation string
Specifies the collation of the database. Changing this forces a new resource to be created.
- Create
Mode string The create mode of the database. Possible values are
Copy,Default,OnlineSecondary,PointInTimeRestore,Restore,RestoreExternalBackup,RestoreExternalBackupSecondary,RestoreLongTermRetentionBackupandSecondary.- Creation
Source stringDatabase Id The id of the source database to be referred to create the new database. This should only be used for databases with
create_modevalues that use another database as reference. Changing this forces a new resource to be created.- Elastic
Pool stringId Specifies the ID of the elastic pool containing this database. Changing this forces a new resource to be created.
- Extended
Auditing DatabasePolicy Extended Auditing Policy A
extended_auditing_policyblock as defined below.- License
Type string Specifies the license type applied to this database. Possible values are
LicenseIncludedandBasePrice.- Max
Size intGb The max size of the database in gigabytes.
- Min
Capacity float64 Minimal capacity that database will always have allocated, if not paused. This property is only settable for General Purpose Serverless databases.
- Name string
The name of the Ms SQL Database. Changing this forces a new resource to be created.
- Read
Replica intCount 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.
- Read
Scale bool 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.
- Restore
Point stringIn Time 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=PointInTimeRestoredatabases.- Sample
Name string Specifies the name of the sample schema to apply when creating this database. Possible value is
AdventureWorksLT.- Server
Id string The id of the Ms SQL Server on which to create the database. Changing this forces a new resource to be created.
- Sku
Name string 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.- map[string]string
A mapping of tags to assign to the resource.
- Threat
Detection DatabasePolicy Threat Detection Policy Threat detection policy configuration. The
threat_detection_policyblock supports fields documented below.- Zone
Redundant bool 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.
- auto
Pause numberDelay In Minutes Time in minutes after which database is automatically paused. A value of
-1means that automatic pause is disabled. This property is only settable for General Purpose Serverless databases.- collation string
Specifies the collation of the database. Changing this forces a new resource to be created.
- create
Mode string The create mode of the database. Possible values are
Copy,Default,OnlineSecondary,PointInTimeRestore,Restore,RestoreExternalBackup,RestoreExternalBackupSecondary,RestoreLongTermRetentionBackupandSecondary.- creation
Source stringDatabase Id The id of the source database to be referred to create the new database. This should only be used for databases with
create_modevalues that use another database as reference. Changing this forces a new resource to be created.- elastic
Pool stringId Specifies the ID of the elastic pool containing this database. Changing this forces a new resource to be created.
- extended
Auditing DatabasePolicy Extended Auditing Policy A
extended_auditing_policyblock as defined below.- license
Type string Specifies the license type applied to this database. Possible values are
LicenseIncludedandBasePrice.- max
Size numberGb The max size of the database in gigabytes.
- min
Capacity number Minimal capacity that database will always have allocated, if not paused. This property is only settable for General Purpose Serverless databases.
- name string
The name of the Ms SQL Database. Changing this forces a new resource to be created.
- read
Replica numberCount 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.
- read
Scale boolean 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.
- restore
Point stringIn Time 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=PointInTimeRestoredatabases.- sample
Name string Specifies the name of the sample schema to apply when creating this database. Possible value is
AdventureWorksLT.- server
Id string The id of the Ms SQL Server on which to create the database. Changing this forces a new resource to be created.
- sku
Name string 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.- {[key: string]: string}
A mapping of tags to assign to the resource.
- threat
Detection DatabasePolicy Threat Detection Policy Threat detection policy configuration. The
threat_detection_policyblock supports fields documented below.- zone
Redundant boolean 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.
- auto_
pause_ floatdelay_ in_ minutes Time in minutes after which database is automatically paused. A value of
-1means that automatic pause is disabled. This property is only settable for General Purpose Serverless databases.- collation str
Specifies the collation of the database. Changing this forces a new resource to be created.
- create_
mode str The create mode of the database. Possible values are
Copy,Default,OnlineSecondary,PointInTimeRestore,Restore,RestoreExternalBackup,RestoreExternalBackupSecondary,RestoreLongTermRetentionBackupandSecondary.- creation_
source_ strdatabase_ id The id of the source database to be referred to create the new database. This should only be used for databases with
create_modevalues that use another database as reference. Changing this forces a new resource to be created.- elastic_
pool_ strid Specifies the ID of the elastic pool containing this database. Changing this forces a new resource to be created.
- extended_
auditing_ Dict[Databasepolicy Extended Auditing Policy] A
extended_auditing_policyblock as defined below.- license_
type str Specifies the license type applied to this database. Possible values are
LicenseIncludedandBasePrice.- max_
size_ floatgb The max size of the database in gigabytes.
- min_
capacity float Minimal capacity that database will always have allocated, if not paused. This property is only settable for General Purpose Serverless databases.
- name str
The name of the Ms SQL Database. Changing this forces a new resource to be created.
- read_
replica_ floatcount 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.
- read_
scale bool 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.
- restore_
point_ strin_ time 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=PointInTimeRestoredatabases.- sample_
name str Specifies the name of the sample schema to apply when creating this database. Possible value is
AdventureWorksLT.- server_
id str The id of the Ms SQL Server on which to create the database. Changing this forces a new resource to be created.
- sku_
name str 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.- Dict[str, str]
A mapping of tags to assign to the resource.
- threat_
detection_ Dict[Databasepolicy Threat Detection Policy] Threat detection policy configuration. The
threat_detection_policyblock supports fields documented below.- zone_
redundant bool 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.
Supporting Types
DatabaseExtendedAuditingPolicy
- Storage
Account stringAccess Key Specifies the access key to use for the auditing storage account.
- Storage
Endpoint string Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net).
- Retention
In intDays Specifies the number of days to retain logs for in the storage account.
- Storage
Account boolAccess Key Is Secondary Specifies whether
storage_account_access_keyvalue is the storage’s secondary key.
- Storage
Account stringAccess Key Specifies the access key to use for the auditing storage account.
- Storage
Endpoint string Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net).
- Retention
In intDays Specifies the number of days to retain logs for in the storage account.
- Storage
Account boolAccess Key Is Secondary Specifies whether
storage_account_access_keyvalue is the storage’s secondary key.
- storage
Account stringAccess Key Specifies the access key to use for the auditing storage account.
- storage
Endpoint string Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net).
- retention
In numberDays Specifies the number of days to retain logs for in the storage account.
- storage
Account booleanAccess Key Is Secondary Specifies whether
storage_account_access_keyvalue is the storage’s secondary key.
- storage_
account_ straccess_ key Specifies the access key to use for the auditing storage account.
- storage_
endpoint str Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net).
- retention_
in_ floatdays Specifies the number of days to retain logs for in the storage account.
- storage
Account boolAccess Key Is Secondary Specifies whether
storage_account_access_keyvalue is the storage’s secondary key.
DatabaseThreatDetectionPolicy
- Disabled
Alerts List<string> Specifies a list of alerts which should be disabled. Possible values include
Access_Anomaly,Sql_InjectionandSql_Injection_Vulnerability.- Email
Account stringAdmins Should the account administrators be emailed when this alert is triggered?
- Email
Addresses List<string> A list of email addresses which alerts should be sent to.
- Retention
Days int Specifies the number of days to keep in the Threat Detection audit logs.
- State string
The State of the Policy. Possible values are
Enabled,DisabledorNew.- Storage
Account stringAccess Key Specifies the identifier key of the Threat Detection audit storage account. Required if
stateisEnabled.- Storage
Endpoint string Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. Required if
stateisEnabled.- Use
Server stringDefault Should the default server policy be used? Defaults to
Disabled.
- Disabled
Alerts []string Specifies a list of alerts which should be disabled. Possible values include
Access_Anomaly,Sql_InjectionandSql_Injection_Vulnerability.- Email
Account stringAdmins Should the account administrators be emailed when this alert is triggered?
- Email
Addresses []string A list of email addresses which alerts should be sent to.
- Retention
Days int Specifies the number of days to keep in the Threat Detection audit logs.
- State string
The State of the Policy. Possible values are
Enabled,DisabledorNew.- Storage
Account stringAccess Key Specifies the identifier key of the Threat Detection audit storage account. Required if
stateisEnabled.- Storage
Endpoint string Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. Required if
stateisEnabled.- Use
Server stringDefault Should the default server policy be used? Defaults to
Disabled.
- disabled
Alerts string[] Specifies a list of alerts which should be disabled. Possible values include
Access_Anomaly,Sql_InjectionandSql_Injection_Vulnerability.- email
Account stringAdmins Should the account administrators be emailed when this alert is triggered?
- email
Addresses string[] A list of email addresses which alerts should be sent to.
- retention
Days number Specifies the number of days to keep in the Threat Detection audit logs.
- state string
The State of the Policy. Possible values are
Enabled,DisabledorNew.- storage
Account stringAccess Key Specifies the identifier key of the Threat Detection audit storage account. Required if
stateisEnabled.- storage
Endpoint string Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. Required if
stateisEnabled.- use
Server stringDefault Should the default server policy be used? Defaults to
Disabled.
- disabled_
alerts List[str] Specifies a list of alerts which should be disabled. Possible values include
Access_Anomaly,Sql_InjectionandSql_Injection_Vulnerability.- email_
account_ stradmins Should the account administrators be emailed when this alert is triggered?
- email_
addresses List[str] A list of email addresses which alerts should be sent to.
- retention_
days float Specifies the number of days to keep in the Threat Detection audit logs.
- state str
The State of the Policy. Possible values are
Enabled,DisabledorNew.- storage_
account_ straccess_ key Specifies the identifier key of the Threat Detection audit storage account. Required if
stateisEnabled.- storage_
endpoint str Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. Required if
stateisEnabled.- use
Server strDefault Should the default server policy be used? Defaults to
Disabled.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.