v1

latestOpenAPI 3.0.02026-07-13288558.3 KB

/volumes/create

Create a new storage volume

post/volumes/create

Request body

cloudstring required

Specifies the underlying cloud provider. See this explanation for more details.

regionstring required

Specifies the region.

size_in_gbinteger required

Storage volume size in GB

namestring required

The name of the storage volume.

Example request

{
  "cloud": "hyperstack",
  "region": "canada-1",
  "size_in_gb": 100,
  "name": "My storage volume"
}

Response

Returns a CreateVolumeResponse object

idstring required

The ID of the storage volume.

Example response

{
  "id": "78a0dd5a-dbb1-4568-b55c-5e7e0a8b0c40"
}