Sign up

Plans in stock

GET/api/v1/vps/stock

VPS runs on capacity we have free, so a plan can sell out for a while. A create with a plan that is out gets 409.

Example request

curl -X GET "https://platform.serverscamp.com/api/v1/vps/stock" \
  -H "Authorization: Bearer $API_TOKEN"

Answer

Status 200 with this body.

FieldTypeDescription
itemsmap of one of in, low, outrequiredPlan id to in (in stock), low (few left) or out (a create gets 409)
{
  "items": {
    "vps2-075": "in",
    "vps2-1": "in",
    "vps2-16": "low",
    "vps2-32": "out"
  }
}

Errors

StatusWhen
401No token, or a token that is not valid
422The body or a parameter is not what the operation takes

Every operation can also answer 401 without a valid token. All errors