Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
7.0.0, Neo
-
None
-
DOC-2022-S7, DOC-2022-S8
-
1
Description
This was found from a forum question –
https://forums.couchbase.com/t/how-to-specify-backup-service-when-creating-a-single-node-cluster-with-the-rest-api/33263
There are two issues:
1) The cluster REST API for creating a new cluster does not give the option for adding a backup service.
From https://docs.couchbase.com/server/7.0/rest-api/rest-node-provisioning.html
The below does not have "backup" as one of the options for services.
// Setup Services
|
curl -u Administrator:password -v -X POST http://[localhost]:8091/node/controller/setupServices
|
-d services=[kv | index | n1ql | fts | cbas | eventing]
|
2) The reference on "Adding Nodes to Clusters" say to use "cbbs" to specify the Backup Service, but that is incorrect. If you use "cbbs", you get an error. Need to use "backup".
From https://docs.couchbase.com/server/7.0/rest-api/rest-cluster-addnodes.html
curl -u [admin]:[password]
|
http://[localhost]:8091/controller/addNode
|
-d hostname=[IPaddress]
|
-d user=[username]
|
-d password=[password]
|
-d services=[kv|index|n1ql|fts|cbas|eventing|cbbs] <--- Not "cbbs", should be "backup".
|