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

The following fields are returned by SELECT queries:

Successfully retrieved the server's Advanced Threat Protection state.

NameDatatypeDescription
propertiesobjectResource properties.
systemDataobjectSystemData of AdvancedThreatProtectionResource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, serverName, advancedThreatProtectionName, 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_updateinsertresourceGroupName, serverName, advancedThreatProtectionName, subscriptionIdCreates or updates an Advanced Threat Protection state.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
advancedThreatProtectionNamestringThe name of the Advanced Threat Protection state.
resourceGroupNamestringThe name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
serverNamestringThe name of the server.
subscriptionIdstringThe subscription ID that identifies an Azure subscription.

SELECT examples

Get a server's Advanced Threat Protection state.

SELECT
properties,
systemData
FROM azure.sql.server_advanced_threat_protection_settings
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND serverName = '{{ serverName }}' -- required
AND advancedThreatProtectionName = '{{ advancedThreatProtectionName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Creates or updates an Advanced Threat Protection state.

INSERT INTO azure.sql.server_advanced_threat_protection_settings (
data__properties,
resourceGroupName,
serverName,
advancedThreatProtectionName,
subscriptionId
)
SELECT
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ serverName }}',
'{{ advancedThreatProtectionName }}',
'{{ subscriptionId }}'
RETURNING
properties,
systemData
;