> 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/cdn/common/describegeoregions.md).

# DescribeGeoRegions

## 1. API Description

This API (DescribeGeoRegions) is used to query the list of available countries/regions for geographic restrictions configuration.

## 2. Output Parameters

| Parameter Name | Type                                                                                                 | Description                                                                                              |
| -------------- | ---------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
| regionSet      | Array of [GeoRegion](https://docs.console.zenlayer.com/api-reference/cdn/datastructure.md#georegion) | Collection of country/region information.                                                                |
| requestId      | String                                                                                               | Unique request ID. Returned with every request. This request's requestId is needed when troubleshooting. |

## 3. Code Example

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

1. **Query the list of countries/regions.**

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

Request:
{
}

Response:
{
  "requestId": "T6883FCD0-3E7D-44EA-A517-A421A52A27F4",
  "response": {
    "requestId": "T6883FCD0-3E7D-44EA-A517-A421A52A27F4",
    "regionSet": [
      {
        "regionId": "CN",
        "regionName": "China"
      },
      {
        "regionId": "US",
        "regionName": "United States of America"
      }
    ]
  }
}
```

{% endtab %}
{% endtabs %}

## 4. Error Codes

The following includes error codes encountered in business logic. For other error codes, see [Common Error Codes](https://docs.console.zenlayer.com/api-reference/api-introduction/instruction/commonerrorcode.md).
