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
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_getselectfoldersId, customModulesId
organizations_event_threat_detection_settings_custom_modules_patchupdateorganizationsId, customModulesIdupdateMask
organizations_security_health_analytics_settings_custom_modules_patchupdateorganizationsId, customModulesIdupdateMask
projects_security_health_analytics_settings_custom_modules_patchupdateprojectsId, customModulesIdupdateMask
projects_event_threat_detection_settings_custom_modules_patchupdateprojectsId, customModulesIdupdateMask
folders_security_health_analytics_settings_custom_modules_patchupdatefoldersId, customModulesIdupdateMask
folders_event_threat_detection_settings_custom_modules_patchupdatefoldersId, customModulesIdupdateMask
organizations_security_health_analytics_settings_custom_modules_simulateexecorganizationsId
projects_security_health_analytics_settings_custom_modules_simulateexecprojectsId
folders_security_health_analytics_settings_custom_modules_simulateexecfoldersId

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 organizationsId = '{{ organizationsId }}' -- required
AND customModulesId = '{{ customModulesId }}' -- required
;

UPDATE examples

No description available.

UPDATE google.securitycenter.custom_modules
SET
data__name = '{{ name }}',
data__config = '{{ config }}',
data__displayName = '{{ displayName }}',
data__description = '{{ description }}',
data__type = '{{ type }}',
data__cloudProvider = '{{ cloudProvider }}',
data__enablementState = '{{ enablementState }}'
WHERE
organizationsId = '{{ organizationsId }}' --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.organizations_security_health_analytics_settings_custom_modules_simulate
@organizationsId='{{ organizationsId }}' --required
@@json=
'{
"customConfig": "{{ customConfig }}",
"resource": "{{ resource }}"
}'
;