Skip to content

Get what's in stock on a cloud

GET /v1/clouds/{cloud}/availability

Says which plans can be created in each region of a cloud right now, so you can choose a region and plan that won't be refused as sold out.

regions maps each region's id to the ids of the plans in stock there. It is null when the cloud doesn't report its stock: then any plan it lists can be ordered, and the order is still checked when it's placed. The answer can be a few minutes old. Only plans open to your account are listed.

This asks the cloud, so it counts as a heavy request. 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

Example request

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

Response

200 OK Returns the Availability object in data.

The Availability object's fields 2 fields
FieldType and description
cloud

string

The cloud this is for.

Known values: digitaloceanvultrhetznerlinodegcpedgecustom More can appear.

regions

object or null

Each region's id, with the ids of the plans that can be created there now (an empty list: none). Null when the cloud doesn't report its stock: then any plan it lists can be ordered, and the order is still checked when it's placed.

Example response

200 OK
{
  "data": {
    "cloud": "digitalocean",
    "regions": {
      "fra1": [
        "starter",
        "standard",
        "business"
      ],
      "nyc3": [
        "standard",
        "business"
      ],
      "lon1": []
    }
  }
}

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

Heavy requests: 20 a minute per token, 40 per account. More in Rate limits.

Added on .

Popular

API docs