Details
-
Bug
-
Resolution: Fixed
-
None
-
*Location*: http://developer.couchbase.com/documentation/server/4.1/rest-api/rest-xdcr-pause-resume.html
*User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.84 Safari/537.36
*Referrer*: http://developer.couchbase.com/documentation/server/4.1/rest-api/rest-xdcr-intro.html
*Screen Resolution*: 1440 x 900
*Location*: http://developer.couchbase.com/documentation/server/4.1/rest-api/rest-xdcr-pause-resume.html *User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.84 Safari/537.36 *Referrer*: http://developer.couchbase.com/documentation/server/4.1/rest-api/rest-xdcr-intro.html *Screen Resolution*: 1440 x 900
Description
The sample REST call shown in the docs is incorrect, the parameters listed in the docs look fine.
Get UIID of replication stream -
curl -u <AdminUser>:<password> http://<host>:8091/pools/default/remoteClusters
Example
- curl -u Administrator:password http://localhost:8091/pools/default/remoteClusters
Response:
{"deleted":false,"hostname":"ec2-54-203-127-63.us-west-2.compute.amazonaws.com:8091","name":"Remote","uri":"/pools/default/remoteClusters/Remote","username":"Administrator","uuid":"f8c4a11b76de77597c60ba3fda0c6f23","validateURI":"/pools/default/remoteClusters/Remote?just_validate=1"}Syntax curl -X POST -u Administrator:password http://localhost:8091/settings/replications/<uuid>%2F<bucketname_source>%2F<bucketname_target> \ -d ‘pauseRequested=true'
Example – replicating from bucket travel-sample to bucket Airlines:
- curl -X POST -u Administrator:password http://localhost:8091/settings/replications/f8c4a11b76de77597c60ba3fda0c6f23%2Ftravel-sample%2FAirlines \
-d ‘pauseRequested=true’
Response:
{"checkpointInterval":1800,"docBatchSizeKb":2048,"failureRestartInterval":10,"filterExpression":"","logLevel":"Info","optimisticReplicationThreshold":256,"pauseRequested":true,"sourceNozzlePerNode":2,"statsInterval":1000,"targetNozzlePerNode":2,"type":"xmem","workerBatchSize":500}Reporter: Tim Wong
E-mail: tim.wong@couchbase.com