Skip to content

List a cloud's plans

GET /v1/clouds/{cloud}/plans

Lists the plans (server sizes) you can choose on a cloud, with their price a month in US cents. Disk and data transfer are this cloud's.

Some plans are offered in some regions only (regions). Pass region to list only the plans offered there; a region the cloud doesn't have gives an empty list. A plan that's sold out for now is still listed: GET /v1/clouds/{cloud}/availability says what's in stock.

Plans the cloud no longer sells aren't listed (servers already on one keep it). For custom, the one plan listed is the Own servers plan: one price a month for all the servers you connect. 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 priceMonthlyCents

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

One of: priceMonthlyCentsnamevcpusmemoryGbdiskGb

order

string Default asc

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

One of: ascdesc

region

string 1 to 64 characters

Only the plans offered in this region: a region's id from GET /v1/clouds/{cloud}/regions.

Example request

curl "https://api.rabbitflare.com/v1/clouds/digitalocean/plans?region=fra1" \
  -H "Authorization: Bearer $RABBITFLARE_TOKEN"

Response

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

The Plan object's fields 15 fields
FieldType and description
id

string

The plan's id. Pass it as planId when you create or resize a server.

name

string

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

description

string

What the plan suits, or what its type of server is, in a sentence.

cloud

string

The cloud these values are for: a plan offered on two clouds can have more disk or data transfer on one.

Known values: digitaloceanvultrhetznerlinodegcpedgecustom More can appear.

line

string or null

The type of server, as the panel's headings show it (for example General Purpose). Null for the Own servers plan.

option

string or null

The choice within the type, where there is one (for example Premium Intel); otherwise null.

architecture

string or null

The kind of processor: x86_64 (Intel or AMD) or arm64. Null for the Own servers plan: its servers can have either.

Known values: x86_64arm64 More can appear.

vcpus

number

Virtual CPUs. 0 for the Own servers plan: each of your servers has its own.

memoryGb

number

Memory, in GB. 0 for the Own servers plan.

diskGb

number

Disk, in GB, on this cloud. 0 for the Own servers plan.

transferTb

number

Data transfer included each month, in TB, on this cloud. 0 for the Own servers plan.

priceMonthlyCents

integer

The price a month for a new server, in US cents, before any offer (during a sale the first invoices can be lower). For the Own servers plan, one price covers all of the account's own servers.

currency

string Always "usd"

Always usd: amounts are in US cents.

regions

array of strings or null

The only regions the plan is offered in, or null when it's offered in every region of the cloud.

popular

boolean

Whether the panel suggests it as a popular choice.

Example response

200 OK
{
  "data": [
    {
      "id": "starter",
      "name": "Starter",
      "description": "Personal sites, portfolios and small blogs.",
      "cloud": "digitalocean",
      "line": "Basic",
      "option": "Regular",
      "architecture": "x86_64",
      "vcpus": 1,
      "memoryGb": 1,
      "diskGb": 25,
      "transferTb": 1,
      "priceMonthlyCents": 1200,
      "currency": "usd",
      "regions": null,
      "popular": false
    },
    {
      "id": "standard",
      "name": "Standard",
      "description": "Business sites and content-heavy blogs.",
      "cloud": "digitalocean",
      "line": "Basic",
      "option": "Regular",
      "architecture": "x86_64",
      "vcpus": 1,
      "memoryGb": 2,
      "diskGb": 50,
      "transferTb": 2,
      "priceMonthlyCents": 2600,
      "currency": "usd",
      "regions": null,
      "popular": true
    },
    {
      "id": "business",
      "name": "Business",
      "description": "WooCommerce stores and membership sites.",
      "cloud": "digitalocean",
      "line": "Basic",
      "option": "Regular",
      "architecture": "x86_64",
      "vcpus": 2,
      "memoryGb": 4,
      "diskGb": 80,
      "transferTb": 4,
      "priceMonthlyCents": 5200,
      "currency": "usd",
      "regions": null,
      "popular": false
    }
  ],
  "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