Hi @zepeng_chen,
My suggestion is to use port 18091 instead of 11207 because 11207 is for data traffic by the SDKs and does not respond to http requests. You also need to use https since all Capella traffic is encrypted.
So, you should be able to use the following:
curl -u $username:$password https://pz76ru7zloixqchn.0vdvh7f0u4aily78.cloud.couchbase.com:18091/pools
Please take note that you may also need to apply -k to the curl command to disable SSL checking if you haven’t added the root certificate to your local machine.
You may also find this article helpful which shows all the compatible SDK versions supported by Capella. For Go, it specifically mentioned the following:
With Go 1.6, which does not have the Alternate Address feature, you need to use
?network=default
in the connection string.
Thanks,
Kervi