Skip to main content
GET
/
api
/
v1
/
clusters
/
hetzner
/
locations
List available Hetzner locations
import requests

url = "https://platform.ankra.app/api/v1/clusters/hetzner/locations"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
[
  {
    "name": "<string>",
    "description": "<string>",
    "city": "<string>",
    "country": "<string>",
    "network_zone": "<string>"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

authorization
string | null

Query Parameters

credential_id
string<uuid>
required

Hetzner credential ID to use for API access

Response

Locations retrieved from Hetzner API

name
string
required
description
string
required
city
string
required
country
string
required
network_zone
string
required