advanced_threat_protections
Creates, updates, deletes, gets or lists a advanced_threat_protections
resource.
Overview
Name | advanced_threat_protections |
Type | Resource |
Id | azure.security.advanced_threat_protections |
Fields
- vw_advanced_threat_protections
- advanced_threat_protections
Name | Datatype | Description |
---|---|---|
id | text | Resource Id |
name | text | Resource name |
is_enabled | text | field from the properties object |
resourceId | text | field from the properties object |
settingName | text | field from the properties object |
type | text | Resource type |
Name | Datatype | Description |
---|---|---|
id | string | Resource Id |
name | string | Resource name |
properties | object | The Advanced Threat Protection settings. |
type | string | Resource type |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | resourceId, settingName | Gets the Advanced Threat Protection settings for the specified resource. |
create | INSERT | resourceId, settingName | Creates or updates the Advanced Threat Protection settings on a specified resource. |
SELECT
examples
Gets the Advanced Threat Protection settings for the specified resource.
- vw_advanced_threat_protections
- advanced_threat_protections
SELECT
id,
name,
is_enabled,
resourceId,
settingName,
type
FROM azure.security.vw_advanced_threat_protections
WHERE resourceId = '{{ resourceId }}'
AND settingName = '{{ settingName }}';
SELECT
id,
name,
properties,
type
FROM azure.security.advanced_threat_protections
WHERE resourceId = '{{ resourceId }}'
AND settingName = '{{ settingName }}';
INSERT
example
Use the following StackQL query and manifest file to create a new advanced_threat_protections
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.security.advanced_threat_protections (
resourceId,
settingName,
properties
)
SELECT
'{{ resourceId }}',
'{{ settingName }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: properties
value:
- name: isEnabled
value: boolean