Search:

Search all manuals
Search this manual
Manual
Couchbase Server Manual 1.8
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
8 REST API for Administration
Chapter Sections
Chapters

8.23. Creating a Couchbase Bucket

In addition to the parameters used to create a memcached bucket, you can provide replicaNumber to specify the number of replicas for a Couchbase bucket:

shell> curl -u admin:password -d name=newbucket -d ramQuotaMB=20 -d authType=none \
     -d replicaNumber=2 -d proxyPort=11215 http://localhost:8091/pools/default/buckets
HTTP Request
POST /pools/default/buckets
HTTP/1.1
Host: node.in.your.cluster:8091
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Authorization: Basic YWRtaW46YWRtaW4=
Content-Length: xx
name=newbucket&ramQuotaMB=20&authType=none&replicaNumber=2&proxyPort=11215
HTTP Response
202: bucket will be created.