---
title: "Create a new backup storage object"
method: POST
path: "/backup-storages"
tags: ["backupStorage"]
---

# Create a new backup storage object

`POST /backup-storages`

Create a new backup storage object.

**Examples**:
  ```
  {
    "name": "s3-storage",
    "type": "s3",
    "bucketName": "bucket1",
    "accessKey": "access_key",
    "secretKey": "secret_key",
    "region": "eu-central-1"
  }
  ```

  ```
  {
    "name": "azure-storage",
    "type": "azure",
    "bucketName": "container1",
    "accessKey": "storage_account_name",
    "secretKey": "storage_account_key",
  }
  ```

## Request body

- CreateBackupStorageParams — Backup storage parameters
  - `name` string, required — A user defined string name of the storage in the DNS name format https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#dns-label-names
  - `description` string
  - `type` 's3' | 'azure', required
  - `bucketName` string, required — The cloud storage bucket/container name
  - `accessKey` string, required
  - `secretKey` string, required
  - `url` string
  - `region` string
  - `allowedNamespaces` string[], required — List of namespaces allowed to use this backup storage
  - `verifyTLS` boolean
  - `forcePathStyle` boolean

## Response `200`

Successful operation

- BackupStorage — Backup storage information
  - `type` 's3' | 'azure', required
  - `name` string, required
  - `description` string
  - `bucketName` string, required
  - `url` string
  - `region` string
  - `verifyTLS` boolean
  - `forcePathStyle` boolean
  - `allowedNamespaces` string[], required — List of namespaces allowed to use this backup storage

## Other responses

- `400` — Unsuccessful operation
- `500` — Internal server error

## Changes

- **2024-04-12** `dec31e5eea8e` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/openeverest/apis/openeverest-schema/changes/backup-storages/post.md)

---

[API](https://skmtc.dev/openeverest/apis/openeverest-schema.md) · [All operations](https://skmtc.dev/openeverest/apis/openeverest-schema/llms.txt) · [OpenAPI document](https://skmtc.dev/openeverest/apis/openeverest-schema/revisions/dec31e5eea8e?raw)
