Method: organizations.locations.securityHealthAnalyticsCustomModules.simulate

模拟使用 SecurityHealthAnalyticsCustomModule 检查资源的结果。

HTTP 请求

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

网址采用 gRPC 转码语法。

路径参数

参数
parent

string

必需。组织、项目或文件夹的相对资源名称。如需详细了解相对资源名称,请参阅 AIP-122:资源名称。示例:organizations/{organization_id}

请求正文

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

JSON 表示法
{
  "customConfig": {
    object (CustomConfig)
  },
  "resource": {
    object (SimulatedResource)
  }
}
字段
customConfig

object (CustomConfig)

必需。您需要测试的自定义配置。

resource

object (SimulatedResource)

必需。用于模拟自定义模块的资源数据。

响应正文

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

授权范围

需要以下 OAuth 范围:

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

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

IAM 权限

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

  • securitycentermanagement.securityHealthAnalyticsCustomModules.simulate

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