When you use XDCR, you establish source and destination cluster. A source cluster is the cluster from which you want to copy data; a destination cluster is the cluster where you want the replica data to be stored. To get information about a destination cluster:
shell> curl -u Administrator:password http://10.4.2.5:8091/pools/default/remoteClustersYou provide credentials for the cluster and also the hostname and port for the remote cluster. This will generate a request similar to the following sample:
GET /pools/default/remoteClusters HTTP/1.1 Authorization: Basic QWRtaW5pc3RyYXRvcjpwYXNzd29yZA== User-Agent: curl/7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 OpenSSL/0.9.8r zlib/1.2.5 Host: 10.4.2.4:8091 Accept: */*
If successful, Couchbase Server will respond with a JSON response similar to the following:
[{ "name":"remote1", "uri":"/pools/default/remoteClusters/remote1", "validateURI":"/pools/default/remoteClusters/remote1?just_validate=1", "hostname":"10.4.2.6:8091", "username":"Administrator", "uuid":"9eee38236f3bf28406920213d93981a3", "deleted":false }]
The following describes the response elements:
(String) name: Name of the destination cluster referenced for XDCR.
(String) uri: URI for destination cluster information.
(String) validateURI: URI to validate details of cluster reference.
(String) hostname: Hostname/IP (and :port) of the remote cluster.
(String) uuid: UUID of the remote cluster reference.
(String) username: Username for the destination cluster administrator.
(Boolean) deleted: Indicates whether the reference to the destination cluster has been deleted or not.
For more information about XDCR and using XDCR via the Couchbase Web Console, see Section 5.8, “Cross Datacenter Replication (XDCR)”.