server_threat_protection_settings
Creates, updates, deletes, gets or lists a server_threat_protection_settings resource.
Overview
| Name | server_threat_protection_settings |
| Type | Resource |
| Id | azure.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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
create_or_update | insert | resource_group_name, server_name, threat_protection_name, subscription_id | Creates or updates a server's Advanced Threat Protection settings. | |
create_or_update | replace | resource_group_name, server_name, threat_protection_name, subscription_id | Creates 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.
| Name | Datatype | Description |
|---|---|---|
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
server_name | string | The name of the server. Required. |
subscription_id | string | |
threat_protection_name | string | Name of the advanced threat protection settings. "Default" Required. |
INSERT examples
- create_or_update
- Manifest
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
;
# Description fields are for documentation purposes
- name: server_threat_protection_settings
props:
- name: resource_group_name
value: "{{ resource_group_name }}"
description: Required parameter for the server_threat_protection_settings resource.
- name: server_name
value: "{{ server_name }}"
description: Required parameter for the server_threat_protection_settings resource.
- name: threat_protection_name
value: "{{ threat_protection_name }}"
description: Required parameter for the server_threat_protection_settings resource.
- name: subscription_id
value: "{{ subscription_id }}"
description: Required parameter for the server_threat_protection_settings resource.
- name: properties
description: |
Advanced threat protection properties.
value:
state: "{{ state }}"
creationTime: "{{ creationTime }}"
REPLACE examples
- create_or_update
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;