> 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/datastructure.md).

# Data Types

## AccelerateAlertType

Alert Type

| Type                     | Description                           |
| ------------------------ | ------------------------------------- |
| OrginNotAvaliable        | Origin Not Available                  |
| VipDetectionNotAvaliable | Acceleration Region VIP Not Reachable |

## AcceleratorAlert

Accelerator Alert Information

| Parameter Name | Type                                                                 | Required | Description                                                                                                                                                      |
| -------------- | -------------------------------------------------------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| acceleratorId  | String                                                               | Yes      | Accelerator Id                                                                                                                                                   |
| alertId        | String                                                               | Yes      | Alert Id                                                                                                                                                         |
| alertType      | String                                                               | Yes      | Alert Type                                                                                                                                                       |
| labels         | Map                                                                  | No       | Alert Labels                                                                                                                                                     |
| message        | String                                                               | Yes      | Alert Message                                                                                                                                                    |
| startTime      | [Timestamp](/api-reference/api-introduction/instruction/datatype.md) | Yes      | <p>Alert Start Time</p><p>Uses the <code>ISO8601</code> standard and UTC time. Format: <code>YYYY-MM-ddTHH:mm:ssZ</code>.</p>                                    |
| endTime        | [Timestamp](/api-reference/api-introduction/instruction/datatype.md) | No       | <p>Alert Recovery Time</p><p>Null: Alert Not Recovered</p><p>Uses the <code>ISO8601</code> standard and UTC time. Format: <code>YYYY-MM-ddTHH:mm:ssZ</code>.</p> |

## AcceleratorLog

Accelerator Log Information

| Parameter Name | Type    | Required | Description       |
| -------------- | ------- | -------- | ----------------- |
| logUrl         | String  | Yes      | Download URL      |
| logName        | String  | Yes      | Log Name          |
| logSize        | Integer | Yes      | Log Size, Unit: B |

## AcceleratorMetricsData

Accelerator Metrics Data

| Parameter Name          | Type    | Required | Description                                                                                  |
| ----------------------- | ------- | -------- | -------------------------------------------------------------------------------------------- |
| requestCount            | Integer | Yes      | Request Count                                                                                |
| averageDownloadSpeed    | Double  | Yes      | Average Download Speed. Unit: bps                                                            |
| averageFirstByteTime    | Double  | Yes      | Average Time to First Byte. Unit: ms                                                         |
| averageSslHandshakeTime | Double  | Yes      | Average SSL Handshake Time, only supported for Layer 7 protocols (http/https). Unit: ms      |
| averageRequestTime      | Double  | Yes      | Average Request Time. Unit: ms                                                               |
| time                    | String  | Yes      | <p>Data Time</p><p>Format: <code>YYYY-MM-ddTHH:mm:ssZ</code></p><p>Time Granularity: 60s</p> |

## AcceleratorTrafficData

Accelerator Bandwidth Data

| Parameter Name | Type    | Required | Description                                                                                   |
| -------------- | ------- | -------- | --------------------------------------------------------------------------------------------- |
| internetRX     | Integer | Yes      | Inbound Bandwidth. Unit: bps                                                                  |
| internetTX     | Integer | Yes      | Outbound Bandwidth. Unit: bps                                                                 |
| time           | String  | Yes      | <p>Data Time</p><p>Format: <code>YYYY-MM-ddTHH:mm:ssZ</code></p><p>Time Granularity: 300s</p> |

## AccelerateRegion

Accelerator Acceleration Region Information

| Parameter Name     | Type    | Required | Description                                                  |
| ------------------ | ------- | -------- | ------------------------------------------------------------ |
| accelerateRegionId | String  | Yes      | [Region Id](#region)                                         |
| bandwidth          | Integer | No       | Default Value: Maximum Bandwidth in Package Plan, Unit: Mbps |
| vip                | String  | No       | Acceleration Region Access Point VIP                         |

## AccelerateRegionInfo

Accelerator Acceleration Region Information

| Parameter Name         | Type    | Required | Description                                                                                      |
| ---------------------- | ------- | -------- | ------------------------------------------------------------------------------------------------ |
| accelerateRegionId     | String  | Yes      | [Region Id](#region)                                                                             |
| accelerateRegionName   | String  | Yes      | Region Name                                                                                      |
| accelerateRegionStatus | String  | Yes      | Acceleration Region Status, see [Acceleration Region Status Table](#accelerateregionstatusvalue) |
| vip                    | String  | Yes      | Acceleration Region Access Point VIP                                                             |
| bandwidth              | Integer | Yes      | Access Point Bandwidth Limit, Unit: Mbps                                                         |

## AccelerateRegionStatusValue

Acceleration Region Status

| State        | Description               |
| ------------ | ------------------------- |
| InProcessing | Configuration in Progress |
| Success      | Configuration Successful  |
| Abnormal     | Acceleration Paused       |

## AccelerationRuleL4Listener

Accelerator Acceleration Rule L4 Configuration

| Parameter Name | Type    | Required | Description                                                                                                                                                                                                                                              |
| -------------- | ------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| port           | Integer | No       | <p>Acceleration Port</p><p>Either port or portRange is required, but not both. Ports cannot be repeated</p><p>Value Range: <strong>1</strong>\~<strong>65535</strong></p>                                                                                |
| backPort       | Integer | No       | <p>Origin Port</p><p>Default equals port</p><p>Value Range: <strong>1</strong>\~<strong>65535</strong></p>                                                                                                                                               |
| portRange      | String  | No       | Acceleration Port Range. Either port or portRange is required, but not both. Ports cannot be repeated. Value Range: **1**\~**65535**. Use slash (/) to separate start and end ports. Correct Example: **1/200**; Incorrect Example: **200/1**            |
| backPortRange  | String  | No       | <p>Origin Port Range</p><p>Default equals portRange</p><p>Value Range: <strong>1</strong>\~<strong>65535</strong>. Use slash (/) to separate start and end ports. Correct Example: <strong>1/200</strong>; Incorrect Example: <strong>200/1</strong></p> |
| protocol       | String  | Yes      | <p>Acceleration Protocol</p><ul><li>tcp: TCP Protocol.</li><li>udp: UDP Protocol.</li></ul>                                                                                                                                                              |

## AccelerationRuleL7Listener

Accelerator Acceleration Rule L7 Configuration

| Parameter Name | Type    | Required | Description                                                                                                                                                                                                                                              |
| -------------- | ------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| port           | Integer | No       | <p>Acceleration Port</p><p>Either port or portRange is required, but not both. Ports cannot be repeated</p><p>Value Range: <strong>1</strong>\~<strong>65535</strong></p>                                                                                |
| backPort       | Integer | No       | <p>Origin Port</p><p>Default equals port</p><p>Value Range: <strong>1</strong>\~<strong>65535</strong></p>                                                                                                                                               |
| portRange      | String  | No       | Acceleration Port Range. Either port or portRange is required, but not both. Ports cannot be repeated. Value Range: **1**\~**65535**. Use slash (/) to separate start and end ports. Correct Example: **1/200**; Incorrect Example: **200/1**            |
| backPortRange  | String  | No       | <p>Origin Port Range</p><p>Default equals portRange</p><p>Value Range: <strong>1</strong>\~<strong>65535</strong>. Use slash (/) to separate start and end ports. Correct Example: <strong>1/200</strong>; Incorrect Example: <strong>200/1</strong></p> |
| protocol       | String  | Yes      | <p>Acceleration Protocol</p><ul><li>http: HTTP Protocol.</li><li>https: HTTPS Protocol.</li></ul>                                                                                                                                                        |
| backProtocol   | String  | No       | <p>Origin Acceleration Protocol, default equals protocol</p><ul><li>http: HTTP Protocol.</li><li>https: HTTPS Protocol.</li></ul>                                                                                                                        |
| host           | String  | No       | Origin Custom Host                                                                                                                                                                                                                                       |

## AccelerationRuleProtocolOpts

Accelerator Acceleration Rule Protocol Options

| Parameter Name | Type    | Required | Description                                                                                                                                      |
| -------------- | ------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| toa            | Boolean | No       | <p>Whether to Enable TOA, only applies to L4 acceleration</p><p>Default Value: false</p>                                                         |
| toaValue       | Integer | No       | TOA Version Number, Default Value: 253                                                                                                           |
| websocket      | Boolean | No       | <p>Whether to Enable WebSocket, only applies to L7 acceleration</p><p>Default Value: false</p>                                                   |
| proxyProtocol  | Boolean | No       | <p>Whether to Enable ProxyProtocol, only applies to L4 acceleration</p><p>Default Value: false</p>                                               |
| gzip           | Boolean | No       | <p>Whether to Enable Gzip Compression, only applies to L7 acceleration</p><p>Default Value: false</p>                                            |
| sniCheck       | Boolean | No       | <p>Whether to Enable SNI Check, TCP Protocol Proxy Supports SNI Verification, only applies to domain accelerators</p><p>Default Value: false</p> |
| httpRedirect   | Boolean | No       | <p>Whether to Enable HTTP:80 Redirect to HTTPS:443, must configure both HTTP:80 and HTTPS:443 acceleration rules</p><p>Default Value: false</p>  |

## AcceleratorInfo

Accelerator Information

| Parameter Name    | Type                                                                 | Required | Description                                                                                                                            |
| ----------------- | -------------------------------------------------------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| acceleratorId     | String                                                               | Yes      | Accelerator Id                                                                                                                         |
| acceleratorType   | String                                                               | Yes      | Accelerator Type, see [Accelerator Type Table](#acceleratortypevalue)                                                                  |
| acceleratorName   | String                                                               | Yes      | Accelerator Name                                                                                                                       |
| chargeType        | String                                                               | Yes      | Billing Type, see [Billing Type Table](#acceleratorchargetype)                                                                         |
| domain            | [Domain](#domain)                                                    | No       | <p>Acceleration Domain</p><p>If the accelerator is IP acceleration, domain returns empty string</p>                                    |
| acceleratorStatus | String                                                               | Yes      | Accelerator Status, see [Accelerator Status Table](#acceleratorstatusvalue)                                                            |
| cname             | String                                                               | Yes      | Accelerator CNAME                                                                                                                      |
| origin            | [OriginInfo](#origininfo)                                            | Yes      | Accelerator Origin Information                                                                                                         |
| accelerateRegions | Array of [AccelerateRegionInfo](#accelerateregioninfo)               | Yes      | Acceleration Region Information                                                                                                        |
| l4Listeners       | Array of [AccelerationRuleL4Listener](#accelerationrulel4listener)   | Yes      | Accelerator Acceleration Rule L4 Configuration                                                                                         |
| l7Listeners       | Array of [AccelerationRuleL7Listener](#accelerationrulel7listener)   | Yes      | Accelerator Acceleration Rule L7 Configuration                                                                                         |
| protocolOpts      | [AccelerationRuleProtocolOpts](#accelerationruleprotocolopts)        | Yes      | Accelerator Acceleration Rule Protocol Options                                                                                         |
| certificate       | [CertificateInfo](#certificateinfo)                                  | Yes      | Accelerator Certificate Configuration                                                                                                  |
| accessControl     | [AccessControl](#accesscontrol)                                      | Yes      | Accelerator Access Control                                                                                                             |
| healthCheck       | [HealthCheck](#healthcheck)                                          | Yes      | Health Check Configuration                                                                                                             |
| createTime        | [Timestamp](/api-reference/api-introduction/instruction/datatype.md) | Yes      | <p>Accelerator Creation Time</p><p>Uses the <code>ISO8601</code> standard and UTC time. Format: <code>YYYY-MM-ddTHH:mm:ssZ</code>.</p> |
| resourceGroupId   | String                                                               | Yes      | Resource Group ID to which the accelerator belongs                                                                                     |

## AcceleratorChargeType

Accelerator Billing Type

| Type             | Description                    |
| ---------------- | ------------------------------ |
| ByTrafficPackage | Traffic Package Billing        |
| ByBandwidth95    | Merged 95th Percentile Billing |
| ByBandwidth      | Fixed Bandwidth Billing        |
| ByTraffic        | Traffic Billing                |
| ByPoc            | POC Testing                    |

## AcceleratorStatusValue

Accelerator Status

| State             | Description      |
| ----------------- | ---------------- |
| Accelerating      | Accelerating     |
| NotAccelerate     | Not Accelerating |
| Deploying         | Deploying        |
| StopAccelerate    | Stopped          |
| AccelerateFailure | Failed           |

## AcceleratorTypeValue

Accelerator Type

| Type          | Description                                                                                             |
| ------------- | ------------------------------------------------------------------------------------------------------- |
| CustomRouting | <p>Custom Routing Acceleration</p><p>Precise acceleration of a single region through independent IP</p> |
| Standard      | <p>Standard Acceleration</p><p>Global region acceleration through Anycast IP</p>                        |

## AccessControl

Accelerator Access Control

| Parameter Name | Type                                             | Required | Description                      |
| -------------- | ------------------------------------------------ | -------- | -------------------------------- |
| enable         | Boolean                                          | Yes      | Whether to Enable Access Control |
| rules          | Array of [AccessControlRule](#accesscontrolrule) | Yes      | Access Control Rules             |

## AccessControlRule

Accelerator Access Control Rule

| Parameter Name | Type   | Required | Description                                                                                                                                                                                                   |
| -------------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| listener       | String | Yes      | <p>Acceleration Rule to which Access Control Applies</p><ul><li>Single Port: $protocol:$port, Example: http:80</li><li>Port Range: $protocol:$portRange, Example: tcp:80/100</li><li>All Ports: all</li></ul> |
| directory      | String | No       | <p>Access Control Directory</p><p>Cannot be configured for Layer 4 port acceleration, supports wildcard: \*</p>                                                                                               |
| cidrIp         | String | Yes      | <p>Access Control IP Address Range, supports CIDR format and IPv4 format</p><p>Supports batch configuration, comma-separated</p>                                                                              |
| policy         | String | Yes      | <p>Accelerator Access Control Policy</p><ul><li>accept-Allow Access</li><li>deny-Deny Access</li></ul>                                                                                                        |
| note           | String | No       | Remark                                                                                                                                                                                                        |

## CertificateInfo

Certificate Information

| Parameter Name   | Type                                                                 | Required | Description                                                                                                                                               |
| ---------------- | -------------------------------------------------------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| certificateId    | String                                                               | No       | <p>Certificate Id</p><p>For compatibility with the old certificate upload format, this field may be empty in <code>DescribeAccelerators</code> return</p> |
| certificateLabel | String                                                               | Yes      | Custom Certificate Label                                                                                                                                  |
| common           | String                                                               | Yes      | Certificate Common Name                                                                                                                                   |
| fingerprint      | String                                                               | Yes      | MD5 Certificate Fingerprint                                                                                                                               |
| issuer           | String                                                               | Yes      | Certificate Issuer                                                                                                                                        |
| sans             | Array of String                                                      | Yes      | Subject Alternative Names                                                                                                                                 |
| algorithm        | String                                                               | Yes      | Encryption Algorithm                                                                                                                                      |
| createTime       | [Timestamp](/api-reference/api-introduction/instruction/datatype.md) | Yes      | <p>Certificate Creation Time</p><p>Uses the <code>ISO8601</code> standard and UTC time. Format: <code>YYYY-MM-ddTHH:mm:ssZ</code>.</p>                    |
| startTime        | [Timestamp](/api-reference/api-introduction/instruction/datatype.md) | Yes      | <p>Certificate Start Time</p><p>Uses the <code>ISO8601</code> standard and UTC time. Format: <code>YYYY-MM-ddTHH:mm:ssZ</code>.</p>                       |
| endTime          | [Timestamp](/api-reference/api-introduction/instruction/datatype.md) | Yes      | <p>Certificate Expiration Time</p><p>Uses the <code>ISO8601</code> standard and UTC time. Format: <code>YYYY-MM-ddTHH:mm:ssZ</code>.</p>                  |
| expired          | Boolean                                                              | Yes      | Whether the Certificate is Expired                                                                                                                        |
| resourceGroupId  | String                                                               | No       | <p>Resource Group ID to which the instance belongs</p><p><code>DescribeAccelerators</code> does not return this field</p>                                 |

## Domain

Accelerator Acceleration Domain Information

| Parameter Name | Type   | Required | Description                                                                                                |
| -------------- | ------ | -------- | ---------------------------------------------------------------------------------------------------------- |
| domain         | String | Yes      | <p>Acceleration Primary Domain</p><p>Supports wildcard domain, example: \*.xx.com</p>                      |
| relateDomains  | String | No       | <p>Related Domains</p><p>Supports batch domain configuration, maximum 10, comma or semicolon-separated</p> |

## HealthCheck

Health Check Configuration

| Parameter Name | Type    | Required | Description                                                                                                                         |
| -------------- | ------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| enable         | Boolean | Yes      | <p>Whether to Enable Health Check</p><p>If health check is disabled, Alerts will be set to false and probe port will be cleared</p> |
| alarm          | Boolean | No       | <p>Whether to Enable Exception Alert</p><p>Default Value: false</p>                                                                 |
| port           | Integer | No       | <p>Probe Port</p><p>If probe port is not configured, all ports except UDP and TCP port ranges will be probed by default</p>         |

## Origin

Accelerator Origin Information

| Parameter Name | Type   | Required | Description                                                                                                                                                                                                            |
| -------------- | ------ | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| originRegionId | String | No       | <p><a href="#region">Region Id</a></p><ul><li><code>CreateAccelerator</code> requires this parameter</li><li><code>ModifyAcceleratorOrigin</code> does not support this parameter</li></ul>                            |
| origin         | String | Yes      | <p>Acceleration Origin</p><ul><li>CNAME: Only one can be configured</li><li>IP: Can be configured in batch, comma or semicolon-separated</li></ul>                                                                     |
| backupOrigin   | String | No       | <p>Backup Origin</p><p>backupOrigin can only take effect when origin is configured with IP</p><ul><li>CNAME: Only one can be configured</li><li>IP: Can be configured in batch, comma or semicolon-separated</li></ul> |

## OriginInfo

Accelerator Origin Information

| Parameter Name   | Type   | Required | Description                                                                                                                                                                                                            |
| ---------------- | ------ | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| originRegionId   | String | Yes      | [Region Id](#region)                                                                                                                                                                                                   |
| originRegionName | String | Yes      | Region Name                                                                                                                                                                                                            |
| origin           | String | Yes      | <p>Acceleration Origin</p><ul><li>CNAME: Only one can be configured</li><li>IP: Can be configured in batch, comma or semicolon-separated</li></ul>                                                                     |
| backupOrigin     | String | No       | <p>Backup Origin</p><p>backupOrigin can only take effect when origin is configured with IP</p><ul><li>CNAME: Only one can be configured</li><li>IP: Can be configured in batch, comma or semicolon-separated</li></ul> |

## Region

Available Zone Information

| Parameter Name | Type   | Required | Description                               |
| -------------- | ------ | -------- | ----------------------------------------- |
| regionId       | String | Yes      | <p>Available Zone ID.<br>Example: SEL</p> |
| regionName     | String | Yes      | Available Zone Name                       |

## ResourceGroupBandwidthLimitInfo

Available Zone Information

| Parameter Name  | Type    | Required | Description                                                                                                                                                                                                     |
| --------------- | ------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| resourceGroupId | String  | Yes      | Resource Group ID.                                                                                                                                                                                              |
| enable          | Boolean | Yes      | <p>Whether to Enable Resource Group Bandwidth Limit.</p><p>If resource group bandwidth limit is not enabled, the bandwidth limit set in <a href="#accelerateregioninfo">Acceleration Region</a> will apply.</p> |
| bandwidth       | Integer | Yes      | <p>Shared Bandwidth Limit,</p><p>Unit: Mbps, Minimum Value: 1.</p><p>Maximum Value is the maximum bandwidth limit set for the account.</p>                                                                      |

## StatusCodeDetailData

CDN Status Code Details

| Parameter Name | Type    | Required | Description |
| -------------- | ------- | -------- | ----------- |
| code           | String  | Yes      | Status Code |
| count          | Integer | Yes      | Count       |

## StatusCodeData

Status Code Data

| Parameter Name | Type                                                   | Required | Description                                                      |
| -------------- | ------------------------------------------------------ | -------- | ---------------------------------------------------------------- |
| time           | String                                                 | Yes      | <p>Data Time</p><p>Format: <code>YYYY-MM-ddTHH:mm:ssZ</code></p> |
| detail         | Array of [StatusCodeDetailData](#statuscodedetaildata) | Yes      | Status Code Details                                              |
