Description
As seen in: https://docs.couchbase.com/server/current/rest-api/rest-xdcr-connection-precheck.html
The POST curl syntax is incomplete. For completeness, it should be:
curl -v -X POST -u <source-cluster-username>:<source-cluster-password>
|
http://<source-cluster-ip-address-or-domain-name>]:8091/xdcr/connectionPreCheck |
-d name=<target-cluster-local-name>
|
-d hostname=<target-cluster-ip-address-or-domain-name][:<port-number>]
|
[-d username=<target-cluster-username>]
|
[-d password=<target-cluster-password>]
|
[-d demandEncryption=[ 0 | 1 ] ] |
[-d secureType=[ 'none' | 'half' | 'full'] ] |
[--data-urlencode "certificate=$(cat <local-pathname-to-target-root-certificate>)"] |
[--data-urlencode "clientCertificate=$(cat <local-pathname-to-target-root-certificate>)"] |
[--data-urlencode "clientKey=$(cat <local-pathname-to-target-root-certificate>)"] |
It should be identical to the syntax in https://docs.couchbase.com/server/current/rest-api/rest-xdcr-create-ref.html