server_advanced_threat_protection_settings
Creates, updates, deletes, gets or lists a server_advanced_threat_protection_settings
resource.
Overview
Name | server_advanced_threat_protection_settings |
Type | Resource |
Id | azure.sql.server_advanced_threat_protection_settings |
Fields
The following fields are returned by SELECT
queries:
- get
- list_by_server
Successfully retrieved the server's Advanced Threat Protection state.
Name | Datatype | Description |
---|---|---|
properties | object | Resource properties. |
systemData | object | SystemData of AdvancedThreatProtectionResource. |
Successfully retrieved the list of server's Advanced Threat Protection states.
Name | Datatype | Description |
---|---|---|
properties | object | Resource properties. |
systemData | object | SystemData of AdvancedThreatProtectionResource. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | resourceGroupName , serverName , advancedThreatProtectionName , subscriptionId | Get a server's Advanced Threat Protection state. | |
list_by_server | select | resourceGroupName , serverName , subscriptionId | Get a list of the server's Advanced Threat Protection states. | |
create_or_update | insert | resourceGroupName , serverName , advancedThreatProtectionName , subscriptionId | Creates 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.
Name | Datatype | Description |
---|---|---|
advancedThreatProtectionName | string | The name of the Advanced Threat Protection state. |
resourceGroupName | string | The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. |
serverName | string | The name of the server. |
subscriptionId | string | The subscription ID that identifies an Azure subscription. |
SELECT
examples
- get
- list_by_server
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
;
Get a list of the server's Advanced Threat Protection states.
SELECT
properties,
systemData
FROM azure.sql.server_advanced_threat_protection_settings
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND serverName = '{{ serverName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;
INSERT
examples
- create_or_update
- Manifest
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
;
# Description fields are for documentation purposes
- name: server_advanced_threat_protection_settings
props:
- name: resourceGroupName
value: string
description: Required parameter for the server_advanced_threat_protection_settings resource.
- name: serverName
value: string
description: Required parameter for the server_advanced_threat_protection_settings resource.
- name: advancedThreatProtectionName
value: string
description: Required parameter for the server_advanced_threat_protection_settings resource.
- name: subscriptionId
value: string
description: Required parameter for the server_advanced_threat_protection_settings resource.
- name: properties
value: object
description: |
Resource properties.