---
title: "Post Storage"
method: POST
path: "/configuration/storage"
tags: ["storages", "configuration"]
---

# Post Storage

`POST /configuration/storage`

Create a new storage resource.
Console command used: _configure add storage_

## Request body

- StorageResource — Options for TLS settings
  - `tlsauthenticate` 'yes' | 'no' — An enumeration.
  - `tlsenable` 'yes' | 'no' — An enumeration.
  - `tlsrequire` 'yes' | 'no' — An enumeration.
  - `tlscipherlist` string, path
  - `tlsdhfile` string, path
  - `tlsverifypeer` 'yes' | 'no' — An enumeration.
  - `tlscacertificatefile` string, path
  - `tlscacertificatedir` string, path
  - `tlscertificaterevocationlist` string, path
  - `tlscertificate` string, path
  - `tlskey` string, path
  - `tlsallowedcn` string[]
  - `device` string, required
  - `mediatype` string, required
  - `description` string
  - `protocol` string
  - `authtype` string
  - `lanaddress` string
  - `port` integer
  - `username` string
  - `autochanger` 'yes' | 'no' — An enumeration.
  - `enabled` 'yes' | 'no' — An enumeration.
  - `allowcompression` 'yes' | 'no' — An enumeration.
  - `heartbeatinterval` string
  - `cachestatusinterval` string
  - `maximumconcurrentjobs` integer
  - `maximumconcurrentreadjobs` integer
  - `pairedstorage` string
  - `maximumbandwidthperjob` string
  - `collectstatistics` 'yes' | 'no' — An enumeration.
  - `ndmpchangerdevice` string
  - `name` string, required
  - `address` string, required
  - `password` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/bareos/apis/bareos-rest-api.md) · [All operations](https://skmtc.net/bareos/apis/bareos-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bareos/bareos-rest-api/versions/c6a9677e1448/schema)
