defender_for_storages
Creates, updates, deletes, gets or lists a defender_for_storages
resource.
Overview
Name | defender_for_storages |
Type | Resource |
Id | azure.security.defender_for_storages |
Fields
- vw_defender_for_storages
- defender_for_storages
Name | Datatype | Description |
---|---|---|
id | text | Resource Id |
name | text | Resource name |
is_enabled | text | field from the properties object |
malware_scanning | text | field from the properties object |
override_subscription_level_settings | text | field from the properties object |
resourceId | text | field from the properties object |
sensitive_data_discovery | 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 | Defender for Storage resource properties. |
type | string | Resource type |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | resourceId, settingName | Gets the Defender for Storage settings for the specified storage account. |
create | INSERT | resourceId, settingName | Creates or updates the Defender for Storage settings on a specified storage account. |
SELECT
examples
Gets the Defender for Storage settings for the specified storage account.
- vw_defender_for_storages
- defender_for_storages
SELECT
id,
name,
is_enabled,
malware_scanning,
override_subscription_level_settings,
resourceId,
sensitive_data_discovery,
settingName,
type
FROM azure.security.vw_defender_for_storages
WHERE resourceId = '{{ resourceId }}'
AND settingName = '{{ settingName }}';
SELECT
id,
name,
properties,
type
FROM azure.security.defender_for_storages
WHERE resourceId = '{{ resourceId }}'
AND settingName = '{{ settingName }}';
INSERT
example
Use the following StackQL query and manifest file to create a new defender_for_storages
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.security.defender_for_storages (
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
- name: malwareScanning
value:
- name: onUpload
value:
- name: isEnabled
value: boolean
- name: capGBPerMonth
value: integer
- name: scanResultsEventGridTopicResourceId
value: string
- name: operationStatus
value:
- name: code
value: string
- name: message
value: string
- name: sensitiveDataDiscovery
value:
- name: isEnabled
value: boolean
- name: overrideSubscriptionLevelSettings
value: boolean