From 54f7a72c21e88a49aecdce67e9cf619c855cd6c5 Mon Sep 17 00:00:00 2001 From: Yusuke Komatsu Date: Tue, 4 Aug 2015 20:53:07 +0900 Subject: [PATCH 1/2] [WIP] on #250 From ec0a6cab1f3a587646f3859e5718f83b5abd00b3 Mon Sep 17 00:00:00 2001 From: Yusuke Komatsu Date: Tue, 4 Aug 2015 21:31:39 +0900 Subject: [PATCH 2/2] Resolved #250 --- ja/learn/admin/REST/rest-bucket-delete.dita | 83 +++++++++++---------- 1 file changed, 45 insertions(+), 38 deletions(-) diff --git a/ja/learn/admin/REST/rest-bucket-delete.dita b/ja/learn/admin/REST/rest-bucket-delete.dita index c07471a..90d56df 100644 --- a/ja/learn/admin/REST/rest-bucket-delete.dita +++ b/ja/learn/admin/REST/rest-bucket-delete.dita @@ -1,34 +1,40 @@ - - Deleting buckets - To delete buckets, use the DELETE /pools/default/buckets/[bucket-name] - HTTP method and URI. + + bucketの削除 + bucketを削除する時は、DELETE /pools/default/buckets/[bucket-name]HTTPメソッドとURIを使用します。 -
Description -

Bucket deletion is a synchronous operation. When a cluster has multiple servers, some servers - might not be able to delete the bucket within the standard 30 second timeout period.

+
説明 +

+ Bucketの削除は同期処理です。クラスタに複数サーバがある場合、いくつかのサーバで標準的なタイムアウトの30秒以内にbucketの削除ができない場合があります。 +

    -
  • If the bucket is deleted on all servers within the standard timeout of 30 seconds, - a 200 response code is returned.
  • -
  • If the bucket is not deleted on all servers within the 30 second timeout, - a 500 error code is returned.
  • -
  • If the bucket is not deleted on all servers and another request is made to delete the bucket, - a 404 error code is returned.
  • -
  • If the bucket is not deleted on all servers and a request is made to crate a new bucket with the same name, - an error might be returned indicating that the bucket is still being deleted.
  • +
  • + 標準的なタイムアウトの30秒以内に全てのサーバでbucketが削除された場合、レスポンスコード200 が返ってきます。 +
  • +
  • + 30秒のタイムアウト以内に全てのサーバでbucketの削除が終わらなかった場合、エラーコード 500 が返ってきます。 +
  • +
  • + bucketが全てのサーバで削除されず、他のリクエストでbucketが削除されていた場合、エラーコード 404 が返ってきます。 +
  • +
  • + bucketが全てのサーバでの削除されず、同じ名前で新しいbucketを作成するリクエストがあった場合、bucketがまだ削除中であることを示すエラーが返ってくる事があります。 +
- This operation is data destructive. - The service makes no attempt to double check with the user. - It simply moves forward. - Clients applications performing the delete operation are advised to double - check with the end user before sending the request. + + この操作はデータを破壊します。 + サービスはユーザとダブルチェックは行いません。 + 後戻りすることは出来ません。 + クライアントアプリケーションでの削除操作はエンドユーザとのダブルチェックを行ったあとに実行することをおすすめします。 +
-
HTTP method and URI +
+ HTTPメソッドとURI DELETE /pools/default/buckets/[bucket-name] @@ -37,15 +43,15 @@ - Request data + レスポンスデータ None - Response data + レスポンスデータ None - Authentication required + 認証の要・不要 Yes @@ -56,24 +62,24 @@ -
Syntax -

Curl request syntax:

+
シンタックス +

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

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

Raw HTTP request syntax:

+

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

DELETE /pools/default/buckets/[bucket-name] Host: [localhost]:8091 Authorization: Basic xxxxxxxxxxxxxxxxxxx
-
Example -

Curl request example to delete the bucket named myTestBucket:

+
+

myTestBucketという名前のbucketを削除するときのCurlリクエスト例:

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

Raw HTTP request example to delete the bucket named myTestBucket:

+

myTestBucketという名前のbucketを削除するときのRaw HTTPリクエスト例:

DELETE /pools/default/buckets/myTestBucket Host: 10.5.2.54:8091 Authorization: Basic xxxxxxxxxxxxxxxxxxx @@ -82,37 +88,38 @@ Authorization: Basic xxxxxxxxxxxxxxxxxxx -
Response codes +
+ レスポンスコード
- Response codes - Description + レスポンスコード + 説明 200 - OK Bucket Deleted on all nodes + 全てのノードでbucketが削除できた 401 - Unauthorized + 認証失敗 404 - Object Not Found + オブジェクトが見つからない 500 - Bucket could not be deleted on all nodes + Bucketが全てのノード上で削除されなかった 503 - Buckets cannot be deleted during a rebalance + リバランス中でbucketが削除できなかった