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

client = Gcore(
    api_key="My API Key",
)
aws_regions = client.cdn.list_aws_regions()
print(aws_regions)
[
  {
    "id": 1,
    "code": "us-east-1",
    "name": "US East (N. Virginia)"
  },
  {
    "id": 2,
    "code": "us-east-2",
    "name": "US East (Ohio)"
  }
]

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.