> 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/describeaccelerators.md). Agents can also search and read this documentation through its [MCP server](https://docs.console.zenlayer.com/api-reference/~gitbook/mcp).

# DescribeAccelerators

## 1. API Description

This API (DescribeAccelerators) is used to query information about multiple accelerators. Users can query based on ID, name, CNAME and other conditions.

## 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 ID.</p><p>Up to 100 IDs can be queried.</p>                                                                 |
| acceleratorName    | No       | String          | Accelerator name                                                                                                           |
| acceleratorStatus  | No       | String          | [Accelerator status](https://docs.console.zenlayer.com/api-reference/zga/datastructure.md#acceleratorstatusvalue)          |
| accelerateRegionId | No       | String          | [Region ID](https://docs.console.zenlayer.com/api-reference/zga/datastructure.md#region)                                   |
| vip                | No       | String          | Assigned acceleration VIP                                                                                                  |
| domain             | No       | String          | Acceleration domain                                                                                                        |
| origin             | No       | String          | Origin address                                                                                                             |
| originRegionId     | No       | String          | [Region ID](https://docs.console.zenlayer.com/api-reference/zga/datastructure.md#region)                                   |
| cname              | No       | String          | CNAME assigned to the accelerator                                                                                          |
| resourceGroupId    | No       | String          | <p>Resource Group ID.</p><p>If not provided, all accelerators visible to the user in all resource groups are returned.</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 [AcceleratorInfo](https://docs.console.zenlayer.com/api-reference/zga/datastructure.md#acceleratorinfo) | Result set.                                                                                                           |

## 4. Code Examples

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

1. **Query accelerator list with pagination**

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

Request:
{
  "pageNum": 1,
  "pageSize": 1
}

Response:
{
  "requestId": "TEEFDCA5B-76FB-4E91-A18E-DF7F5D2CE41F",
  "response": {
    "requestId": "TEEFDCA5B-76FB-4E91-A18E-DF7F5D2CE41F",
    "totalCount": 6,
    "dataSet": [
          {
            "acceleratorId": "acceleratorIdxxxxx",
            "acceleratorType": "CustomRouting",
            "acceleratorName": "xx.xx.com_Singapore",
            "chargeType": "ByTrafficPackage",
            "acceleratorStatus": "Accelerating",
            "cname": "xxx.zga.globalconnetct.com",
            "domain": {
                "domain": "xx.xx.com",
                "relateDomains": "xx.xx.cn"
            },
            "origin": {
                "originRegionId": "SG",
                "originRegionName": "Singapore",
                "origin": "10.10.10.10",
                "backupOrigin": ""
            },
            "accelerateRegions": [
                {
                    "accelerateRegionId": "FR",
                    "accelerateRegionName": "France",
                    "status": "Success",
                    "vip": "101.101.101.101",
                    "bandwidth": 500
                }
            ],
            "l4Listeners": [
                {
                    "port": 53,
                    "backPort": 53,
                    "protocol": "udp"
                }
            ],
            "l7Listeners": [
                {
                    "port": 443,
                    "backPort": 443,
                    "host": "",
                    "backProtocol": "https",
                    "protocol": "https"
                }
            ],
            "protocolOpts": {
                "toa": false,
                "toaValue": 253,
                "websocket": false,
                "proxyProtocol": false,
                "gzip": false,
                "sniCheck": false,
                "httpRedirect": false
            },
            "certificate": {
                "certificateId": "certificateIdxxxxx",
                "certificateLabel": "certificatexxx",
                "common": "*.xx.com",
                "fingerprint": "1D7801BBE772D5DE55CBF1F88AEB41A42402DA07",
                "issuer": "TrustAsia TLS RSA CA",
                "sans": ["xx.cn"],
                "algorithm": "RSA",
                "createTime": "2023-04-19T09:11:27Z",
                "startTime": "2023-04-18T09:27:30Z",
                "endTime": "2023-07-18T09:27:30Z",
                "expired": false
            },
            "accessControl": {
                "enable": true,
                "rules": [
                  {
                    "listener": "http:80",
                    "directory": "*",
                    "cidrIp": "101.101.101.101",
                    "policy": "accept"
                  }
                ]
            },
            "healthCheck": {
              "enable": true,
              "alarm": true,
              "port": 80
            },
            "createTime": "2023-04-28T03:38:53Z",
            "resourceGroupId":"xxx-xx"
          }
    ]
  }
}
```

{% 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).
