Method: organizations.securityHealthAnalyticsSettings.customModules.patch

Updates 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.

HTTP request


The URLs use gRPC Transcoding syntax.

Path parameters

Parameters
securityHealthAnalyticsCustomModule.name

string

Immutable. 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.

Query parameters

Parameters
updateMask

string (FieldMask format)

The list of fields to be updated. The only fields that can be updated are enablementState and customConfig. If empty or set to the wildcard value *, both enablementState and customConfig are updated.

Request body

The request body contains an instance of SecurityHealthAnalyticsCustomModule.

Response body

If successful, the response body contains an instance of SecurityHealthAnalyticsCustomModule.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.