Couchbase createBucket
Last updated: July 13, 2026
Creates a new Couchbase bucket. A bucket is the top-level data container in Couchbase, automatically provisioned with a _default scope and _default collection.
Known limitations:
Bucket names cannot be modified after creation. To rename a bucket, you must drop and recreate it.
Couchbase clusters support a maximum of 30 buckets.
conflictResolutionTypecannot be changed after a bucket is created.
Available attributes
Attribute | Type | Description | Required |
|---|---|---|---|
| String | The name that identifies the bucket across the cluster. | Yes |
| Long | The amount of RAM allocated to this bucket across all cluster nodes, in megabytes. | Yes |
| String | Determines the storage and replication behavior of the bucket. | Yes |
| Boolean | When | Yes |
| Integer | The number of replica copies of each document kept across the cluster (0–3). | Yes |
| Boolean | When | Yes |
| String | Determines what is removed from memory when the bucket RAM quota is exceeded. | Yes |
| String | The minimum durability guarantee enforced for all writes to this bucket. | Yes |
| String | The storage engine used by the bucket. | Yes |
| Long | Controls how long the Liquibase operation waits for the bucket creation to complete before timing out. | Yes |
| String | Controls whether Couchbase compresses stored documents. | No |
| String | Defines how write conflicts are resolved during Cross-Datacenter Replication (XDCR). | No |
| Long | Sets the maximum TTL for all documents in the bucket, in hours. Documents expire after this duration unless a shorter TTL is set at the document level. | No |