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

**Full name**: projects.locations.instances.investigations.fetchAssociated

investigations.fetchAssociated is used to fetch all the associated resources for each of the given alerts/cases.

### HTTP request

`GET https://{endpoint}/v1alpha/{parent}/investigations:fetchAssociated`

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 parent, which owns the provided alerts or cases. Format: projects/{project}/locations/{location}/instances/{instance} |

### Query parameters

| Parameters ||
|---|---|
| `detectionType` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations/fetchAssociated#DetectionType`)`` Required. The type of the identifiers provided. This is used to determine which of the alertIds and caseIds fields is populated. |
| `alertIds[]` | `string` Optional. The alertIds for which the associated details need to be fetched. The maximum number of alertIds that can be provided is 100. |
| `caseIds[]` | `string` Optional. The caseIds for which the associated details need to be fetched. The maximum number of caseIds that can be provided is 100. |
| `associationLimitPerDetection` | `integer` Optional. The maximum number of associations to return per detection. If not specified, at most 1 association will be returned. The maximum value is 5; values above 5 will be coerced to 5. |
| `orderBy` | `string` Optional. Configures ordering of associations in the response. If not specified, associations are returned in descending order of their create time. The default ordering is by create time in descending order. The orderBy string is a comma separated list of fields. Supported fields: \* `createTime`, `createTime desc` \* `updateTime`, `updateTime desc` |

### Request body

The request body must be empty.

### Response body

Response message for investigations.fetchAssociated method.

If successful, the response body contains data with the following structure:

| JSON representation |
|---|
| ``` { "associationsList": { string: { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations/fetchAssociated#InvestigationAssociationList`) }, ... }, "experimentalAlert": { string: boolean, ... } } ``` |

| Fields ||
|---|---|
| `associationsList` | ``map (key: string, value: object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations/fetchAssociated#InvestigationAssociationList`))`` A map from the requested alertId or caseId to the list of associations. An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |
| `experimentalAlert` | `map (key: string, value: boolean)` A map from the requested alertId or caseId to boolean indicating whether the alert is experimental(not supported for investigation) or not. An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |

### 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.investigations.fetchAssociated`

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

## DetectionType

Detection type of the identifier provided.

| Enums ||
|---|---|
| `DETECTION_TYPE_UNSPECIFIED` | Unspecified detection type. |
| `DETECTION_TYPE_ALERT` | Alert detection type. |
| `DETECTION_TYPE_CASE` | Case detection type. |

## InvestigationAssociationList

Contains the list of associated investigation details for a single alert or case.

| JSON representation |
|---|
| ``` { "investigationAssociations": [ { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations/fetchAssociated#InvestigationAssociation`) } ] } ``` |

| Fields ||
|---|---|
| `investigationAssociations[]` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations/fetchAssociated#InvestigationAssociation`)`` The list of investigation association details. |

## InvestigationAssociation

The investigation association details for a single alert or case.

| JSON representation |
|---|
| ``` { "notebook": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.notebooks#Notebook`) }, "investigation": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations#Investigation`) } } ``` |

| Fields ||
|---|---|
| `notebook` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.notebooks#Notebook`)`` Output only. The notebook associated with the provided detection ID. |
| `investigation` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.investigations#Investigation`)`` Output only. The investigation ran for the provided detection ID. Investigation steps taken by gemini will also be included in the investigation. |