Skip to main content

advanced_threat_protection_settings

Creates, updates, deletes, gets or lists an advanced_threat_protection_settings resource.

Overview

Nameadvanced_threat_protection_settings
TypeResource
Idazure.postgresql_flexible_servers.advanced_threat_protection_settings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
creationTimestring (date-time)Specifies the creation time (UTC) of the policy.
statestringSpecifies the state of the advanced threat protection, whether it is enabled, disabled, or a state has not been applied yet on the server. Required. Known values are: "Enabled" and "Disabled". (Enabled, Disabled)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, server_name, threat_protection_name, subscription_idGets state of advanced threat protection settings for a server.
list_by_serverselectresource_group_name, server_name, subscription_idLists state of advanced threat protection settings for a server.

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.

SELECT examples

Gets state of advanced threat protection settings for a server.

SELECT
id,
name,
creationTime,
state,
systemData,
type
FROM azure.postgresql_flexible_servers.advanced_threat_protection_settings
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
;