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​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestring
ancestorModulestring
cloudProviderstring (CLOUD_PROVIDER_UNSPECIFIED, GOOGLE_CLOUD_PLATFORM, AMAZON_WEB_SERVICES, MICROSOFT_AZURE)
configobject
descriptionstring
displayNamestring
enablementStatestring (ENABLEMENT_STATE_UNSPECIFIED, ENABLED, DISABLED, INHERITED)
lastEditorstring
typestring
updateTimestring (google-datetime)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
folders_event_threat_detection_settings_custom_modules_getselectfoldersId, customModulesId
organizations_event_threat_detection_settings_custom_modules_getselectorganizationsId, customModulesId
projects_event_threat_detection_settings_custom_modules_getselectprojectsId, customModulesId
folders_event_threat_detection_settings_custom_modules_patchupdatefoldersId, customModulesIdupdateMask
folders_security_health_analytics_settings_custom_modules_patchupdatefoldersId, customModulesIdupdateMask
organizations_event_threat_detection_settings_custom_modules_patchupdateorganizationsId, customModulesIdupdateMask
organizations_security_health_analytics_settings_custom_modules_patchupdateorganizationsId, customModulesIdupdateMask
projects_event_threat_detection_settings_custom_modules_patchupdateprojectsId, customModulesIdupdateMask
projects_security_health_analytics_settings_custom_modules_patchupdateprojectsId, customModulesIdupdateMask
folders_security_health_analytics_settings_custom_modules_simulateexecfoldersId
organizations_security_health_analytics_settings_custom_modules_simulateexecorganizationsId
projects_security_health_analytics_settings_custom_modules_simulateexecprojectsId

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
updateMaskstring (google-fieldmask)

SELECT examples​

Successful response

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

UPDATE examples​

No description available.

UPDATE google.securitycenter.custom_modules
SET
data__cloudProvider = '{{ cloudProvider }}',
data__config = '{{ config }}',
data__description = '{{ description }}',
data__displayName = '{{ displayName }}',
data__enablementState = '{{ enablementState }}',
data__name = '{{ name }}',
data__type = '{{ type }}'
WHERE
foldersId = '{{ foldersId }}' --required
AND customModulesId = '{{ customModulesId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
ancestorModule,
cloudProvider,
config,
description,
displayName,
enablementState,
lastEditor,
type,
updateTime;

Lifecycle Methods​

Successful response

EXEC google.securitycenter.custom_modules.folders_security_health_analytics_settings_custom_modules_simulate
@foldersId='{{ foldersId }}' --required
@@json=
'{
"customConfig": "{{ customConfig }}",
"resource": "{{ resource }}"
}'
;