Skip to main content
POST
/
storage
/
disks
Create Disk
curl --request POST \
  --url https://api.tenbytecloud.com/v1/storage/disks \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --header 'apikey: <api-key>' \
  --data 'size_gb=<string>' \
  --data billing_account_id=123 \
  --data 'display_name=<string>' \
  --data 'source_image_type=<string>' \
  --data 'source_image=<string>'
{
  "uuid": "05a61876-86f3-4b05-b0ec-53ee6fa03ced",
  "status": "Active",
  "size_gb": 50,
  "source_image_type": "EMPTY",
  "created_at": "2022-09-01T12:03:14.355+0000"
}

Authorizations

apikey
string
header
required

Body

application/x-www-form-urlencoded
size_gb
string

Size of disk in GiB

billing_account_id
integer

Required if using a global API token

display_name
string

Descriptive name for the disk

source_image_type
string

One of OS_BASE, DISK, SNAPSHOT or EMPTY (default)

source_image
string

Reference to an image to be copied

Response

200 - application/json

Created disk

The response is of type object.