Skip to main content

event_threat_detection_modules

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

Overview

Nameevent_threat_detection_modules
TypeResource
Idgoogle.securitycenter.event_threat_detection_modules

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringImmutable. 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}.
ancestorModulestringOutput only. The closest ancestor module that this module inherits the enablement state from. The format is the same as the EventThreatDetectionCustomModule resource name.
cloudProviderstringThe cloud provider of the custom module.
configobjectConfig 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.
descriptionstringThe description for the module.
displayNamestringThe human readable name to be displayed for the module.
enablementStatestringThe state of enablement for the module at the given level of the hierarchy.
lastEditorstringOutput only. The editor the module was last updated by.
typestringType for the module. e.g. CONFIGURABLE_BAD_IP.
updateTimestring (google-datetime)Output only. The time the module was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
folders_event_threat_detection_settings_custom_modules_listselectfoldersIdpageToken, pageSizeLists 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_listselectprojectsIdpageToken, pageSizeLists 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_listselectorganizationsIdpageToken, pageSizeLists 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_createinsertfoldersIdCreates 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_createinsertprojectsIdCreates 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_createinsertorganizationsIdCreates 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_deletedeletefoldersId, customModulesIdDeletes 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_deletedeleteprojectsId, customModulesIdDeletes 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_deletedeleteorganizationsId, customModulesIdDeletes 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.

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
customModulesIdstring
foldersIdstring
organizationsIdstring
projectsIdstring
pageSizeinteger (int32)
pageTokenstring

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,
ancestorModule,
cloudProvider,
config,
description,
displayName,
enablementState,
lastEditor,
type,
updateTime
FROM google.securitycenter.event_threat_detection_modules
WHERE foldersId = '{{ foldersId }}' -- required
AND pageToken = '{{ pageToken }}'
AND pageSize = '{{ pageSize }}';

INSERT examples

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.

INSERT INTO google.securitycenter.event_threat_detection_modules (
data__name,
data__config,
data__enablementState,
data__type,
data__displayName,
data__description,
data__cloudProvider,
foldersId
)
SELECT
'{{ name }}',
'{{ config }}',
'{{ enablementState }}',
'{{ type }}',
'{{ displayName }}',
'{{ description }}',
'{{ cloudProvider }}',
'{{ foldersId }}'
RETURNING
name,
ancestorModule,
cloudProvider,
config,
description,
displayName,
enablementState,
lastEditor,
type,
updateTime
;

DELETE examples

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.

DELETE FROM google.securitycenter.event_threat_detection_modules
WHERE foldersId = '{{ foldersId }}' --required
AND customModulesId = '{{ customModulesId }}' --required;