- [HTTP request](https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/organizations.securityHealthAnalyticsSettings.customModules/simulate#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/organizations.securityHealthAnalyticsSettings.customModules/simulate#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/organizations.securityHealthAnalyticsSettings.customModules/simulate#body.request_body)
  - [JSON representation](https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/organizations.securityHealthAnalyticsSettings.customModules/simulate#body.request_body.SCHEMA_REPRESENTATION)
- [Response body](https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/organizations.securityHealthAnalyticsSettings.customModules/simulate#body.response_body)
- [Authorization scopes](https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/organizations.securityHealthAnalyticsSettings.customModules/simulate#body.aspect)
- [Try it!](https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/organizations.securityHealthAnalyticsSettings.customModules/simulate#try-it)

Simulates a given SecurityHealthAnalyticsCustomModule and Resource.

### IAM Permissions

Requires the following IAM permission on the resource specified in the `parent` field:

- `securitycenter.securityhealthanalyticscustommodules.simulate`

### HTTP request

Choose an endpoint:
global me-central2 us eu   
`POST https://securitycenter.googleapis.com/v1/{parent=organizations/*/securityHealthAnalyticsSettings}/customModules:simulate`

<br />

The URLs use [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. The relative resource name of the organization, project, or folder. For more information about relative resource names, see [Relative Resource Name](https://cloud.google.com/apis/design/resource_names#relative_resource_name) Example: `organizations/{organizationId}` |

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "customConfig": { object (`https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/CustomConfig`) }, "resource": { object (`https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/SimulatedResource`) } } ``` |

| Fields ||
|---|---|
| `customConfig` | ``object (`https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/CustomConfig`)`` Required. The custom configuration that you need to test. |
| `resource` | ``object (`https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/SimulatedResource`)`` Required. Resource data to simulate custom module against. |

### Response body

If successful, the response body contains an instance of `https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/SimulateSecurityHealthAnalyticsCustomModuleResponse`.

### Authorization scopes

Requires one of the following OAuth scopes:

- `https://www.googleapis.com/auth/cloud-platform`
- `https://www.googleapis.com/auth/securitycenter`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).