Hi im following http://docs.couchbase.com/couchbase-manual-2.5/cb-rest-api/#creating-xdcr-replications
But i miss a way to specify protocol =version 1 like it possbile from teh web management page.
I Need that in order to setup replication to elasticsearch using the CouchbaseTransport plugin for elasticsearch.
Has anyone accomplished this ?
anil
2
hello, you’re right the 2.5 manual is missing that parameter and I’ve opened a ticket to fix-it in our Jira http://www.couchbase.com/issues/browse/MB-12688.
You can refer to our new docs which has the parameter documented - http://docs.couchbase.com/admin/admin/REST/rest-xdcr-create-replication.html
Here is the specific REST Call:
curl -v -X POST -u admin:password1
http://10.4.2.4:8091/controller/createReplication
-d uuid=9eee38236f3bf28406920213d93981a3
-d fromBucket=beer-sample
-d toCluster=remote1
-d toBucket=remote_beer
-d replicationType=continuous
-d type=capi [version1=capi, version2=xmem]
1 Like