import os
from gcore import Gcore
client = Gcore(
api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted
)
response = client.dns.locations.list_regions()
print(response)
Copy
Ask AI
{}
DNS Locations
Region Locations
List of All locations regions.
GET
/
dns
/
v2
/
locations
/
regions
Python
Copy
Ask AI
import os
from gcore import Gcore
client = Gcore(
api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted
)
response = client.dns.locations.list_regions()
print(response)