Skip to content

Commit

Permalink
Added documentation for the 'services' parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkTickner authored and mattcarabine committed Apr 7, 2017
1 parent 6c0ea4a commit 64d88f7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions content/rest-api/rest-servergroup-post-add.dita
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,20 @@
<refbody>
<section><title>HTTP method and URI</title>
<p><codeph>POST /pools/default/serverGroups/&lt;:uuid&gt;/addNode</codeph> adds a server to a cluster and
assigns it to the specified server group.
assigns it to the specified server group, with the specified services (defaulting to data if not provided).
</p>
<codeblock>POST /pools/default/serverGroups/&lt;:uuid&gt;/addNode</codeblock>
</section>

<section><title>Syntax</title>
<codeblock>curl -X POST -d hostname=&lt;host&gt;:&lt;port&gt; -d user=&lt;administrator> -d password=&lt;password>
<codeblock>curl -X POST -d hostname=&lt;host&gt;:&lt;port&gt; -d services=&lt;kv|index|n1ql|fts&gt; -d user=&lt;administrator> -d password=&lt;password>
-u &lt;administrator&gt;:&lt;password&gt;
http://&lt;host&gt;:&lt;port&gt;/pools/default/serverGroups/&lt;uuid&gt;/addNode</codeblock>
</section>

<section><title>Example</title>
<codeblock>curl -X POST -d hostname=192.168.0.2:8091 -d user=myAdmin -d password=myPassword \
<codeblock>curl -X POST -d hostname=192.168.0.2:8091 -d services=n1ql%2Cindex \
-d user=myAdmin -d password=myPassword \
-u myAdmin:myPassword \
http://192.168.0.1:8091/pools/default/ \
serverGroups/246b5de857e100dbfd8b6dee0406420a/addNode</codeblock>
Expand Down

0 comments on commit 64d88f7

Please sign in to comment.