- 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.
- 人工智能工程化:應(yīng)用落地與中臺(tái)構(gòu)建
- WordPress Theme Development Beginner's Guide(Third Edition)
- 網(wǎng)絡(luò)綜合布線設(shè)計(jì)與施工技術(shù)
- ESP8266 Home Automation Projects
- Implementing AWS:Design,Build,and Manage your Infrastructure
- Visual FoxPro數(shù)據(jù)庫(kù)基礎(chǔ)及應(yīng)用
- 學(xué)會(huì)VBA,菜鳥(niǎo)也高飛!
- Machine Learning with the Elastic Stack
- 中國(guó)戰(zhàn)略性新興產(chǎn)業(yè)研究與發(fā)展·智能制造裝備
- 實(shí)用網(wǎng)絡(luò)流量分析技術(shù)
- LMMS:A Complete Guide to Dance Music Production Beginner's Guide
- Mastering GitLab 12
- 簡(jiǎn)明學(xué)中文版Photoshop
- Mastering Predictive Analytics with scikit:learn and TensorFlow
- 智能+:制造業(yè)的智能化轉(zhuǎn)型