ServerSecurityAlertPolicy Class

A server security alert policy.

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

Inheritance
azure.mgmt.rdbms.postgresql.models._models_py3.ProxyResource
ServerSecurityAlertPolicy

Constructor

ServerSecurityAlertPolicy(*, state: typing.Union[str, _ForwardRef('ServerSecurityAlertPolicyState'), NoneType] = None, disabled_alerts: typing.Union[typing.List[str], NoneType] = None, email_addresses: typing.Union[typing.List[str], NoneType] = None, email_account_admins: typing.Union[bool, NoneType] = None, storage_endpoint: typing.Union[str, NoneType] = None, storage_account_access_key: typing.Union[str, NoneType] = None, retention_days: typing.Union[int, NoneType] = None, **kwargs)

Parameters

state
str or ServerSecurityAlertPolicyState
Required

Specifies the state of the policy, whether it is enabled or disabled. Possible values include: "Enabled", "Disabled".

disabled_alerts
list[str]
Required

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

email_addresses
list[str]
Required

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

email_account_admins
bool
Required

Specifies that the alert is sent to the account administrators.

storage_endpoint
str
Required

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
str
Required

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

retention_days
int
Required

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

Variables

id
str

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.

name
str

The name of the resource.

type
str

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".