Method: organizations.locations.eventThreatDetectionCustomModules.delete

删除指定的 Event Threat Detection 自定义模块及其在资源层次结构中的所有后代。此方法仅适用于常驻自定义模块。

HTTP 请求

DELETE https://securitycentermanagement.googleapis.com/v1/{name=organizations/*/locations/*/eventThreatDetectionCustomModules/*}

网址采用 gRPC 转码语法。

路径参数

参数
name

string

必需。Event Threat Detection 自定义模块的资源名称,采用以下格式之一:

  • organizations/{organization}/locations/{location}/eventThreatDetectionCustomModules/{custom_module}
  • folders/{folder}/locations/{location}/eventThreatDetectionCustomModules/{custom_module}
  • projects/{project}/locations/{location}/eventThreatDetectionCustomModules/{custom_module}

查询参数

参数
validateOnly

boolean

可选。设置为 true 时,系统会对请求进行验证(包括 IAM 检查),但不会删除任何模块。OK 响应表示请求有效,而错误响应表示请求无效。

即使请求有效,后续删除该模块的请求仍可能会因以下某种原因而失败:

  • 您的云资源状态发生了变化;例如,您失去了必要的 IAM 权限
  • 创建模块时出错

默认值为 false

请求正文

请求正文必须为空。

响应正文

如果成功,则响应正文为空。

授权范围

需要以下 OAuth 范围:

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

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

IAM 权限

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

  • securitycentermanagement.eventThreatDetectionCustomModules.delete

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