官术网_书友最值得收藏!

  • Learning Couchbase
  • Henry Potsangbam
  • 163字
  • 2021-07-30 10:25:03

Couchbase administrative REST API

Another way to administrate Couchbase clusters is by using the REST API. It provides all the features we have discussed in the web console. In fact, the REST API is being used behind the scenes for most of the options displayed in the web console. You can perform all administrative functionalities using the REST API too.

You need some REST API tools to use this feature. In our case, we will use curl. It can be downloaded and installed from http://curl.haxx.se/download.html.

We will see an example as follows. You can refer the Couchbase documentation for comprehensive details on the REST API usages and syntax:

curl -u Administrator:root123 http://localhost:8091/pools/default

This command provides cluster details in a JSON document.

The REST API output

You can get information about a specific bucket that is LearningCouchbase using the following command:

curl -u Administrator:root123 http://localhost:8091/pools/default/buckets/LearningCouchbase

You need to pass the user ID and password credentials to connect to the cluster using the -u parameter.

主站蜘蛛池模板: 鄂伦春自治旗| 霍邱县| 兴宁市| 新龙县| 罗平县| 淮南市| 宜良县| 依兰县| 阳东县| 肇州县| 射洪县| 将乐县| 景洪市| 道真| 义马市| 环江| 宜阳县| 务川| 富裕县| 筠连县| 肇庆市| 丹棱县| 澜沧| 手机| 故城县| 姜堰市| 海门市| 鱼台县| 贵阳市| 永德县| 若尔盖县| 宁南县| 胶南市| 鄢陵县| 开封市| 天门市| 武义县| 闵行区| 贺州市| 木兰县| 丰台区|