advanced_threat_protection
Creates, updates, deletes, gets or lists an advanced_threat_protection resource.
Overview
| Name | advanced_threat_protection |
| Type | Resource |
| Id | azure.security.advanced_threat_protection |
Fields
The following fields are returned by SELECT queries:
- get
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
isEnabled | boolean | Indicates whether Advanced Threat Protection is enabled. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | resource_id | Gets the Advanced Threat Protection settings for the specified resource. | |
create | insert | resource_id | Creates 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.
| Name | Datatype | Description |
|---|---|---|
resource_id | string | The fully qualified Azure Resource manager identifier of the resource. Required. |
SELECT examples
- get
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
- create
- Manifest
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
;
# Description fields are for documentation purposes
- name: advanced_threat_protection
props:
- name: resource_id
value: "{{ resource_id }}"
description: Required parameter for the advanced_threat_protection resource.
- name: properties
description: |
The Advanced Threat Protection settings.
value:
isEnabled: {{ isEnabled }}