Skip to main content

security_health_analytics_modules

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

Overview

Namesecurity_health_analytics_modules
TypeResource
Idgoogle.securitycenter.security_health_analytics_modules

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringImmutable. The resource name of the custom module. Its format is "organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}", or "folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}", or "projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}" The id {customModule} is server-generated and is not user settable. It will be a numeric id containing 1-20 digits.
ancestorModulestringOutput only. If empty, indicates that the custom module was created in the organization, folder, or project in which you are viewing the custom module. Otherwise, ancestor_module specifies the organization or folder from which the custom module is inherited.
cloudProviderstringThe cloud provider of the custom module.
customConfigobjectThe user specified custom configuration for the module. (id: GoogleCloudSecuritycenterV1CustomConfig)
displayNamestringThe display name of the Security Health Analytics custom module. This display name becomes the finding category for all findings that are returned by this custom module. The display name must be between 1 and 128 characters, start with a lowercase letter, and contain alphanumeric characters or underscores only.
enablementStatestringThe enablement state of the custom module.
lastEditorstringOutput only. The editor that last updated the custom module.
updateTimestring (google-datetime)Output only. The time at which the custom module was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
folders_security_health_analytics_settings_custom_modules_getselectfoldersId, customModulesIdRetrieves a SecurityHealthAnalyticsCustomModule.
projects_security_health_analytics_settings_custom_modules_getselectprojectsId, customModulesIdRetrieves a SecurityHealthAnalyticsCustomModule.
organizations_security_health_analytics_settings_custom_modules_getselectorganizationsId, customModulesIdRetrieves a SecurityHealthAnalyticsCustomModule.
folders_security_health_analytics_settings_custom_modules_listselectfoldersIdpageSize, pageTokenReturns a list of all SecurityHealthAnalyticsCustomModules for the given parent. This includes resident modules defined at the scope of the parent, and inherited modules, inherited from CRM ancestors.
projects_security_health_analytics_settings_custom_modules_listselectprojectsIdpageSize, pageTokenReturns a list of all SecurityHealthAnalyticsCustomModules for the given parent. This includes resident modules defined at the scope of the parent, and inherited modules, inherited from CRM ancestors.
organizations_security_health_analytics_settings_custom_modules_listselectorganizationsIdpageSize, pageTokenReturns a list of all SecurityHealthAnalyticsCustomModules for the given parent. This includes resident modules defined at the scope of the parent, and inherited modules, inherited from CRM ancestors.
folders_security_health_analytics_settings_custom_modules_createinsertfoldersIdCreates a resident SecurityHealthAnalyticsCustomModule at the scope of the given CRM parent, and also creates inherited SecurityHealthAnalyticsCustomModules for all CRM descendants of the given parent. These modules are enabled by default.
projects_security_health_analytics_settings_custom_modules_createinsertprojectsIdCreates a resident SecurityHealthAnalyticsCustomModule at the scope of the given CRM parent, and also creates inherited SecurityHealthAnalyticsCustomModules for all CRM descendants of the given parent. These modules are enabled by default.
organizations_security_health_analytics_settings_custom_modules_createinsertorganizationsIdCreates a resident SecurityHealthAnalyticsCustomModule at the scope of the given CRM parent, and also creates inherited SecurityHealthAnalyticsCustomModules for all CRM descendants of the given parent. These modules are enabled by default.
folders_security_health_analytics_settings_custom_modules_deletedeletefoldersId, customModulesIdDeletes the specified SecurityHealthAnalyticsCustomModule and all of its descendants in the CRM hierarchy. This method is only supported for resident custom modules.
projects_security_health_analytics_settings_custom_modules_deletedeleteprojectsId, customModulesIdDeletes the specified SecurityHealthAnalyticsCustomModule and all of its descendants in the CRM hierarchy. This method is only supported for resident custom modules.
organizations_security_health_analytics_settings_custom_modules_deletedeleteorganizationsId, customModulesIdDeletes the specified SecurityHealthAnalyticsCustomModule and all of its descendants in the CRM 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

Retrieves a SecurityHealthAnalyticsCustomModule.

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

INSERT examples

Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the given CRM parent, and also creates inherited SecurityHealthAnalyticsCustomModules for all CRM descendants of the given parent. These modules are enabled by default.

INSERT INTO google.securitycenter.security_health_analytics_modules (
data__name,
data__displayName,
data__enablementState,
data__customConfig,
data__cloudProvider,
foldersId
)
SELECT
'{{ name }}',
'{{ displayName }}',
'{{ enablementState }}',
'{{ customConfig }}',
'{{ cloudProvider }}',
'{{ foldersId }}'
RETURNING
name,
ancestorModule,
cloudProvider,
customConfig,
displayName,
enablementState,
lastEditor,
updateTime
;

DELETE examples

Deletes the specified SecurityHealthAnalyticsCustomModule and all of its descendants in the CRM hierarchy. This method is only supported for resident custom modules.

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