- [HTTP request](https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/organizations.eventThreatDetectionSettings/validateCustomModule#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/organizations.eventThreatDetectionSettings/validateCustomModule#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/organizations.eventThreatDetectionSettings/validateCustomModule#body.request_body)
  - [JSON representation](https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/organizations.eventThreatDetectionSettings/validateCustomModule#body.request_body.SCHEMA_REPRESENTATION)
- [Response body](https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/organizations.eventThreatDetectionSettings/validateCustomModule#body.response_body)
- [Authorization scopes](https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/organizations.eventThreatDetectionSettings/validateCustomModule#body.aspect)
- [Try it!](https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/organizations.eventThreatDetectionSettings/validateCustomModule#try-it)

Validates the given Event Threat Detection custom module.

### IAM Permissions

Requires the following IAM permission on the resource specified in the `parent` field:

- `securitycenter.eventthreatdetectioncustommodules.validate`

### HTTP request

Choose an endpoint:
global me-central2 us eu   
`POST https://securitycenter.googleapis.com/v1/{parent=organizations/*/eventThreatDetectionSettings}:validateCustomModule`

<br />

The URLs use [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. Resource name of the parent to validate the Custom Module under. Its format is: - `organizations/{organization}/eventThreatDetectionSettings`. - `folders/{folder}/eventThreatDetectionSettings`. - `projects/{project}/eventThreatDetectionSettings`. |

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "rawText": string, "type": string } ``` |

| Fields ||
|---|---|
| `rawText` | `string` Required. The raw text of the module's contents. Used to generate error messages. |
| `type` | `string` Required. The type of the module (e.g. CONFIGURABLE_BAD_IP). |

### Response body

If successful, the response body contains an instance of `https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/ValidateEventThreatDetectionCustomModuleResponse`.

### Authorization scopes

Requires one of the following OAuth scopes:

- `https://www.googleapis.com/auth/cloud-platform`
- `https://www.googleapis.com/auth/securitycenter`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).