ManagedDatabaseSecurityAlertPolicy Class

A managed database security alert policy.

Variables are only populated by the server, and will be ignored when sending a request.

Inheritance
azure.mgmt.sql.models._models_py3.ProxyResource
ManagedDatabaseSecurityAlertPolicy

Constructor

ManagedDatabaseSecurityAlertPolicy(*, state: str | SecurityAlertPolicyState | None = None, disabled_alerts: List[str] | None = None, email_addresses: List[str] | None = None, email_account_admins: bool | None = None, storage_endpoint: str | None = None, storage_account_access_key: str | None = None, retention_days: int | None = None, **kwargs)

Parameters

Name Description
state
Required

Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific database. Possible values include: "New", "Enabled", "Disabled".

disabled_alerts
Required

Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action, Brute_Force.

email_addresses
Required

Specifies an array of e-mail addresses to which the alert is sent.

email_account_admins
Required

Specifies that the alert is sent to the account administrators.

storage_endpoint
Required
str

Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs.

storage_account_access_key
Required
str

Specifies the identifier key of the Threat Detection audit storage account.

retention_days
Required
int

Specifies the number of days to keep in the Threat Detection audit logs.

Keyword-Only Parameters

Name Description
state
Required
disabled_alerts
Required
email_addresses
Required
email_account_admins
Required
storage_endpoint
Required
storage_account_access_key
Required
retention_days
Required

Variables

Name Description
id
str

Resource ID.

name
str

Resource name.

type
str

Resource type.

creation_time

Specifies the UTC creation time of the policy.