event_threat_detection_modules
Creates, updates, deletes, gets or lists a event_threat_detection_modules
resource.
Overview
Name | event_threat_detection_modules |
Type | Resource |
Id | google.securitycenter.event_threat_detection_modules |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Immutable. The resource name of the Event Threat Detection custom module. Its format is: organizations/{organization}/eventThreatDetectionSettings/customModules/{module} . folders/{folder}/eventThreatDetectionSettings/customModules/{module} . * projects/{project}/eventThreatDetectionSettings/customModules/{module} . |
description | string | The description for the module. |
ancestorModule | string | Output only. The closest ancestor module that this module inherits the enablement state from. The format is the same as the EventThreatDetectionCustomModule resource name. |
config | object | Config for the module. For the resident module, its config value is defined at this level. For the inherited module, its config value is inherited from the ancestor module. |
displayName | string | The human readable name to be displayed for the module. |
enablementState | string | The state of enablement for the module at the given level of the hierarchy. |
lastEditor | string | Output only. The editor the module was last updated by. |
type | string | Type for the module. e.g. CONFIGURABLE_BAD_IP. |
updateTime | string | Output only. The time the module was last updated. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
folders_event_threat_detection_settings_custom_modules_list | SELECT | foldersId | Lists all Event Threat Detection custom modules for the given Resource Manager parent. This includes resident modules defined at the scope of the parent along with modules inherited from ancestors. |
organizations_event_threat_detection_settings_custom_modules_list | SELECT | organizationsId | Lists all Event Threat Detection custom modules for the given Resource Manager parent. This includes resident modules defined at the scope of the parent along with modules inherited from ancestors. |
projects_event_threat_detection_settings_custom_modules_list | SELECT | projectsId | Lists all Event Threat Detection custom modules for the given Resource Manager parent. This includes resident modules defined at the scope of the parent along with modules inherited from ancestors. |
folders_event_threat_detection_settings_custom_modules_create | INSERT | foldersId | Creates a resident Event Threat Detection custom module at the scope of the given Resource Manager parent, and also creates inherited custom modules for all descendants of the given parent. These modules are enabled by default. |
organizations_event_threat_detection_settings_custom_modules_create | INSERT | organizationsId | Creates a resident Event Threat Detection custom module at the scope of the given Resource Manager parent, and also creates inherited custom modules for all descendants of the given parent. These modules are enabled by default. |
projects_event_threat_detection_settings_custom_modules_create | INSERT | projectsId | Creates a resident Event Threat Detection custom module at the scope of the given Resource Manager parent, and also creates inherited custom modules for all descendants of the given parent. These modules are enabled by default. |
folders_event_threat_detection_settings_custom_modules_delete | DELETE | customModulesId, foldersId | Deletes the specified Event Threat Detection custom module and all of its descendants in the Resource Manager hierarchy. This method is only supported for resident custom modules. |
organizations_event_threat_detection_settings_custom_modules_delete | DELETE | customModulesId, organizationsId | Deletes the specified Event Threat Detection custom module and all of its descendants in the Resource Manager hierarchy. This method is only supported for resident custom modules. |
projects_event_threat_detection_settings_custom_modules_delete | DELETE | customModulesId, projectsId | Deletes the specified Event Threat Detection custom module and all of its descendants in the Resource Manager hierarchy. This method is only supported for resident custom modules. |
SELECT
examples
Lists all Event Threat Detection custom modules for the given Resource Manager parent. This includes resident modules defined at the scope of the parent along with modules inherited from ancestors.
SELECT
name,
description,
ancestorModule,
config,
displayName,
enablementState,
lastEditor,
type,
updateTime
FROM google.securitycenter.event_threat_detection_modules
WHERE foldersId = '{{ foldersId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new event_threat_detection_modules
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.securitycenter.event_threat_detection_modules (
foldersId,
name,
config,
enablementState,
type,
displayName,
description
)
SELECT
'{{ foldersId }}',
'{{ name }}',
'{{ config }}',
'{{ enablementState }}',
'{{ type }}',
'{{ displayName }}',
'{{ description }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: config
value: object
- name: ancestorModule
value: string
- name: enablementState
value: string
- name: type
value: string
- name: displayName
value: string
- name: description
value: string
- name: updateTime
value: string
- name: lastEditor
value: string
DELETE
example
Deletes the specified event_threat_detection_modules
resource.
/*+ delete */
DELETE FROM google.securitycenter.event_threat_detection_modules
WHERE customModulesId = '{{ customModulesId }}'
AND foldersId = '{{ foldersId }}';