> For the complete documentation index, see [llms.txt](https://docs.console.zenlayer.com/api-reference/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.console.zenlayer.com/api-reference/zga/accelerator/describeacceleratorsalerts.md). Agents can also search and read this documentation through its [MCP server](https://docs.console.zenlayer.com/api-reference/~gitbook/mcp).

# DescribeAcceleratorsAlerts

## 1. API Description

This API (DescribeAcceleratorsAlerts) is used to query accelerator alerts.

## 2. Input Parameters

The following request parameter list only provides API Input Parameters.

| Parameter Name  | Required | Type                                                                                                  | Description                                                                                                                                                     |
| --------------- | -------- | ----------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| acceleratorIds  | No       | Array of String                                                                                       | <p>Accelerator IDs.</p><p>Up to 100 IDs can be queried.</p>                                                                                                     |
| resourceGroupId | No       | String                                                                                                | <p>Resource Group ID.</p><p>If not provided, alerts for accelerators in visible resource groups are returned.</p>                                               |
| alertType       | No       | String                                                                                                | [Alert type](https://docs.console.zenlayer.com/api-reference/zga/datastructure.md#acceleratealerttype)                                                          |
| alertId         | No       | String                                                                                                | Alert ID                                                                                                                                                        |
| firing          | No       | Boolean                                                                                               | <ul><li>null - all alert information</li><li>true - currently firing alert information</li><li>false - recovered alert information</li></ul>                    |
| startTimeFrom   | No       | [Timestamp](https://docs.console.zenlayer.com/api-reference/api-introduction/instruction/datatype.md) | <p>Start time range for querying alert start time.</p><p>Uses the <code>ISO8601</code> standard and UTC time. Format: <code>YYYY-MM-ddTHH:mm:ssZ</code>.</p>    |
| startTimeTo     | No       | [Timestamp](https://docs.console.zenlayer.com/api-reference/api-introduction/instruction/datatype.md) | <p>End time range for querying alert start time.</p><p>Uses the <code>ISO8601</code> standard and UTC time. Format: <code>YYYY-MM-ddTHH:mm:ssZ</code>.</p>      |
| endTimeFrom     | No       | [Timestamp](https://docs.console.zenlayer.com/api-reference/api-introduction/instruction/datatype.md) | <p>Start time range for querying alert recovery time.</p><p>Uses the <code>ISO8601</code> standard and UTC time. Format: <code>YYYY-MM-ddTHH:mm:ssZ</code>.</p> |
| endTimeTo       | No       | [Timestamp](https://docs.console.zenlayer.com/api-reference/api-introduction/instruction/datatype.md) | <p>End time range for querying alert recovery time.</p><p>Uses the <code>ISO8601</code> standard and UTC time. Format: <code>YYYY-MM-ddTHH:mm:ssZ</code>.</p>   |
| pageSize        | No       | Integer                                                                                               | <p>Returned page size.</p><p>Default is 20, maximum is 1000.</p>                                                                                                |
| pageNum         | No       | Integer                                                                                               | <p>Returned page number.</p><p>Default is 1.</p>                                                                                                                |

## 3. Output Parameters

| Parameter Name | Type                                                                                                               | Description                                                                                                           |
| -------------- | ------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------- |
| requestId      | String                                                                                                             | <p>The unique request ID, which is returned for each request.</p><p>RequestId is required for locating a problem.</p> |
| totalCount     | Integer                                                                                                            | Total number of data matching the criteria.                                                                           |
| dataSet        | Array of [AcceleratorAlert](https://docs.console.zenlayer.com/api-reference/zga/datastructure.md#acceleratoralert) | Result set.                                                                                                           |

## 4. Code Examples

{% tabs %}
{% tab title="Example" %}

1. **Query accelerator alert list**

```json
POST /api/v2/zga HTTP/1.1
Host: console.zenlayer.com
Content-Type: application/json
X-ZC-Action: DescribeAcceleratorsAlerts
<Common Request Params>

Request:
{
    "acceleratorIds": ["acceleratorIdxxxxx"],
}

Response:
{
  "requestId": "TEEFDCA5B-76FB-4E91-A18E-DF7F5D2CE41F",
  "response": {
    "requestId": "TEEFDCA5B-76FB-4E91-A18E-DF7F5D2CE41F",
    "totalCount": 2,
    "dataSet": [
      {
        "acceleratorId": "acceleratorIdxxxxx",
        "alertId": "156445fa677088d5cc344b751b252df9",
        "alertType": "VipDetectionNotAvaliable",
        "message": "101.101.101.101",
        "startTime": "2024-01-19T04:11:29.577Z",
        "endTime": "2024-03-08T06:25:46.067Z"
      },
      {
        "acceleratorId": "acceleratorIdxxxxx",
        "alertId": "156445fa677088d5cc344b751b252df8",
        "alertType": "VipDetectionNotAvaliable",
        "message": "101.101.101.102",
        "startTime": "2024-01-19T04:11:29.577Z",
        "endTime": "2024-03-08T06:25:46.067Z"
      }
    ]
  }
}
```

{% endtab %}
{% endtabs %}

## 5. Developer Resources

Zenlayer Cloud API 2.0 integrates [SDKs](https://docs.console.zenlayer.com/api-reference/api-introduction/toolkit/api-sdk.md)，to make it easier for you to call APIs. More programming languages will be supported.

## 6. Error Codes

The following only lists the error codes related to the API business logic. For other error codes, see [Common Error Codes](https://docs.console.zenlayer.com/api-reference/api-introduction/instruction/commonerrorcode.md).
