Skip to content

List a cloud's regions

GET /v1/clouds/{cloud}/regions

Lists the regions (data centers) of a cloud where servers can be created. Pass a region's id as region when you create a server.

Your own servers (custom) have no regions here: the list is empty. A cloud that isn't open to your account, or that doesn't exist, answers 404 not_found.

Scopes

Any valid token can make this request.

Path parameters

FieldType and description
cloud Required

string

A cloud's id, as GET /v1/clouds lists them: digitalocean, vultr, hetzner, linode, gcp, edge (Amazon EC2) or custom (your own servers).

One of: digitaloceanvultrhetznerlinodegcpedgecustom

Query parameters

FieldType and description
limit

integer 1 to 100 Default 25

How many items to return, from 1 to 100. Default 25.

cursor

string 1 to 1,024 characters

The nextCursor of the previous page, exactly as it was given. Leave it out for the first page.

sort

string Default name

The field to sort by. Each list names the fields it can be sorted by.

One of: namecitycountrycontinent

order

string Default asc

asc (smallest or oldest first) or desc. Each list has its own default.

One of: ascdesc

Example request

curl "https://api.rabbitflare.com/v1/clouds/digitalocean/regions" \
  -H "Authorization: Bearer $RABBITFLARE_TOKEN"

Response

200 OK Returns a list of Region objects in data, with a Pagination object in pagination.

The Region object's fields 7 fields
FieldType and description
id

string

The region's id. Pass it as region when you create a server.

name

string

The region's name, as the panel shows it.

city

string

The city the data center is in, or near.

country

string

The country, in English.

countryCode

string

The country's two-letter ISO 3166-1 code.

continent

string

The part of the world, as the panel groups regions.

Known values: North AmericaSouth AmericaEuropeAsia PacificMiddle East & Africa More can appear.

cloud

string

The cloud the region belongs to.

Known values: digitaloceanvultrhetznerlinodegcpedgecustom More can appear.

Example response

200 OK
{
  "data": [
    {
      "id": "ams3",
      "name": "Amsterdam 3",
      "city": "Amsterdam",
      "country": "Netherlands",
      "countryCode": "NL",
      "continent": "Europe",
      "cloud": "digitalocean"
    },
    {
      "id": "fra1",
      "name": "Frankfurt 1",
      "city": "Frankfurt",
      "country": "Germany",
      "countryCode": "DE",
      "continent": "Europe",
      "cloud": "digitalocean"
    },
    {
      "id": "lon1",
      "name": "London 1",
      "city": "London",
      "country": "United Kingdom",
      "countryCode": "GB",
      "continent": "Europe",
      "cloud": "digitalocean"
    },
    {
      "id": "nyc3",
      "name": "New York 3",
      "city": "New York",
      "country": "United States",
      "countryCode": "US",
      "continent": "North America",
      "cloud": "digitalocean"
    }
  ],
  "pagination": {
    "limit": 25,
    "hasMore": false,
    "nextCursor": null
  }
}

Errors

The errors this request can answer besides those every request can (a missing token, a missing scope, the rate limits). Each answer is an Error object (see Errors).

Status and codeWhen, and what to do
400 invalid_cursor

The cursor isn't one this list gave, or was made with other filters or another sort.

Start again from the first page, or keep the filters and sort the cursor was made with.

400 invalid_parameter

A query parameter is unknown or has a wrong value (fields names it), or the query is too long: over 16,384 characters, or a parameter's name over 64.

Correct or remove the parameter named in fields.

404 not_found

The resource doesn't exist, or isn't this account's.

Check the id. Ids of other accounts' resources answer the same way.

Rate limit

Read requests: 120 a minute per token, 240 per account. More in Rate limits.

Added on .

Popular

API docs