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.19. Streaming Bucket Request

The streamingUri is exactly the same request as a bucket level-request except it streams HTTP chunks using chunked encoding. The stream contains the vBucket Map for a given bucket. When the vBucket changes it will resend an update map to console output. A response is in the form of line-delimited chunks: "\n\n\n\n." This will likely be converted to a "zero chunk" in a future release of this API, and thus the behavior of the streamingUri should be considered evolving. The following is an example request:

curl -u admin:password localhost:8091/pools/default/bucketsStreaming/default

Here is a sample HTTP request:

GET /pools/default/bucketsStreaming/default HTTP/1.1
User-Agent: curl/7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 OpenSSL/0.9.8r zlib/1.2.5
Host: localhost:8091
Accept: */*

Here is a example, abbreviated response of the vBucket content stream:

....
		"vBucketMap":[[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1],[0,-1]
		....