Skip to content

List clouds

GET /v1/clouds

Lists the clouds you can create servers on, and custom for servers you already have at any provider, which you connect with one command.

Use a cloud's id to list its regions and plans, to check what's in stock, and as cloud when you create a server. A cloud that isn't open to your account isn't listed. GET /v1/account gives the same ids in the order the panel shows them.

Scopes

Any valid token can make this request.

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: name

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" \
  -H "Authorization: Bearer $RABBITFLARE_TOKEN"

Response

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

The Cloud object's fields 5 fields
FieldType and description
id

string

The cloud's id. Use it to list its regions and plans, and to create a server.

Known values: digitaloceanvultrhetznerlinodegcpedgecustom More can appear.

name

string

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

storage

string

The kind of disk its servers have, as the panel shows it next to the disk size (for example SSD or NVMe SSD).

metered

boolean

Whether data transfer beyond what the plan includes is billed by use, to your card.

ownServer

boolean

Whether this is custom: servers you already have at any provider, connected with one command. Their size and location are your provider's.

Example response

200 OK
{
  "data": [
    {
      "id": "digitalocean",
      "name": "DigitalOcean",
      "storage": "SSD",
      "metered": false,
      "ownServer": false
    },
    {
      "id": "vultr",
      "name": "Vultr",
      "storage": "NVMe SSD",
      "metered": false,
      "ownServer": false
    },
    {
      "id": "custom",
      "name": "Your own server",
      "storage": "disk",
      "metered": false,
      "ownServer": true
    }
  ],
  "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.

Rate limit

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

Added on .

Popular

API docs