Skip to main content

sql_pool_security_alert_policies

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

Overview

Namesql_pool_security_alert_policies
TypeResource
Idazure.synapse.sql_pool_security_alert_policies

Fields

NameDatatypeDescription
creation_timetextfield from the properties object
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
sqlPoolNametextfield 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
workspaceNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, securityAlertPolicyName, sqlPoolName, subscriptionId, workspaceNameGet a Sql pool's security alert policy.
listSELECTresourceGroupName, sqlPoolName, subscriptionId, workspaceNameGet a list of Sql pool's security alert policies.
create_or_updateINSERTresourceGroupName, securityAlertPolicyName, sqlPoolName, subscriptionId, workspaceNameCreate or update a Sql pool's security alert policy.

SELECT examples

Get a list of Sql pool's security alert policies.

SELECT
creation_time,
disabled_alerts,
email_account_admins,
email_addresses,
resourceGroupName,
retention_days,
securityAlertPolicyName,
sqlPoolName,
state,
storage_account_access_key,
storage_endpoint,
subscriptionId,
workspaceName
FROM azure.synapse.vw_sql_pool_security_alert_policies
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND sqlPoolName = '{{ sqlPoolName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';

INSERT example

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

/*+ create */
INSERT INTO azure.synapse.sql_pool_security_alert_policies (
resourceGroupName,
securityAlertPolicyName,
sqlPoolName,
subscriptionId,
workspaceName,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ securityAlertPolicyName }}',
'{{ sqlPoolName }}',
'{{ subscriptionId }}',
'{{ workspaceName }}',
'{{ properties }}'
;