---
title: "Create a volume."
method: POST
path: "/v1/{tenantId}/volumes"
tags: ["Volume"]
---

# Create a volume.

`POST /v1/{tenantId}/volumes`

## Request

- Base URL: `https://virtserver.swaggerhub.com/open83/multi-cloud/1.0.0`
- URL: `https://virtserver.swaggerhub.com/open83/multi-cloud/1.0.0/v1/{tenantId}/volumes`
- Auth: none declared

## Request body

- Volume
  - `Id` string: The volume ID, - Optional
  - `UserId` string: The user UUID in a multi-tenancy environment, - Optional
  - `BackendId` string, required: The backend ID, - Required
  - `Backend` string: The backend Name, - Optional
  - `Name` string, required: The volume name specified by user, - Required
  - `Description` string: The volume name specified by user, - Optional
  - `Type` string, required: The volume type, - Optional
  - `iops` integer: The IOPS the required for the volume as per the cloud provider
  - `Size` integer: The volume size, - Optional
  - `Region` string: The region for the volume, - Optional
  - `AvailabilityZone` string: The availability zone for the volume, - Optional
  - `Tags` Tag[]: The volume tags, - Optional
    - `key` string: Key of the Tag object.
    - `Value` string: Value of the Tag object.
  - `SnapshotId` string: The volume snapshot id, - Optional
  - `Encrypted` boolean: Flag for encrypted volume, - Optional
  - `EncryptedSettings` object: Encrypted volume Keys, - Optional
  - `Metadata` object: Metadata for cloud backend specific data, - Optional

## Response `200`

successful operation

- VolumeResult: Volume Response
  - `Id` string: The volume ID, generated by server
  - `CreatedAt` string: The time of creation of the volume.
  - `UpdatedAt` string: The time at which the volume was updated.
  - `TenantId` string: The tenant UUID in a multi-tenancy environment.
  - `UserId` string: The user UUID in a multi-tenancy environment.
  - `BackendId` string: The backend ID
  - `Backend` string: The backend Name.
  - `Name` string: The volume name specified by user.
  - `Description` string: The volume description specified by user.
  - `Type` string: The volume type.
  - `Size` integer: The volume size.
  - `Region` string: The region for the volume.
  - `AvailabilityZone` string: The availability zone for the volume.
  - `Status` 'available' | 'creating' | 'inUse' | 'error' | 'updating' | 'deleting' | 'errorDeleting' | 'deleted': The volume status.
  - `Tags` Tag[]
    - `key` string: Key of the Tag object.
    - `Value` string: Value of the Tag object.
  - `SnapshotId` string: The volume snapshot id.
  - `Encrypted` boolean: Flag for encryted volume.
  - `EncryptedSettings` object: Encryted volume Keys.
  - `Metadata` object
    - `fields` VolumeFields
      - `CreationTimeAtBackend` object
        - `kind` object
          - `StringValue` string
      - `StartTimeAtBackend` object
        - `kind` object
          - `StringValue` string
      - `VolumeId` object
        - `kind` object
          - `StringValue` string
      - `Progress` object
        - `kind` object
          - `NumberValue` integer

## Other responses

- `400`: Bad Request
- `401`: Unauthorized. Token not found in header
- `415`: Unsupported Media Type

## Changes

> 33 revisions in range; 3 not diffed.

- **2020-09-29** `a06e1dd6b63d`: 3 breaking, 2 warning, 22 info
  - the request property `BackendId` became required
  - the request property `Name` became required
  - the request property `Type` became required
  - removed the optional property `State` from the response with the `200` status
  - …23 more
- **2020-08-29** `7299be026d62`: 1 info
  - endpoint added
- **2020-08-29** `443f565555ae`: 1 breaking
  - api path removed without deprecation
- **2020-06-28** `b65d8dab2470`: 1 info
  - endpoint added
- **2018-10-29** `50fa096a3906`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/sodafoundation/apis/soda-multi-cloud-api/changes/v1/:tenantId/volumes/post.md)

---

[API](https://skmtc.dev/sodafoundation/apis/soda-multi-cloud-api.md) - [All operations](https://skmtc.dev/sodafoundation/apis/soda-multi-cloud-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sodafoundation/apis/soda-multi-cloud-api/revisions/df048c8349b6?raw)
