---
title: "Creates a new object store bucket with the given params"
method: POST
path: "/api/v1/orgs/{orgId}/buckets"
tags: ["storage"]
---

# Creates a new object store bucket with the given params

`POST /api/v1/orgs/{orgId}/buckets`

Creates a new object store bucket on the Cloud provider referenced by the given secret. The credentials for creating the bucket is taken from the provided secret.

## Path parameters

- `orgId` integer, required

## Request body

- CreateObjectStoreBucketRequest
  - `secretId` string
  - `secretName` string
  - `name` string, required
  - `properties` CreateObjectStoreBucketProperties, required
    - `alibaba` CreateAlibabaObjectStoreBucketProperties, nullable
      - `location` string, required
    - `amazon` CreateAmazonObjectStoreBucketProperties, nullable
      - `location` string, required
    - `azure` CreateAzureObjectStoreBucketProperties, nullable
      - `storageAccount` string, required
      - `location` string, required
      - `resourceGroup` string, required
    - `google` CreateGoogleObjectStoreBucketProperties, nullable
      - `location` string, required
    - `oracle` CreateOracleObjectStoreBucketProperties, nullable
      - `location` string, required

## Response `202`

Storage bucket creation request accepted

- CreateObjectStoreBucketResponse
  - `name` string, required
  - `cloud` 'amazon' | 'azure' | 'google' | 'oracle' | 'alibaba', required

## Other responses

- `default` — Internal server error

## Changes

- **2020-04-24** `5186ea64aa56` — 2 warning, 2 info
  - added the new `alibaba` enum value to the `cloud` response property for the response status `202`
  - added the new `oracle` enum value to the `cloud` response property for the response status `202`
  - added the new optional request property `properties/alibaba`
  - added the new optional request property `properties/oracle`

[Change history](https://skmtc.dev/banzaicloud/apis/pipeline-api/changes/api/v1/orgs/:orgId/buckets/post.md)

---

[API](https://skmtc.dev/banzaicloud/apis/pipeline-api.md) · [All operations](https://skmtc.dev/banzaicloud/apis/pipeline-api/llms.txt) · [OpenAPI document](https://skmtc.dev/banzaicloud/apis/pipeline-api/revisions/d4abec32d729?raw)
