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

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

RPC for getting all alerts in a time range in legacy page site.

### HTTP request

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

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 ||
|---|---|
| `timestampRange` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/Interval`)`` Required. Time range \[start, end) for alerts to retrieve. |
| `maxNumAlertsReturn` | `integer` Required. Maximum number of alert events to return across all assets \& users. Note that this is not a limit on the cumulative number of alertSummaries \& user_summaries returned, nor a limit on the total number of alertInfos to return as each alert might be associated with more than one asset and/or user. |

### Request body

The request body must be empty.

### Response body

Returns alerts for the customer in the requested time range

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

| JSON representation |
|---|
| ``` { "alertSummaries": [ { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacy/legacySearchEnterpriseWideAlerts#AssetAlertSummary`) } ], "moreDataAvailable": boolean, "userAlertSummaries": [ { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacy/legacySearchEnterpriseWideAlerts#UserAlertSummary`) } ] } ``` |

| Fields ||
|---|---|
| `alertSummaries[]` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacy/legacySearchEnterpriseWideAlerts#AssetAlertSummary`)`` Alerts that occurred in the requested time range, grouped by asset |
| `moreDataAvailable` | `boolean` Indicates that more data was available but not sent due to more hits than maxNumAlertsToReturn. |
| `userAlertSummaries[]` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacy/legacySearchEnterpriseWideAlerts#UserAlertSummary`)`` Alerts that occurred in the requested time range, grouped by user |

### 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.legacySearchEnterpriseWideAlerts`

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

## AssetAlertSummary

An Asset and its associated alerts.

| JSON representation |
|---|
| ``` { "asset": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/AssetIndicator`) }, "alertInfo": [ { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacy/legacySearchEnterpriseWideAlerts#AssetAlertInfo`) } ] } ``` |

| Fields ||
|---|---|
| `asset` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/AssetIndicator`)`` The best indicator we have for this asset |
| `alertInfo[]` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacy/legacySearchEnterpriseWideAlerts#AssetAlertInfo`)`` Relevant information of alerts associated with the asset. |

## AssetAlertInfo

Alert information an asset-based alert

| JSON representation |
|---|
| ``` { "alert": string, "sourceProduct": string, "severity": string, "alertTime": string, "filterProperties": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/FilterProperties`) }, "alertNumber": integer, "uid": string } ``` |

| Fields ||
|---|---|
| `alert` | `string` Alert category |
| `sourceProduct` | `string` Alert log source product name |
| `severity` | `string` Normalized severity level of the alert |
| `alertTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Timestamp of the alert 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"`. |
| `filterProperties` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/FilterProperties`)`` Filter properties associated wth the alert |
| `alertNumber` | `integer` Alert number used to identify an alert event. |
| `uid` | `string (https://developers.google.com/discovery/v1/type-format format)` Used to link to the alert. Only populated for Security Command Center alerts. A base64-encoded string. |

## UserAlertSummary

User and associated alerts

| JSON representation |
|---|
| ``` { "user": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/UserIndicator`) }, "alertInfos": [ { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/UdmEventInfo`) } ] } ``` |

| Fields ||
|---|---|
| `user` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/UserIndicator`)`` Best user indicator from available user indicators |
| `alertInfos[]` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/UdmEventInfo`)`` Relevant information of alerts associated with the User. |