Cloud Panel

List disks

GET/api/v1/storage-classes

The disks. Ask with line=v2 for the ones on sale: standard and enterprise, each also dedicated. Their ids go into Create a volume and Change the disk.

Parameters

NameInDescription
linequery, string, optionalv2 for the disks on sale; all when left out

Example request

curl -X GET "https://platform.serverscamp.com/api/v1/storage-classes?line=v2" \
  -H "Authorization: Bearer $API_TOKEN"

Answer

Status 200 with this body.

FieldTypeDescription
itemslist of VmDiskrequired
items[].idintegerrequiredDisk id, for storage_class_id in Create a VM and Change the disk
items[].namestringrequiredstandard, enterprise, standard-dedicated or enterprise-dedicated
items[].dedicatedbooleanrequiredKeeps its full performance when the storage cluster runs short
items[].read_iops_limitintegerrequiredRead operations a second, at most
items[].write_iops_limitintegerrequiredWrite operations a second, at most
items[].read_bandwidth_limitintegerrequiredRead throughput, MB/s, at most
items[].write_bandwidth_limitintegerrequiredWrite throughput, MB/s, at most
items[].min_size_gbintegerrequiredSmallest disk, GB
items[].max_size_gbintegerrequiredLargest disk, GB
items[].free_size_gbintegerrequiredGB of a root disk that are free; 25 on standard, 0 on the others
items[].price_per_gb_hour_millicentsnumberrequiredPrice of a GB an hour in millicents: 10,000 make 1 EUR
items[].lineone of legacy, v2requiredv2 for the disks on sale
totalintegerrequired
{
  "items": [
    {
      "id": 18,
      "name": "standard",
      "dedicated": false,
      "read_iops_limit": 100000,
      "write_iops_limit": 100000,
      "read_bandwidth_limit": 1024,
      "write_bandwidth_limit": 1024,
      "min_size_gb": 25,
      "max_size_gb": 5000,
      "free_size_gb": 25,
      "price_per_gb_hour_millicents": 1.1111,
      "line": "v2"
    }
  ],
  "total": 1
}

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