Layerbeat

Disk options for a region

GET
/v1/volume-options

Returns the disk sizes, terms, prices and zones you can buy in one region, with the servers in each zone a new disk could attach to.

Access: API key: vm:read · Session: any member.

Authorization

headerAuthorizationBearer <token>

Send Authorization: Bearer <token>. A token is an API key (lb_live_…, scoped, for programs) or a session (lb_sess_…, from signup or login, for people). See Authentication above.

Query Parameters

region*string

Region ID from GET /v1/regions.

type?string

Disk type (default premium).

Value in"premium""ssd"

Header Parameters

X-Org-ID?string

Sessions only: act on this organization (you must be a member). Default: your first organization.

Response Body

Purchase options

application/json
  1. response
region*string
type*string
Value in"premium""ssd"
in_stock*boolean

False when the region has no disks left to sell (both types share the region's capacity). Orders are refused with out_of_stock until capacity returns.

min_gb*integer
max_gb*integer
step_gb*integer
terms*array<integer>
per_server_limit*integer

Most data disks one server can hold.

price_per_gb_month*

Price per GB per month by billing currency (USD with five decimals, whole Rupiah).

zones*array<>
curl -X GET 'https://layerbeat.com/v1/volume-options?region=sgp'
{  "region": "sgp",  "type": "premium",  "in_stock": true,  "min_gb": 10,  "max_gb": 1000,  "step_gb": 10,  "terms": [    1,    3,    12  ],  "per_server_limit": 5,  "price_per_gb_month": {    "USD": "0.07770",    "IDR": "1384"  },  "zones": [    {      "id": "sgp-1",      "available": true,      "servers": [        {          "id": "vm_gnkrp6zuxvsqki7sqxeluvsw2y",          "name": "web-1"        }      ]    },    {      "id": "sgp-2",      "available": true,      "servers": []    }  ]}