Skip to content

[WFR] on #262 #625

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
33 changes: 18 additions & 15 deletions ja/learn/admin/REST/rest-cluster-addnodes.dita
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
<?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-add-nodes">
<title>Adding nodes to clusters</title>
<shortdesc>Nodes are added to clusters with the <codeph>POST /controller/addNode</codeph> HTTP method and URI.</shortdesc>
<reference xml:lang="ja" id="rest-cluster-add-nodes">
<title>クラスターへのノードの追加</title>
<shortdesc><codeph>POST /controller/addNode</codeph> HTTPメソッドとURIを使用してクラスターにノードを追加します。</shortdesc>
<refbody>

<section><title>HTTP method and URI</title>
<section><title>HTTPメソッドとURI</title>
<codeblock>
POST /controller/addNode
</codeblock>
</section>

<section><title>Syntax</title>
<p>This is a REST request made to a Couchbase cluster to add a server node to the cluster. A new
node is add with the RESTful endpoint <codeph>server_ip:port/controller/addNode</codeph>.
The administrative username and password parameters are required.</p>
<section><title>シンタックス</title>
<p>
これはCouchbaseクラスタがサーバノードをクラスタに追加するためのRESTリクエストです。
新しいノードはRESTfulエンドポイント <codeph>server_ip:port/controller/addNode</codeph> を使用して追加されます。
管理権限のあるユーザ名とパスワードパラメータが必要です。
</p>

<codeblock>
curl -u [admin]:[password]
Expand All @@ -23,22 +25,23 @@ curl -u [admin]:[password]
</codeblock>
</section>

<section><title>Example</title>
<p>The following example request adds a server node, 10.2.2.64, to the cluster at
10.2.2.60:8091. The POST method, <codeph>controller/addNode</codeph>, IP address for the
new server, and administrative credentials are provided. Since the POST method is the
default, it is not required in the request.</p>
<section><title>例</title>
<p>
次の例のリクエストではサーバノード、10.2.2.64を10.2.2.60:8091のクラスタに追加します。
POSTメソッド <codeph>controller/addNode</codeph>、 新しいサーバのIPアドレスと管理者権限の情報を指定します。
POSTメソッドはデフォルトなので、このリクエストは必須ではありません。
</p>

<codeblock>curl -u admin:password \
10.2.2.60:8091/controller/addNode \
-d "hostname=10.2.2.64&amp;user=admin&amp;password=password"
</codeblock>
</section>

<section><title>Response</title>
<section><title>レスポンス</title>


<p>If successful, Couchbase Server responds:</p>
<p>成功した場合のCouchbase Serverのレスポンス:</p>
<codeblock>HTTP/1.1 200 OK
{"otpNode":"[email protected]"}
</codeblock>
Expand Down