Skip to main content

managed_instance_advanced_threat_protection_settings

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

Overview

Namemanaged_instance_advanced_threat_protection_settings
TypeResource
Idazure.sql.managed_instance_advanced_threat_protection_settings

Fields

NameDatatypeDescription
advancedThreatProtectionNametextfield from the properties object
creation_timetextfield from the properties object
managedInstanceNametextfield from the properties object
resourceGroupNametextfield 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, managedInstanceName, resourceGroupName, subscriptionIdGet a managed instance's Advanced Threat Protection state.
create_or_updateINSERTadvancedThreatProtectionName, managedInstanceName, resourceGroupName, subscriptionIdCreates or updates Advanced Threat Protection settings.

SELECT examples

Get a managed instance's Advanced Threat Protection state.

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

INSERT example

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

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