import osfrom gcore import Gcoreclient = Gcore( api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted)aws_regions = client.cdn.list_aws_regions()print(aws_regions)
Copy
Ask AI
[ { "id": 1, "code": "us-east-1", "name": "US East (N. Virginia)" }, { "id": 2, "code": "us-east-2", "name": "US East (Ohio)" }]
Logs uploader
Get AWS regions list
Get the list of Amazon AWS regions.
GET
/
cdn
/
aws_regions
Python
Copy
Ask AI
import osfrom gcore import Gcoreclient = Gcore( api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted)aws_regions = client.cdn.list_aws_regions()print(aws_regions)
Copy
Ask AI
[ { "id": 1, "code": "us-east-1", "name": "US East (N. Virginia)" }, { "id": 2, "code": "us-east-2", "name": "US East (Ohio)" }]