Security Command Center API . folders . eventThreatDetectionSettings

Instance Methods

customModules()

Returns the customModules Resource.

effectiveCustomModules()

Returns the effectiveCustomModules Resource.

close()

Close httplib2 connections.

validateCustomModule(parent, body=None, x__xgafv=None)

Validates the given Event Threat Detection custom module.

Method Details

close()
Close httplib2 connections.
validateCustomModule(parent, body=None, x__xgafv=None)
Validates the given Event Threat Detection custom module.

Args:
  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". (required)
  body: object, The request body.
    The object takes the form of:

{ # Request to validate an Event Threat Detection custom module.
  "rawText": "A String", # Required. The raw text of the module's contents. Used to generate error messages.
  "type": "A String", # Required. The type of the module (e.g. CONFIGURABLE_BAD_IP).
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response to validating an Event Threat Detection custom module.
  "errors": { # A list of zero or more errors encountered while validating the uploaded configuration of an Event Threat Detection Custom Module. # A list of errors returned by the validator. If the list is empty, there were no errors.
    "errors": [
      { # An error encountered while validating the uploaded configuration of an Event Threat Detection Custom Module.
        "description": "A String", # A description of the error, suitable for human consumption. Required.
        "end": { # A position in the uploaded text version of a module. # 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..
          "columnNumber": 42,
          "lineNumber": 42,
        },
        "fieldPath": "A String", # 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": { # A position in the uploaded text version of a module. # 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.
          "columnNumber": 42,
          "lineNumber": 42,
        },
      },
    ],
  },
}