Method: folders.locations.eventThreatDetectionCustomModules.validate

验证给定的 Event Threat Detection 自定义模块。

HTTP 请求

POST https://securitycentermanagement.googleapis.com/v1/{parent=folders/*/locations/*}/eventThreatDetectionCustomModules:validate

网址采用 gRPC 转码语法。

路径参数

参数
parent

string

必需。要验证自定义模块的父级的资源名称,格式应为以下某种格式:

  • organizations/{organization}/locations/{location}

请求正文

请求正文中包含结构如下的数据:

JSON 表示法
{
  "rawText": string,
  "type": string
}
字段
rawText

string

必需。模块内容的原始文本。用于生成错误消息。

type

string

必需。模块的类型。例如 CONFIGURABLE_BAD_IP

响应正文

如果成功,则响应正文包含一个 ValidateEventThreatDetectionCustomModuleResponse 实例。

授权范围

需要以下 OAuth 范围:

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

如需了解详情,请参阅身份验证概览

IAM 权限

需要拥有 parent 资源的以下 IAM 权限:

  • securitycentermanagement.eventThreatDetectionCustomModules.validate

如需了解详情,请参阅 IAM 文档