Sign up

List plans

GET/api/v1/vps/plans

The plans on sale. Their ids go into Create a VPS and Change the plan.

Example request

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

Answer

Status 200 with this body.

FieldTypeDescription
itemslist of VpsPlanrequired
items[].idstringrequiredPlan id, for create and plan changes
items[].namestringrequiredName shown in the Cloud Panel
items[].vcpuintegerrequiredvCPU cores
items[].cpu_limitnumber, optionalShare of the cores the server may use, set on plans below one full core
items[].ram_gbnumberrequiredMemory, GB
items[].disk_gbintegerrequiredDisk, GB
items[].traffic_gbintegerrequiredOutbound traffic a month, GB; after it the port runs at 100 Mbit/s
items[].net_mbitintegerrequiredPort speed, Mbit/s
items[].disk_iopsintegerrequiredDisk operations a second
items[].disk_mbpsintegerrequiredDisk throughput, MB/s
items[].price_monthlynumberrequiredPrice a month, EUR, billed by the hour
items[].backup_sharenumberrequiredDaily backups add this share of the plan price
{
  "items": [
    {
      "id": "vps2-1",
      "name": "VPS 1",
      "vcpu": 1,
      "cpu_limit": null,
      "ram_gb": 1,
      "disk_gb": 20,
      "traffic_gb": 1000,
      "net_mbit": 1000,
      "disk_iops": 10000,
      "disk_mbps": 250,
      "price_monthly": 1.5,
      "backup_share": 0.2
    }
  ]
}

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