Skip to main content

advanced_threat_protection

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

Overview

Nameadvanced_threat_protection
TypeResource
Idazure.security.advanced_threat_protection

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.
isEnabledbooleanIndicates whether Advanced Threat Protection is enabled.
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_idGets the Advanced Threat Protection settings for the specified resource.
createinsertresource_idCreates or updates the Advanced Threat Protection settings on a specified resource.

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_idstringThe fully qualified Azure Resource manager identifier of the resource. Required.

SELECT examples

Gets the Advanced Threat Protection settings for the specified resource.

SELECT
id,
name,
isEnabled,
systemData,
type
FROM azure.security.advanced_threat_protection
WHERE resource_id = '{{ resource_id }}' -- required
;

INSERT examples

Creates or updates the Advanced Threat Protection settings on a specified resource.

INSERT INTO azure.security.advanced_threat_protection (
properties,
resource_id
)
SELECT
'{{ properties }}',
'{{ resource_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;