Skip to content

[WFR] on #263 #626

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 20 additions & 18 deletions ja/learn/admin/REST/rest-cluster-autofailover-enable.dita
Original file line number Diff line number Diff line change
@@ -1,38 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd">
<reference xml:lang="en-us" id="rest-cluster-autofailover-enable">
<title>Enabling and disabling auto-failover</title>
<shortdesc>Auto-failover is enabled and disabled the <codeph>POST /settings/autoFailover</codeph> HTTP method and URI.</shortdesc>
<reference xml:lang="ja" id="rest-cluster-autofailover-enable">
<title>オートフェイルオーバの有効化と無効化</title>
<shortdesc>オートフェイルオーバは<codeph>POST /settings/autoFailover</codeph> HTTPメソッドとURIで有効化・無効化します。</shortdesc>
<refbody>
<section><title>HTTP method and URI</title>
<p>This is a global setting that applies to all clusters. Authentication is required to change this value.</p>
<section><title>HTTPメソッドとURI</title>
<p>これは全てのクラスタに適応されるグローバル設定です。この値を変更するには認証が必要です。</p>
<codeblock>POST /settings/autoFailover</codeblock>

<p>Parameters include:</p>
<p>パラメータは以下を含む:</p>
<ul>
<li><codeph>enabled</codeph>: Value is true or false. Indicates whether Couchbase Server
performs auto-failover for the cluster or not.</li>
<li><codeph>timeout</codeph>: Positive integer between 30 and 3600. The number of seconds a
node must be down before Couchbase Server performs auto-failover on the node. Required if
<codeph>enabled=true</codeph>; optional when <codeph>enabled=false</codeph>. </li>
<li>
<codeph>enabled</codeph>: 値は true か false です。Couchbaseサーバがクラスタのオートフェイルオーバを実行するか否かを指定します。
</li>
<li>
<codeph>timeout</codeph>: 30〜3600の間の正の整数です。Couchbaseサーバがノードのオートフェイルオーバを実行する前にノードが落ちている秒数です。
<codeph>enabled=true</codeph>の時は必須ですが、<codeph>enabled=false</codeph>の場合は任意です。
</li>
</ul>
</section>

<section><title>Syntax</title>
<p>Curl request syntax:</p>
<section><title>シンタックス</title>
<p>Curlリクエストシンタックス:</p>
<codeblock>curl -u [admin]:[password] http://[localhost]:8091/settings/autoFailover -d [parameter]</codeblock>

</section>


<section><title>Example</title>
<p>Curl request example:</p>
<section><title></title>
<p>Curlリクエスト例:</p>
<codeblock>curl -i -u admin:password
http://10.5.2.54:8091/settings/autoFailover \
-d 'enabled=true&amp;timeout=600'
</codeblock>

<p>Raw HTTP request example:</p>
<p>Raw HTTPリクエスト例:</p>
<codeblock>POST /settings/autoFailover HTTP/1.1
Host: 10.5.2.54:8091
Content-Type: application/x-www-form-urlencoded
Expand All @@ -44,14 +46,14 @@ enabled=true&amp;timeout=600
</section>


<section><title>Response codes</title>
<section><title>レスポンスコード</title>
<codeblock>HTTP/1.1 200 OK
Server: Couchbase Server
Pragma: no-cache
Date: Sat, 18 Oct 2014 00:26:28 GMT
Content-Length: 0
Cache-Control: no-cache</codeblock>
<p>The possible errors include:</p>
<p>エラーを含む場合:</p>
<codeblock>400 Bad Request, The value of "enabled" must be true or false.
400 Bad Request, The value of "timeout" must be a positive integer bigger or equal to 30.
401 Unauthorized
Expand Down