Couchbase Community 5.0.1 Windows
Only slightly modified from the docs here: Couchbase SDKs
Bucketname and ramQuota are the errors, but they appear correctly specified as per the doc.
curl -X POST -u admin:password -d ‘name=newbucket’ -d 'ramQuotaMB=20’0 -d ‘authType=none’ http://localhost:8091/pools/default/buckets -v
Note: Unnecessary use of -X or --request, POST is already inferred.
- Trying ::1…
- TCP_NODELAY set
- Trying 127.0.0.1…
- TCP_NODELAY set
- Connected to localhost (127.0.0.1) port 8091 (#0)
- Server auth using Basic with user ‘admin’
POST /pools/default/buckets HTTP/1.1
Host: localhost:8091
Authorization: Basic YWRtaW46cGFzc3dvcmQ=
User-Agent: curl/7.57.0
Accept: /
Content-Length: 49
Content-Type: application/x-www-form-urlencoded
- upload completely sent off: 49 out of 49 bytes
< HTTP/1.1 400 Bad Request
< X-XSS-Protection: 1; mode=block
< X-Permitted-Cross-Domain-Policies: none
< X-Frame-Options: DENY
< X-Content-Type-Options: nosniff
< Server: Couchbase Server
< Pragma: no-cache
< Expires: Thu, 01 Jan 1970 00:00:00 GMT
< Date: Mon, 08 Jan 2018 07:48:35 GMT
< Content-Type: application/json
< Content-Length: 396
< Cache-Control: no-cache,no-store,must-revalidate
<
{“errors”:{“name”:“Bucket name needs to be specified”,“ramQuotaMB”:“The RAM Quota must be specified and must be a positive integer.”},“summaries”:{“ramSummary”:{“total”:12793675776,“otherBuckets”:2097152000,“nodesCount”:1,“perNodeMegs”:0,“thisAlloc”:0,“thisUsed”:0,“free”:10696523776},“hddSummary”:{“total”:254719385600,“otherData”:216511477760,“otherBuckets”:0,“thisUsed”:0,“free”:38207907840}}}* Connection #0 to host localhost left intact