Get data center list
Retrieve all available data centers. Use this endpoint to view location options before deploying VPS instances.
Retrieve all available data centers.
Use this endpoint to view location options before deploying VPS instances.
Authorizations
AuthorizationstringRequired
API Token authentication
Responses
200
Success response
application/json
Array of VPS.V1.DataCenter.DataCenterResource
idintegerOptionalExample:
Data center ID
29namestring · nullableOptionalExample:
Data center name
phxlocationstring · nullableOptionalExample:
Data center location country (two letter code)
uscitystring · nullableOptionalExample:
Data center location city
Phoenixcontinentstring · nullableOptionalExample:
Data center location continent
North America401
Unauthenticated response
application/json
500
Error response
application/json
get/api/vps/v1/data-centers
GET /api/vps/v1/data-centers HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"id": 29,
"name": "phx",
"location": "us",
"city": "Phoenix",
"continent": "North America"
}
]Last updated
Was this helpful?