List All Regions
- Name
get
- Type
- /v1/regions
- Description
Send a
GET
request to list a regions.
Request
Example
curl -X GET "https://api.simplystack.com/v1/regions" \
-H "Content-Type: application/json" \
-H "Authorization: Token d359ad9cc9422b5ff07aede0cd2707da4ff82be0" \
Response
JSON object with a key named regions
which is an array of the following attributes for the regions:
Attributes
Example
json
{
"regions": [
{
"available": true,
"features": ["floating_ips"],
"name": "Frankfurt",
"slug": "fra"
},
{
"available": true,
"features": ["floating_ips"],
"name": "Dallas",
"slug": "dal"
}
],
"meta": {
"pagination": {
"current_page": 1,
"next_page": null,
"pages": 1,
"per_page": 25,
"previous_page": null,
"total": 2
},
"query": null,
"sort": null
}
}