- [HTTP request](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances/runThreatHunt#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances/runThreatHunt#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances/runThreatHunt#body.request_body)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances/runThreatHunt#body.request_body.SCHEMA_REPRESENTATION)
- [Response body](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances/runThreatHunt#body.response_body)
- [Authorization scopes](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances/runThreatHunt#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances/runThreatHunt#body.aspect_1)

**Full name**: projects.locations.instances.runThreatHunt

Runs a Threat Hunt.

### HTTP request

`POST https://{endpoint}/v1alpha/{parent}:runThreatHunt`

Where `{endpoint}` is one of the [supported service endpoints](https://docs.cloud.google.com/chronicle/docs/reference/rest#rest_endpoints).

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. The instance to run the ThreatHunt in. Format: projects/{project}/locations/{location}/instances/{instance} |

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "interval": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/Interval`) }, "environment": string, "legacySoarUser": string, // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "campaign": string, "actor": string, "malware": string, "technique": string, "tool": string // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| `interval` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/Interval`)`` Required. The time range over which to run the hunt. |
| `environment` | `string` Optional. The environment to run the threat hunt in. Format: projects/{project}/locations/{location}/instances/{instance}/environments/{environment} |
| `legacySoarUser` | `string` Optional. The SOAR user to attribute the threat hunt to. When a threat hunt is initiated from SOAR, this field should be populated with the resource name of the SOAR user who initiated the hunt. Format: projects/{project}/locations/{location}/instances/{instance}/legacySoarUsers/{legacySoarUser} |
| The subject of the hunt. One of these fields must be populated. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `campaign` | `string` Optional. Identifier for a GTI campaign. For example, "CAMP.26.012" |
| `actor` | `string` Optional. Identifier for a GTI threat actor. For example, "UNC5792" |
| `malware` | `string` Optional. Identifier for a GTI malware family. For example, "WHATLINK". |
| `technique` | `string` Optional. ID for MITRE Technique or subtechnique. Ex: TT1651 |
| `tool` | `string` Optional. ID for a software tool |
| End of mutually exclusive fields. ||

### Response body

If successful, the response body contains an instance of `https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/ListOperationsResponse#Operation`.

### Authorization scopes

Requires one of the following OAuth scopes:

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

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

### IAM Permissions

Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `parent` resource:

- `chronicle.instances.runThreatHunt`

For more information, see the [IAM documentation](https://cloud.google.com/iam/docs).