Skip to main content
POST
/
v1
/
projects
/
{projectId}
/
disks
Create a disk
curl --request POST \
  --url https://rest.compute.cudo.org/v1/projects/{projectId}/disks \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "dataCenterId": "<string>",
  "diskState": "UNKNOWN",
  "diskType": "DISK_TYPE_UNKNOWN",
  "id": "<string>",
  "sizeGib": 123
}'
{}

Authorizations

Authorization
string
header
required

Bearer HTTP authentication. Allowed headers-- Authorization: Bearer <api_key>

Path Parameters

projectId
string
required

Body

application/json

Create disk params

dataCenterId
string
required
id
string
required
sizeGib
integer
required
diskState
enum<string>
default:UNKNOWN
Available options:
UNKNOWN,
ATTACHED,
CLONING,
CREATING,
DELETING,
DISABLED,
FAILED,
READY,
UPDATING
diskType
enum<string>
default:DISK_TYPE_UNKNOWN
Available options:
DISK_TYPE_UNKNOWN,
DISK_TYPE_BOOT,
DISK_TYPE_STORAGE

Response

A successful response.

The response is of type object.