From 0b32c231be02dc76ebd488f245a98cf153b7f719 Mon Sep 17 00:00:00 2001 From: Yusuke Komatsu Date: Sun, 6 Sep 2015 20:57:27 +0900 Subject: [PATCH 1/2] [WIP] on #260 From e04ad49541255bea3fdff615293ff06ef3b7f985 Mon Sep 17 00:00:00 2001 From: Yusuke Komatsu Date: Mon, 7 Sep 2015 00:09:36 +0900 Subject: [PATCH 2/2] Resolved #260 --- ja/learn/admin/REST/rest-buckets-summary.dita | 48 ++++++++++--------- 1 file changed, 25 insertions(+), 23 deletions(-) diff --git a/ja/learn/admin/REST/rest-buckets-summary.dita b/ja/learn/admin/REST/rest-buckets-summary.dita index 8195a7f..d717ba5 100644 --- a/ja/learn/admin/REST/rest-buckets-summary.dita +++ b/ja/learn/admin/REST/rest-buckets-summary.dita @@ -1,36 +1,38 @@ - - Getting all bucket information - To retrieve all bucket information for a cluster use the GET - /pools/default/buckets HTTP method and URI. + + 全bucket情報取得 + + クラスタの全てのbucket情報を取得するにはGET /pools/default/bucketsHTTPメソッドとURIを使用します。 + -
Description -

To create an SDK for Couchbase, use either the proxy path or the direct path to - connect to Couchbase Server. If the SDK uses the direct path, the SDK is not - insulated from most reconfiguration changes to the bucket. This means that the SDK - needs to either poll the bucket’s URI or connect to the streaming URI to receive - updates when the bucket configuration changes. Bucket configuration changes occur - under the follow circumstances:

    -
  • Nodes are added.
  • -
  • Nodes are removed.
  • -
  • Nodes fail.
  • -

+
説明 +

+ CouchbaseのSDKを作成するには、Couchbase Serverに接続するためにプロキシパスかダイレクトパスのいずれかを使用します。 + SDKでダイレクトパスを使用した場合、SDKはbucketの再構成の変化に最も密になります。 + これはbucketの構成を変更した時にSDKがbucketのURIをポーリングするか更新を受信するためにストリーミングURIに接続することが必要であることを意味します。 + bucket構成の変更は以下の状況で発生します: +

    +
  • ノードが追加された。
  • +
  • ノードが削除された。
  • +
  • ノードが失敗した。
  • +
+

-
HTTP method and URI +
HTTPメソッドとURI GET /pools/default/buckets
-
Syntax -

Curl request syntax to retrieve information for all buckets in a cluster:

+
シンタックス +

クラスタから全bucketの情報を取得するCurlリクエストシンタックス:

curl -u [admin]:[password] http://[localhost]:8091/pools/default/buckets -

Raw HTTP request syntax:

+

Raw HTTPリクエストシンタックス:

GET /pools/default/buckets Host: localhost:8091 Authorization: Basic xxxxxxxxxxxxxxxxxxx @@ -39,12 +41,12 @@ X-memcachekv-Store-Client-Specification-Version: 0.1
-
Example -

Curl request example:

+
+

Curlリクエスト例:

curl -u admin:password http://10.5.2.54:8091/pools/default/buckets -

Raw HTTP request example:

+

Raw HTTPリクエスト例:

GET /pools/default/buckets Host: 10.5.2.54:8091 Authorization: Basic xxxxxxxxxxxxxxxxxxx @@ -53,7 +55,7 @@ X-memcachekv-Store-Client-Specification-Version: 0.1
-
Response +
レスポンス Host: localhost:8091 Authorization: Basic xxxxxxxxxxxxxxxxxxx