List hosting locations
curl --request GET \
--url https://my.server.express/api/v1/hosting/locationsconst options = {method: 'GET'};
fetch('https://my.server.express/api/v1/hosting/locations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/hosting/locations"
response = requests.get(url)
print(response.text){
"success": true,
"data": [
{
"slug": "<string>",
"city": "<string>",
"countryCode": "GB",
"featured": true
}
]
}{
"success": false,
"error": "<string>"
}Hosting
List hosting locations
Locations that are switched on and have a live Plesk node — nowhere an order would fail.
GET
/
v1
/
hosting
/
locations
List hosting locations
curl --request GET \
--url https://my.server.express/api/v1/hosting/locationsconst options = {method: 'GET'};
fetch('https://my.server.express/api/v1/hosting/locations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/hosting/locations"
response = requests.get(url)
print(response.text){
"success": true,
"data": [
{
"slug": "<string>",
"city": "<string>",
"countryCode": "GB",
"featured": true
}
]
}{
"success": false,
"error": "<string>"
}