Skip to main content
GET
/
cdn
/
alibaba_regions
Python
import os
from gcore import Gcore

client = Gcore(
    api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
)
alibaba_regions = client.cdn.list_alibaba_regions()
print(alibaba_regions)
[
  {
    "id": 1,
    "code": "cn-hangzhou",
    "name": "China (Hangzhou)"
  },
  {
    "id": 2,
    "code": "cn-shanghai",
    "name": "China (Shanghai)"
  }
]

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Response

200 - application/json

Successful.

id
integer

Region ID.

code
string

Region code.

name
string

Region name.

Example:
[
{
"id": 1,
"code": "cn-hangzhou",
"name": "China (Hangzhou)"
},
{
"id": 2,
"code": "cn-shanghai",
"name": "China (Shanghai)"
}
]