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

**Full name**: projects.locations.instances.legacy.legacySearchArtifactEvents

Legacy endpoint for getting events for a given artifact.

### HTTP request

`GET https://{endpoint}/v1alpha/{instance}/legacy:legacySearchArtifactEvents`

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

### Path parameters

| Parameters ||
|---|---|
| `instance` | `string` Required. Chronicle instance this request is sent to. Format: projects/{project}/locations/{location}/instances/{instance} |

### Query parameters

| Parameters ||
|---|---|
| `artifact` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/ArtifactIndicator`)`` Required. The artifact for which we want to find events. |
| `timeRange` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/Interval`)`` The time range within which we want to search \[inclusive start time, exclusive end time). If left empty, then we search over all time. |
| `limit` | `integer` The maximum number of events to return. The service may return fewer than this value. If unspecified, at most 10,000 events will be returned. The maximum value is 100,000; values above 100,000 will be coerced to 100,000. |

### Request body

The request body must be empty.

### Response body

The response to a request to find all asset events for queried artifact.

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

| JSON representation |
|---|
| ``` { "assets": [ { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacy/legacySearchArtifactEvents#AssetIndicatorTimestamp`) } ] } ``` |

| Fields ||
|---|---|
| `assets[]` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacy/legacySearchArtifactEvents#AssetIndicatorTimestamp`)`` A list assets along with the time they queried the Artifact. This list is built after de-duping the raw events. The deduping is done on the queried artifact (i.e., multiple lookups by an asset to the queried domain or any subdomains in a short period of time are represented as a single event). Sorted in ASC order of AssetIndicatorTimestamp.time. |

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

- `chronicle.legacies.legacySearchArtifactEvents`

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

## AssetIndicatorTimestamp

Event information returned for timeline in either domain or ip. Contains asset that resolved domain/ip at a given timestamp and any webproxy data if available.

| JSON representation |
|---|
| ``` { "assetIndicator": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/AssetIndicator`) }, "eventTime": string, "artifactIndicator": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/ArtifactIndicator`) }, "httpDetails": [ { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/HttpDetails`) } ], "rawLogsToken": string, "filterProperties": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/FilterProperties`) }, "sidebarEntries": [ { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/SidebarEntry`) } ], "fileNames": [ string ] } ``` |

| Fields ||
|---|---|
| `assetIndicator` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/AssetIndicator`)`` The asset. |
| `eventTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` A time associated with this asset. 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"`. |
| `artifactIndicator` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/ArtifactIndicator`)`` The artifact. |
| `httpDetails[]` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/HttpDetails`)`` Additional details about HTTP requests associated with the lookup. |
| `rawLogsToken` | `string` A token to request raw logs, this is opaque to the client. If empty, no raw logs can be requested. |
| `filterProperties` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/FilterProperties`)`` Filter properties for each timeline event. |
| `sidebarEntries[]` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/SidebarEntry`)`` All the sidebar entries. |
| `fileNames[]` | `string` File names associated with queried file hash in hash view timeline This field is only valid when ArtifactIndicator is file hash. |