Skip to main content

server_threat_protection_settings

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

Overview

Nameserver_threat_protection_settings
TypeResource
Idazure.postgresql_flexible_servers.server_threat_protection_settings

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
create_or_updateinsertresource_group_name, server_name, threat_protection_name, subscription_idCreates or updates a server's Advanced Threat Protection settings.
create_or_updatereplaceresource_group_name, server_name, threat_protection_name, subscription_idCreates or updates a server's Advanced Threat Protection settings.

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
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
server_namestringThe name of the server. Required.
subscription_idstring
threat_protection_namestringName of the advanced threat protection settings. "Default" Required.

INSERT examples

Creates or updates a server's Advanced Threat Protection settings.

INSERT INTO azure.postgresql_flexible_servers.server_threat_protection_settings (
properties,
resource_group_name,
server_name,
threat_protection_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ server_name }}',
'{{ threat_protection_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

REPLACE examples

Creates or updates a server's Advanced Threat Protection settings.

REPLACE azure.postgresql_flexible_servers.server_threat_protection_settings
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND server_name = '{{ server_name }}' --required
AND threat_protection_name = '{{ threat_protection_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;