Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-11737

XDCR - Entire curl syntax needs to be documented for connection pre-check

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • Trinity
    • 7.2.1, 7.2.2, Trinity
    • xdcr
    • None
    • DOC-2023-S26
    • 0

    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

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            beth.favini Beth Favini
            sumukh.bhat Sumukh Bhat
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty