diff --git a/ja/learn/admin/REST/rest-bucket-flush.dita b/ja/learn/admin/REST/rest-bucket-flush.dita index 066c038..fb5bf68 100644 --- a/ja/learn/admin/REST/rest-bucket-flush.dita +++ b/ja/learn/admin/REST/rest-bucket-flush.dita @@ -1,60 +1,65 @@ - - Flushing buckets + + bucketのフラッシュ To flush all buckets, use the POST /pools/default/buckets/default/controller/doFlush HTTP method and URI. -
Description +
説明 -

The doFlush operation empties the contents of the specified bucket, deleting - all stored data. The operation only succeeds if flush is enabled on configured bucket.

+

+ doFlushオペレーションは指定のbucketのコンテンツを格納されているデータを全て削除し空にします。 + 設定したbucketでflushが有効な場合のみ、操作が成功します。 +

- This operation is data destructive. The service makes no attempt to confirm or double check - the request. Client applications using this are advised to double check with the end user - before sending such a request. You can control and limit the ability to flush individual - buckets by setting the flushEnabled parameter on a bucket in Couchbase Web Console or via - cbepctl flush_param. + + このオペレーションはデータを破棄します。サービスは実行確認したり、ダブルチェックのリクエストをしようとしません。 + これを使用してクライアントアプリケーションはそのようなリクエストを送信する前にエンドユーザとダブルチェックすることを推奨します。 + Couchbase Web コンソール内でbucket上のflushEnabledパラメータを設定したり、cbepctl flush_paramを通して、個別のbucketのフラッシュする機能を制限したりコントロールすることが出来ます。 -

Parameters and payload data are ignored, but the request must including the authorization - header if the system has been secured.

+

+ パラメータやペイロードデータは無視されますが、システムが保護されている場合、リクエストは認証ヘッダを含む必要があります。 +

- The flush request may lead to significant disk activity as the data in the bucket is deleted - from the database. The high disk utilization may affect the performance of your server until - the data has been successfully deleted. + + フラッシュリクエストはbucket内のデータがデータベースが削除されるのと同じくらいのかなりのディスクアクティビティになる可能性があります。 + データが正常に削除されるまで、高いディスク使用率はサーバのパフォーマンスに影響をあたえる可能性があります。 + - The flush request is not transmitted over XDCR replication configurations;. - The remote bucket is not flushed. -

Couchbase Server returns a HTTP 404 response if the URI is invalid or if it does not - correspond to an active bucket in the system.

+ + フラッシュリクエストはXDCRレプリケーション構成上で送信されません。リモートbucketはフラッシュされません。 + +

+ Couchbase Serverは、URLが無効だったり、システム上の有効なbucketと一致しない場合、HTTP 404 レスポンスを返します。 +

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

Curl request syntax:

+
シンタックス +

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

curl -X POST -u [admin]:[password] http://[localhost]:8091/pools/default/buckets/default/controller/doFlush -

Raw HTTP request syntax:

+

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

POST /pools/default/buckets/default/controller/doFlush Host: localhost:8091 Authorization: Basic xxxxxxxxxxxxxxxxxxx
-
Example -

Curl request example:

+
+

Curlリクエスト例:

curl -X POST 'http://admin:password@localhost:8091/pools/default/buckets/default/controller/doFlush' -

Raw HTTP request example:

+

Raw HTTPリクエスト例:

POST /pools/default/buckets/default/controller/doFlush Host: 10.5.2.54:8091 Authorization: Basic xxxxxxxxxxxxxxxxxxx @@ -62,15 +67,14 @@ Authorization: Basic xxxxxxxxxxxxxxxxxxx
-
Response codes +
レスポンスコード

If the flush is successful, the HTTP response code is 200 is returned.

HTTP/1.1 200 OK -

If flushing is disable for the specified bucket, a 400 response code is returned with the - bucket status. For example:

+

指定したbucketでフラッシュが無効だった場合、レスポンスコード400と一緒にbucketの状態が返ってきます。例:

{"_":"Flush is disabled for the bucket"} -

If the bucket does not exist, a 404 response code is returned.

+

bucketが存在しなかった場合、レスポンスコード404が返ってきます。

404 Not Found