- 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.
- 7天精通Dreamweaver CS5網頁設計與制作
- 計算機網絡應用基礎
- 最簡數據挖掘
- Blender Compositing and Post Processing
- 數據通信與計算機網絡
- Troubleshooting OpenVPN
- The Python Workshop
- 西門子變頻器技術入門及實踐
- OpenStack Cloud Computing Cookbook
- 水下無線傳感器網絡的通信與決策技術
- Mastering Game Development with Unreal Engine 4(Second Edition)
- Visual FoxPro程序設計
- AI的25種可能
- 三菱FX/Q系列PLC工程實例詳解
- Drupal高手建站技術手冊