Skip to main content

server_advanced_threat_protection_settings

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

Overview

Nameserver_advanced_threat_protection_settings
TypeResource
Idazure.sql.server_advanced_threat_protection_settings

Fields

NameDatatypeDescription
advancedThreatProtectionNametextfield from the properties object
creation_timetextfield from the properties object
resourceGroupNametextfield from the properties object
serverNametextfield from the properties object
statetextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTadvancedThreatProtectionName, resourceGroupName, serverName, subscriptionIdGet a server's Advanced Threat Protection state.
list_by_serverSELECTresourceGroupName, serverName, subscriptionIdGet a list of the server's Advanced Threat Protection states.
create_or_updateINSERTadvancedThreatProtectionName, resourceGroupName, serverName, subscriptionIdCreates or updates an Advanced Threat Protection state.

SELECT examples

Get a list of the server's Advanced Threat Protection states.

SELECT
advancedThreatProtectionName,
creation_time,
resourceGroupName,
serverName,
state,
subscriptionId,
system_data
FROM azure.sql.vw_server_advanced_threat_protection_settings
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.sql.server_advanced_threat_protection_settings (
advancedThreatProtectionName,
resourceGroupName,
serverName,
subscriptionId,
properties
)
SELECT
'{{ advancedThreatProtectionName }}',
'{{ resourceGroupName }}',
'{{ serverName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;