116 lines
2.3 KiB
Markdown
116 lines
2.3 KiB
Markdown
[Skip to content](https://coolify.io/docs/api-reference/api/operations/get-hetzner-locations#VPContent)
|
||
|
||
Return to top
|
||
|
||
Get Hetzner Locations[](https://coolify.io/docs/api-reference/api/operations/get-hetzner-locations#get-hetzner-locations)
|
||
|
||
===========================================================================================================================
|
||
|
||
GET
|
||
|
||
/hetzner/locations
|
||
|
||
Get all available Hetzner datacenter locations.
|
||
|
||
Authorizations[](https://coolify.io/docs/api-reference/api/operations/get-hetzner-locations#authorizations)
|
||
|
||
-------------------------------------------------------------------------------------------------------------
|
||
|
||
bearerAuth
|
||
|
||
Go to `Keys & Tokens` / `API tokens` and create a new token. Use the token as the bearer token.
|
||
|
||
Type
|
||
|
||
HTTP (bearer)
|
||
|
||
Parameters[](https://coolify.io/docs/api-reference/api/operations/get-hetzner-locations#parameters)
|
||
|
||
-----------------------------------------------------------------------------------------------------
|
||
|
||
### Query Parameters
|
||
|
||
cloud\_provider\_token\_uuid
|
||
|
||
Cloud provider token UUID. Required if cloud\_provider\_token\_id is not provided.
|
||
|
||
Type
|
||
|
||
string
|
||
|
||
cloud\_provider\_token\_id
|
||
|
||
Deprecated: Use cloud\_provider\_token\_uuid instead. Cloud provider token UUID.
|
||
|
||
Type
|
||
|
||
string
|
||
|
||
Responses[](https://coolify.io/docs/api-reference/api/operations/get-hetzner-locations#responses)
|
||
|
||
---------------------------------------------------------------------------------------------------
|
||
|
||
200401404
|
||
|
||
List of Hetzner locations.
|
||
|
||
Content-Type
|
||
|
||
application/json
|
||
|
||
SchemaJSON
|
||
|
||
JSON
|
||
|
||
\[\
|
||
\
|
||
{\
|
||
\
|
||
"id": 0,\
|
||
\
|
||
"name": "string",\
|
||
\
|
||
"description": "string",\
|
||
\
|
||
"country": "string",\
|
||
\
|
||
"city": "string",\
|
||
\
|
||
"latitude": 0,\
|
||
\
|
||
"longitude": 0\
|
||
\
|
||
}\
|
||
\
|
||
\]
|
||
|
||
GET
|
||
|
||
/hetzner/locations
|
||
|
||
Playground[](https://coolify.io/docs/api-reference/api/operations/get-hetzner-locations#playground)
|
||
|
||
-----------------------------------------------------------------------------------------------------
|
||
|
||
Authorization
|
||
|
||
bearerAuth
|
||
|
||
Variables
|
||
|
||
Key
|
||
|
||
Value
|
||
|
||
cloud\_provider\_token\_uuid
|
||
|
||
cloud\_provider\_token\_id
|
||
|
||
Try it out
|
||
|
||
Samples[](https://coolify.io/docs/api-reference/api/operations/get-hetzner-locations#samples)
|
||
|
||
-----------------------------------------------------------------------------------------------
|
||
|
||
Powered by [VitePress OpenAPI](https://github.com/enzonotario/vitepress-openapi)
|