workspace_managed_sql_server_security_alert_policies
Creates, updates, deletes, gets or lists a workspace_managed_sql_server_security_alert_policies
resource.
Overview
Name | workspace_managed_sql_server_security_alert_policies |
Type | Resource |
Id | azure.synapse.workspace_managed_sql_server_security_alert_policies |
Fields
- vw_workspace_managed_sql_server_security_alert_policies
- workspace_managed_sql_server_security_alert_policies
Name | Datatype | Description |
---|---|---|
creation_time | text | field from the properties object |
disabled_alerts | text | field from the properties object |
email_account_admins | text | field from the properties object |
email_addresses | text | field from the properties object |
resourceGroupName | text | field from the properties object |
retention_days | text | field from the properties object |
securityAlertPolicyName | text | field from the properties object |
state | text | field from the properties object |
storage_account_access_key | text | field from the properties object |
storage_endpoint | text | field from the properties object |
subscriptionId | text | field from the properties object |
workspaceName | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Properties of a security alert policy. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | resourceGroupName, securityAlertPolicyName, subscriptionId, workspaceName | Get a workspace managed sql server's security alert policy. |
list | SELECT | resourceGroupName, subscriptionId, workspaceName | Get workspace managed sql server's threat detection policies. |
create_or_update | INSERT | resourceGroupName, securityAlertPolicyName, subscriptionId, workspaceName | Create or Update a workspace managed sql server's threat detection policy. |
SELECT
examples
Get workspace managed sql server's threat detection policies.
- vw_workspace_managed_sql_server_security_alert_policies
- workspace_managed_sql_server_security_alert_policies
SELECT
creation_time,
disabled_alerts,
email_account_admins,
email_addresses,
resourceGroupName,
retention_days,
securityAlertPolicyName,
state,
storage_account_access_key,
storage_endpoint,
subscriptionId,
workspaceName
FROM azure.synapse.vw_workspace_managed_sql_server_security_alert_policies
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';
SELECT
properties
FROM azure.synapse.workspace_managed_sql_server_security_alert_policies
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';
INSERT
example
Use the following StackQL query and manifest file to create a new workspace_managed_sql_server_security_alert_policies
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.synapse.workspace_managed_sql_server_security_alert_policies (
resourceGroupName,
securityAlertPolicyName,
subscriptionId,
workspaceName,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ securityAlertPolicyName }}',
'{{ subscriptionId }}',
'{{ workspaceName }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: state
value: string
- name: disabledAlerts
value:
- string
- name: emailAddresses
value:
- string
- name: emailAccountAdmins
value: boolean
- name: storageEndpoint
value: string
- name: storageAccountAccessKey
value: string
- name: retentionDays
value: integer
- name: creationTime
value: string