> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Alerts

Retrieve a list of alerts.

**Note**: This action is supported only by the `Service Account` connection method.

<Note>
  External Documentation

  To learn more, visit the [Google Admin Console documentation](https://developers.google.com/workspace/admin/alertcenter/reference/rest/v1beta1/alerts/list).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter   | Description                                                                                                                                                                                                                                                                                                                                                          |
  | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Customer ID | The unique ID for the customer's Google Workspace account. The customer ID can be obtained by the `List Users` action.<br /><br />**Note**: The customer ID must have the initial 'C' stripped. For example: `046psxkn`.                                                                                                                                             |
  | Filter      | A query for filtering alert results.<br /><br />For more information on building the filter query, please visit Google's docs on [query filters](https://developers.google.com/workspace/admin/alertcenter/guides/query-filters) and [supported query filter fields](https://developers.google.com/workspace/admin/alertcenter/reference/filter-fields#alerts.list). |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter               | Description                                                                                                                                                                                                                                                                                                                  |
  | ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Delegated User Override | Perform the action on behalf of another user, overriding the delegated user defined in the connection.<br /><br />If not specified, the delegated user is the one provided in the connection.<br /><br />Has no effect when using an OAuth connection.<br /><br />NOTE: the connection details are not edited by this input. |
  | Page Size               | The maximum number of results to retrieve in a single execution.                                                                                                                                                                                                                                                             |
  | Page Token              | A page token, received from a previous `List Alerts` execution. Provide this to retrieve the subsequent page. When paginating, all other parameters provided must match the execution that provided the page token.                                                                                                          |
</div>

## Example Output

```json theme={"dark"}
{
  "alerts": [
    {
      {
        "customerId": "0000-000-000-00000",
        "alertId": "0000-000-000-00000",
        "createTime": "9999-12-31T23:59:59Z",
        "startTime": "9999-12-31T23:59:59Z",
        "endTime": "9999-12-31T23:59:59Z",
        "type": "Customer takeout initiated",
        "source": "Domain wide takeout",
        "data": {
          "email": "example",
          "events": [
            {
              "deviceId": "example",
              "serialNumber": "example",
              "deviceType": "example",
              "deviceModel": "example",
              "resourceId": "example",
              "iosVendorId": "example",
              "deviceCompromisedState": "example"
            }
          ]
        },
        "securityInvestigationToolLink": "security",
        "deleted": true,
        "metadata": {
          {
            "customerId": "0000-000-000-00000",
            "alertId": "0000-000-000-00000",
            "status": "CLOSED",
            "assignee": "email@example.com",
            "updateTime": "9999-12-31T23:59:59Z",
            "severity": "HIGH",
            "etag": "tag"
          }
        },
        "updateTime": "9999-12-31T23:59:59Z",
        "etag": "tag"
      }
    }
  ],
  "nextPageToken": ""
}
```

## Workflow Library Example

[List Alerts with Google Admin Console and Send Results Via Email](https://library.blinkops.com/workflows/list-alerts-with-google-admin-console-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/list-alerts-with-google-admin-console-and-send-results-via-email/canvas" />
</div>
