Method: organizations.locations.securityHealthAnalyticsCustomModules.create

在给定组织、文件夹或项目的范围内创建常驻 SecurityHealthAnalyticsCustomModule,并为给定父级的所有子文件夹和子项目创建继承的 SecurityHealthAnalyticsCustomModule 资源。这些模块默认处于启用状态。

HTTP 请求

POST https://securitycentermanagement.googleapis.com/v1/{parent=organizations/*/locations/*}/securityHealthAnalyticsCustomModules

网址采用 gRPC 转码语法。

路径参数

参数
parent

string

必需。模块的父级组织、文件夹或项目的名称,采用以下格式之一:

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

查询参数

参数
validateOnly

boolean

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

如果请求有效,后续创建模块的请求可能仍会因以下某种原因而失败:

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

默认值为 false

请求正文

请求正文包含一个 SecurityHealthAnalyticsCustomModule 实例。

响应正文

如果成功,响应正文将包含一个新创建的 SecurityHealthAnalyticsCustomModule 实例。

授权范围

需要以下 OAuth 范围:

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

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

IAM 权限

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

  • securitycentermanagement.securityHealthAnalyticsCustomModules.create

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