---
title: "Create a disk"
method: POST
path: "/v1/projects/{projectId}/disks"
tags: ["Disks"]
---

# Create a disk

`POST /v1/projects/{projectId}/disks`

Creates a new virtual machine disk.

## Path parameters

- `projectId` string, required

## Request body

- object
  - `createTime` string, date-time
  - `dataCenterId` string, required
  - `diskState` 'UNKNOWN' | 'ATTACHED' | 'CLONING' | 'CREATING' | 'DELETING' | 'DISABLED' | 'FAILED' | 'READY' | 'UPDATING'
  - `diskType` 'DISK_TYPE_UNKNOWN' | 'DISK_TYPE_BOOT' | 'DISK_TYPE_STORAGE'
  - `id` string, required
  - `privateImageId` string
  - `publicImageId` string
  - `sizeGib` integer, required
  - `vmId` string

## Response `200`

A successful response.

- object

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/cudocompute/apis/cudo-compute-service.md) · [All operations](https://skmtc.net/cudocompute/apis/cudo-compute-service/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cudocompute/cudo-compute-service/versions/93dc40dababc/schema)
