From 872106654b566d4a0870372855247ccdb287b55e Mon Sep 17 00:00:00 2001 From: Yusuke Komatsu Date: Sun, 30 Aug 2015 01:25:14 +0900 Subject: [PATCH 1/2] [WIP] on #256 From 14a264a070b4941ef7d8d235b938991ded610c1f Mon Sep 17 00:00:00 2001 From: Yusuke Komatsu Date: Sun, 30 Aug 2015 19:33:20 +0900 Subject: [PATCH 2/2] Resolved #256 --- .../admin/REST/rest-bucket-parameters.dita | 50 ++++++++++--------- 1 file changed, 26 insertions(+), 24 deletions(-) diff --git a/ja/learn/admin/REST/rest-bucket-parameters.dita b/ja/learn/admin/REST/rest-bucket-parameters.dita index bd69438..2d9124f 100644 --- a/ja/learn/admin/REST/rest-bucket-parameters.dita +++ b/ja/learn/admin/REST/rest-bucket-parameters.dita @@ -1,27 +1,29 @@ - - Changing bucket parameters - To modify bucket parameters, use the POST - /pools/default/buckets/[bucket-name] HTTP method and URI with the bucket name being - the REST API endpoint. + + bucketパラメータの変更 + + bucketパラメータを変更するには、POST /pools/default/buckets/[bucket-name] HTTPメソッドとURIをREST APIエンドポイントとなるbucket名と一緒に使用します。 + -
Description -

You can modify existing bucket parameters by posting the updated parameters used to create - the bucket to the bucket’s URI. Do not omit a parameter in your request since this is - equivalent to not setting it in many cases. We recommend you do a request to get current - bucket settings, make modifications as needed and then make your POST request to the bucket - URI.

+
説明 +

+ 更新されたbucketを作成するために使用するパラメータをbucketURIにpostすることで既存のbucketパラメータを変更することが出来ます。 + リクエストでパラメータを省略しないでください。これは多くの場合、パラメータを設定しないのと同じです。 + 現在のbucketの設定を取得し、必要に応じて修正を行うためにリクエストし、その上でbucketURIへPOSTリクエストすることを推奨します。 +

- The bucket name cannot be changed via the REST API. + bucket名はREST APIを使用して変更することが出来ません。 + - When changing the active bucket configuration, specify the existing - configuration parameters and the changed authentication parameters. + + アクティブなbucket構成を変更する時は、既存の構成パラメータを指定し、認証パラメータを変更する必要があります。 +
-
Syntax -

Curl request syntax:

+
シンタックス +

Curlリクエストシンタックス:

curl -v -X POST -u [admin]:[password] -d name=[customer] -d flushEnabled=[0 | 1] @@ -33,9 +35,9 @@
-
Example -

Curl request example:

-

To edit the bucket customer on server node 10.5.2.54:

+
+

Curlリクエスト例:

+

サーバノード 10.5.2.54 上のbucket customer を編集する:

curl -v -X POST -u admin:password -d name=customer -d flushEnabled=0 @@ -47,12 +49,12 @@
-
Response -

If the request is successful, HTTP response 200 is returned with an empty data content.

+
レスポンス +

リクエストが成功した場合、HTTPレスポンス200と空のデータコンテンツが返ってきます。

202 OK
-
Response codes +
レスポンスコード @@ -61,8 +63,8 @@ - Response codes - Description + レスポンスコード + 説明