Skip to main content

server_security_alert_policies

Creates, updates, deletes, gets or lists a server_security_alert_policies resource.

Overview

Nameserver_security_alert_policies
TypeResource
Idazure.maria_db.server_security_alert_policies

Fields

NameDatatypeDescription
disabled_alertstextfield from the properties object
email_account_adminstextfield from the properties object
email_addressestextfield from the properties object
resourceGroupNametextfield from the properties object
retention_daystextfield from the properties object
securityAlertPolicyNametextfield from the properties object
serverNametextfield from the properties object
statetextfield from the properties object
storage_account_access_keytextfield from the properties object
storage_endpointtextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, securityAlertPolicyName, serverName, subscriptionIdGet a server's security alert policy.
list_by_serverSELECTresourceGroupName, serverName, subscriptionIdGet the server's threat detection policies.
create_or_updateINSERTresourceGroupName, securityAlertPolicyName, serverName, subscriptionIdCreates or updates a threat detection policy.

SELECT examples

Get the server's threat detection policies.

SELECT
disabled_alerts,
email_account_admins,
email_addresses,
resourceGroupName,
retention_days,
securityAlertPolicyName,
serverName,
state,
storage_account_access_key,
storage_endpoint,
subscriptionId
FROM azure.maria_db.vw_server_security_alert_policies
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new server_security_alert_policies resource.

/*+ create */
INSERT INTO azure.maria_db.server_security_alert_policies (
resourceGroupName,
securityAlertPolicyName,
serverName,
subscriptionId,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ securityAlertPolicyName }}',
'{{ serverName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;