Description
The list of all of the current XDCR replications can be identified using the following command.
$ ./couchbase-cli xdcr-replicate -c localhost -u Administrator -p password --list
|
stream id: f7de9194ac2122fc42769e26c2974399/beer-sample/beer-sample2
|
status: running
|
source: beer-sample
|
target: /remoteClusters/f7de9194ac2122fc42769e26c2974399/buckets/beer-sample2
|
stream id: fd85a8f5aac227cd446499a02ba5d80a/beer-sample/beer-sample
|
status: running
|
source: beer-sample
|
target: /remoteClusters/fd85a8f5aac227cd446499a02ba5d80a/buckets/beer-sample
|
It would be great if this list can also include the target remote cluster hostname for each replication.
At the moment, one way to do this is by identifying the remote cluster UUID from the stream id, which can then be used to identify the remote hostname from the list returned by the following XDCR API call.
$ curl -u Administrator:password localhost:8091/pools/default/remoteClusters |