- 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.
- 我的J2EE成功之路
- 輕松學(xué)C#
- Spark編程基礎(chǔ)(Scala版)
- 計(jì)算機(jī)原理
- Hands-On Machine Learning with TensorFlow.js
- 西門子S7-200 SMART PLC實(shí)例指導(dǎo)學(xué)與用
- C++程序設(shè)計(jì)基礎(chǔ)(上)
- The DevOps 2.1 Toolkit:Docker Swarm
- 工業(yè)機(jī)器人操作
- Learn T-SQL Querying
- Linux Administration Cookbook
- Qt中的C++技術(shù)
- 華人動(dòng)畫師的法蘭西印象
- 機(jī)器學(xué)習(xí)公式詳解
- 嵌入式系統(tǒng)應(yīng)用開發(fā)基礎(chǔ)