GET
/
dns
/
v2
/
locations
Python
from gcore import Gcore

client = Gcore(
    api_key="My API Key",
)
locations = client.dns.locations.list()
print(locations.continents)
{
  "continents": {},
  "countries": {},
  "regions": {}
}

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

AllResponse

The response is of type object.