- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- CustomModuleValidationErrors
- CustomModuleValidationError
- Position
- Try it!
Validates the given Event Threat Detection custom module.
HTTP request
POST https://securitycenter.googleapis.com/v1/{parent=organizations/*/eventThreatDetectionSettings}:validateCustomModule
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. Resource name of the parent to validate the Custom Module under. Its format is:
|
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "rawText": string, "type": string } |
Fields | |
---|---|
rawText |
Required. The raw text of the module's contents. Used to generate error messages. |
type |
Required. The type of the module (e.g. CONFIGURABLE_BAD_IP). |
Response body
Response to validating an Event Threat Detection custom module.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"errors": {
object ( |
Fields | |
---|---|
errors |
A list of errors returned by the validator. If the list is empty, there were no errors. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
CustomModuleValidationErrors
A list of zero or more errors encountered while validating the uploaded configuration of an Event Threat Detection Custom Module.
JSON representation |
---|
{
"errors": [
{
object ( |
Fields | |
---|---|
errors[] |
|
CustomModuleValidationError
An error encountered while validating the uploaded configuration of an Event Threat Detection Custom Module.
JSON representation |
---|
{ "description": string, "fieldPath": string, "start": { object ( |
Fields | |
---|---|
description |
A description of the error, suitable for human consumption. Required. |
fieldPath |
The path, in RFC 8901 JSON Pointer format, to the field that failed validation. This may be left empty if no specific field is affected. |
start |
The initial position of the error in the uploaded text version of the module. This field may be omitted if no specific position applies, or if one could not be computed. |
end |
The end position of the error in the uploaded text version of the module. This field may be omitted if no specific position applies, or if one could not be computed.. |
Position
A position in the uploaded text version of a module.
JSON representation |
---|
{ "lineNumber": integer, "columnNumber": integer } |
Fields | |
---|---|
lineNumber |
|
columnNumber |
|