Skip to main content

custom_modules

Creates, updates, deletes, gets or lists a custom_modules resource.

Overview

Namecustom_modules
TypeResource
Idgoogle.securitycenter.custom_modules

Fields

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}.
descriptionstringThe description for the 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.
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.
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.
updateTimestringOutput only. The time the module was last updated.

Methods

NameAccessible byRequired ParamsDescription
folders_event_threat_detection_settings_custom_modules_getSELECTcustomModulesId, foldersIdGets an Event Threat Detection custom module.
organizations_event_threat_detection_settings_custom_modules_getSELECTcustomModulesId, organizationsIdGets an Event Threat Detection custom module.
projects_event_threat_detection_settings_custom_modules_getSELECTcustomModulesId, projectsIdGets an Event Threat Detection custom module.
folders_event_threat_detection_settings_custom_modules_patchUPDATEcustomModulesId, foldersIdUpdates the Event Threat Detection custom module with the given name based on the given update mask. Updating the enablement state is supported for both resident and inherited modules (though resident modules cannot have an enablement state of "inherited"). Updating the display name or configuration of a module is supported for resident modules only. The type of a module cannot be changed.
folders_security_health_analytics_settings_custom_modules_patchUPDATEcustomModulesId, foldersIdUpdates the SecurityHealthAnalyticsCustomModule under the given name based on the given update mask. Updating the enablement state is supported on both resident and inherited modules (though resident modules cannot have an enablement state of "inherited"). Updating the display name and custom config of a module is supported on resident modules only.
organizations_event_threat_detection_settings_custom_modules_patchUPDATEcustomModulesId, organizationsIdUpdates the Event Threat Detection custom module with the given name based on the given update mask. Updating the enablement state is supported for both resident and inherited modules (though resident modules cannot have an enablement state of "inherited"). Updating the display name or configuration of a module is supported for resident modules only. The type of a module cannot be changed.
organizations_security_health_analytics_settings_custom_modules_patchUPDATEcustomModulesId, organizationsIdUpdates the SecurityHealthAnalyticsCustomModule under the given name based on the given update mask. Updating the enablement state is supported on both resident and inherited modules (though resident modules cannot have an enablement state of "inherited"). Updating the display name and custom config of a module is supported on resident modules only.
projects_event_threat_detection_settings_custom_modules_patchUPDATEcustomModulesId, projectsIdUpdates the Event Threat Detection custom module with the given name based on the given update mask. Updating the enablement state is supported for both resident and inherited modules (though resident modules cannot have an enablement state of "inherited"). Updating the display name or configuration of a module is supported for resident modules only. The type of a module cannot be changed.
projects_security_health_analytics_settings_custom_modules_patchUPDATEcustomModulesId, projectsIdUpdates the SecurityHealthAnalyticsCustomModule under the given name based on the given update mask. Updating the enablement state is supported on both resident and inherited modules (though resident modules cannot have an enablement state of "inherited"). Updating the display name and custom config of a module is supported on resident modules only.
folders_security_health_analytics_settings_custom_modules_simulateEXECfoldersIdSimulates a given SecurityHealthAnalyticsCustomModule and Resource.
organizations_security_health_analytics_settings_custom_modules_simulateEXECorganizationsIdSimulates a given SecurityHealthAnalyticsCustomModule and Resource.
projects_security_health_analytics_settings_custom_modules_simulateEXECprojectsIdSimulates a given SecurityHealthAnalyticsCustomModule and Resource.

SELECT examples

Gets an Event Threat Detection custom module.

SELECT
name,
description,
ancestorModule,
config,
displayName,
enablementState,
lastEditor,
type,
updateTime
FROM google.securitycenter.custom_modules
WHERE customModulesId = '{{ customModulesId }}'
AND foldersId = '{{ foldersId }}';

UPDATE example

Updates a custom_modules resource.

/*+ update */
UPDATE google.securitycenter.custom_modules
SET
name = '{{ name }}',
config = '{{ config }}',
enablementState = '{{ enablementState }}',
type = '{{ type }}',
displayName = '{{ displayName }}',
description = '{{ description }}'
WHERE
customModulesId = '{{ customModulesId }}'
AND foldersId = '{{ foldersId }}';