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

**Full name**: projects.locations.instances.iocs.searchCuratedDetectionsForIoc

Search curated detections for an Ioc.

### HTTP request

`GET https://{endpoint}/v1alpha/{name}:searchCuratedDetectionsForIoc`

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

### Path parameters

| Parameters ||
|---|---|
| `name` | `string` Required. projects/{project}/locations/{location}/instances/{instance}/iocs/{ioc} |

### Query parameters

| Parameters ||
|---|---|
| `timestampRange` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/Interval`)`` Optional. Time range in which we want to find detections. |
| `pageSize` | `integer` Optional. The maximum number of detections to return. Max is 10000, anything over max will be coerced to max. |
| `pageToken` | `string` Optional. A page token, received from a previous `SearchDetectionEventsForIoC` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `SearchDetectionEventsForIoC` must match the call that provided the page token. |

### Request body

The request body must be empty.

### Response body

Response message to search for curated detection of an Ioc

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

| JSON representation |
|---|
| ``` { "detections": [ { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.iocs/searchCuratedDetectionsForIoc#LegacyIocCuratedDetection`) } ], "artifactIndicator": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.iocs#Ioc.IocArtifactIndicator`) }, "nextPageToken": string } ``` |

| Fields ||
|---|---|
| `detections[]` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.iocs/searchCuratedDetectionsForIoc#LegacyIocCuratedDetection`)`` List of all detection to be displayed. |
| `artifactIndicator` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.iocs#Ioc.IocArtifactIndicator`)`` Metadata about the artifact of interest. |
| `nextPageToken` | `string` A token that can be sent as `pageToken` to retrieve the next page. If this field is omitted, there are no subsequent pages. |

### 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 `name` resource:

- `chronicle.iocs.searchCuratedDetectionsForIoc`

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

## LegacyIocCuratedDetection

Described the detections generated by curated rules.

| JSON representation |
|---|
| ``` { "priority": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.iocs#Ioc.Priority`), "icScore": integer, "deviceAction": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/Action`), "assetHostname": string, "assetIp": string, "logSource": string, "userId": string, "detectionId": string, "detectionTime": string } ``` |

| Fields ||
|---|---|
| `priority` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.iocs#Ioc.Priority`)`` The priority of a detection. |
| `icScore` | `integer (https://developers.google.com/discovery/v1/type-format format)` Optional. Mandiant Scoring on severity of maliciousness. |
| `deviceAction` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/Action`)`` Device action tells whether the detection id blocked or not. |
| `assetHostname` | `string` Hostname of the asset of the detection. |
| `assetIp` | `string` IP address of the asset of the detection. |
| `logSource` | `string` Source of the detection log. |
| `userId` | `string` User ID. |
| `detectionId` | `string (https://developers.google.com/discovery/v1/type-format format)` Detection ID. A base64-encoded string. |
| `detectionTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Detection time of a detection. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |