Cloud Panel

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": {
    "vps-std-768m": "in",
    "vps-std-1g": "in",
    "vps-std-16g": "low",
    "vps-std-32g": "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