Method: organizations.securityHealthAnalyticsSettings.customModules.patch

根据给定更新掩码更新指定名称下的 SecurityHealthAnalyticsCustomModule。常驻模块和继承模块都支持更新启用状态(不过,常驻模块的启用状态不能为“继承”)。仅支持对常驻模块更新显示名称和自定义配置。

HTTP 请求


网址使用 gRPC 转码语法。

路径参数

参数
securityHealthAnalyticsCustomModule.name

string

不可变。自定义模块的资源名称。其格式为“organizations/{organization}/securityHealthAnalyticsSettings/customModules/{customModule}”或“folders/{folder}/securityHealthAnalyticsSettings/customModules/{customModule}”或“projects/{project}/securityHealthAnalyticsSettings/customModules/{customModule}”

ID {customModule} 由服务器生成,无法由用户设置。该 ID 是包含 1-20 位数字的数字 ID。

查询参数

参数
updateMask

string (FieldMask format)

要更新的字段的列表。您只能更新 enablementStatecustomConfig 字段。如果为空或设置为通配符值 *,则会同时更新 enablementStatecustomConfig

请求正文

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

响应正文

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

授权范围

需要以下 OAuth 范围:

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

如需了解详情,请参阅 Authentication Overview