---
title: "Create a volume"
method: POST
path: "/compute/{connection_id}/volume"
tags: ["compute", "volume"]
---

# Create a volume

`POST /compute/{connection_id}/volume`

## Request

- Base URL: `http://api.unified.to`
- URL: `http://api.unified.to/compute/{connection_id}/volume`
- Auth: API key in header `authorization`

## Path parameters

- `connection_id` string, required

## Query parameters

- `fields` string[]
- `raw` string

## Request body

- ComputeVolume
  - `id` string: Unique identifier for the volume
  - `created_at` string, date-time: When the volume was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `updated_at` string, date-time: When the volume was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `name` string: Display name of the volume
  - `type` 'STANDARD' | 'HIGH_PERFORMANCE' | 'SHARED' | 'LOCAL' | 'OTHER': The kind of volume
  - `status` 'CREATING' | 'AVAILABLE' | 'IN_USE' | 'DELETING' | 'ERROR' | 'OTHER': Normalized volume status
  - `size_mb` number: Provisioned size in MiB
  - `used_mb` number: Used space in MiB
  - `region_id` string: The region the volume lives in
  - `availability_zone` string: The availability zone within the region, where the vendor places volumes per zone
  - `instance_ids` string[]: Instances the volume is mounted on
  - `metadata` ComputeMetadata[]: Vendor labels, tags and metadata
    - `id` string: The label, tag or metadata identifier
    - `slug` string: The label, tag or metadata key
    - `value` unknown
    - `namespace` string: The origin of the value (eg. labels, tags, metadata)
    - `format` 'TEXT' | 'NUMBER' | 'DATE' | 'BOOLEAN' | 'ARRAY' | 'OBJECT': The data type of the value
    - `extra_data` unknown
  - `raw` unknown

## Response `200`

Successful

- ComputeVolume
  - `id` string: Unique identifier for the volume
  - `created_at` string, date-time: When the volume was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `updated_at` string, date-time: When the volume was last updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `name` string: Display name of the volume
  - `type` 'STANDARD' | 'HIGH_PERFORMANCE' | 'SHARED' | 'LOCAL' | 'OTHER': The kind of volume
  - `status` 'CREATING' | 'AVAILABLE' | 'IN_USE' | 'DELETING' | 'ERROR' | 'OTHER': Normalized volume status
  - `size_mb` number: Provisioned size in MiB
  - `used_mb` number: Used space in MiB
  - `region_id` string: The region the volume lives in
  - `availability_zone` string: The availability zone within the region, where the vendor places volumes per zone
  - `instance_ids` string[]: Instances the volume is mounted on
  - `metadata` ComputeMetadata[]: Vendor labels, tags and metadata
    - `id` string: The label, tag or metadata identifier
    - `slug` string: The label, tag or metadata key
    - `value` unknown
    - `namespace` string: The origin of the value (eg. labels, tags, metadata)
    - `format` 'TEXT' | 'NUMBER' | 'DATE' | 'BOOLEAN' | 'ARRAY' | 'OBJECT': The data type of the value
    - `extra_data` unknown
  - `raw` unknown

---

[API](https://skmtc.dev/unified/apis/unified-to-api-2.md) · [All operations](https://skmtc.dev/unified/apis/unified-to-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/unified/apis/unified-to-api-2/revisions/7a38bdd7f089?raw)
