forked from docs/doc-exports
Reviewed-by: Kacur, Michal <michal.kacur@t-systems.com> Co-authored-by: Zheng, Xiu <zhengxiu@huawei.com> Co-committed-by: Zheng, Xiu <zhengxiu@huawei.com>
144 lines
11 KiB
HTML
144 lines
11 KiB
HTML
<a name="css_03_0087"></a><a name="css_03_0087"></a>
|
|
|
|
<h1 class="topictitle1">Changing the Specifications of a Specified Node Type</h1>
|
|
<div id="body0000001526386077"><div class="section" id="css_03_0087__section62421630162614"><h4 class="sectiontitle">Function</h4><p id="css_03_0087__p42422030152619">This API is used to change the specifications of a specified node type. The following node types are supported:</p>
|
|
<ul id="css_03_0087__ul202422030112618"><li id="css_03_0087__li12242130102612"><strong id="css_03_0087__b71421131192318">ess</strong>: data node</li><li id="css_03_0087__li162431530172614"><strong id="css_03_0087__b88451523102317">ess-cold</strong>: cold data node</li><li id="css_03_0087__li17243123018265"><strong id="css_03_0087__b223913181231">ess-client</strong>: client node</li><li id="css_03_0087__li624353011261"><strong id="css_03_0087__b16133153412312">ess-master</strong>: master node</li></ul>
|
|
</div>
|
|
<div class="section" id="css_03_0087__section524412309263"><h4 class="sectiontitle">Debugging</h4><p id="css_03_0087__p6244113010263">You can debug this API in . Automatic authentication is supported.</p>
|
|
</div>
|
|
<div class="section" id="css_03_0087__section142451930122619"><h4 class="sectiontitle">URI</h4><p id="css_03_0087__p1524503022619">POST /v1.0/{project_id}/clusters/{cluster_id}/{types}/flavor</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0087__table102473308266" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path parameters</caption><thead align="left"><tr id="css_03_0087__row132461530102610"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="css_03_0087__p11248153020261">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="css_03_0087__p3249730102617">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="css_03_0087__p1249143018267">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="css_03_0087__p5250330102613">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="css_03_0087__row5246030172612"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="css_03_0087__p6250123016264">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="css_03_0087__p72511030182612">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="css_03_0087__p32511230122618">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="css_03_0087__p0251330122610">Project ID. For details, see <a href="css_03_0071.html">Obtaining a Project ID and Name</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_03_0087__row192468307263"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="css_03_0087__p12252530142620">cluster_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="css_03_0087__p5252630142617">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="css_03_0087__p7252163012610">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="css_03_0087__p1425316303262">ID of the cluster that you want to modify specifications</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_03_0087__row8246103082619"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="css_03_0087__p182531301269">types</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="css_03_0087__p20253193014266">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="css_03_0087__p32546300269">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="css_03_0087__p9254183092611">Type of the cluster node you want to modify.</p>
|
|
<ul id="css_03_0087__ul725403042613"><li id="css_03_0087__li182541330132616"><strong id="css_03_0087__b334164517332">ess</strong>: data node</li><li id="css_03_0087__li202551305267"><strong id="css_03_0087__b956617433413">ess-cold</strong>: cold data node</li><li id="css_03_0087__li122559306263"><strong id="css_03_0087__b11580157143411">ess-client</strong>: Client node</li><li id="css_03_0087__li15255330112613"><strong id="css_03_0087__b1791311813344">ess-master</strong>: Master node</li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="css_03_0087__section2256133022616"><h4 class="sectiontitle">Request Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0087__request_UpdateFlavorByTypeReq" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request body parameter</caption><thead align="left"><tr id="css_03_0087__row122572301261"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.1"><p id="css_03_0087__p325819306267">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.2"><p id="css_03_0087__p8258173015265">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.3"><p id="css_03_0087__p025973016268">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.2.2.5.1.4"><p id="css_03_0087__p9259123062615">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="css_03_0087__row62571530132619"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="css_03_0087__p026012309264">needCheckReplica</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.2 "><p id="css_03_0087__p2260123014261">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="css_03_0087__p6260143052617">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="css_03_0087__p1626118302266">Indicates whether to verify replicas. Its value can be <strong id="css_03_0087__b98993522843250">true</strong> or <strong id="css_03_0087__b120070197943250">false</strong>. Replica verification is enabled by default.</p>
|
|
<ul id="css_03_0087__ul62618303268"><li id="css_03_0087__li7261193052612"><strong id="css_03_0087__b37858965243423">true</strong>: Replica verification is enabled.</li><li id="css_03_0087__li122611530122612"><strong id="css_03_0087__b96812677543421">false</strong>: Replica verification is disabled.</li></ul>
|
|
<div class="note" id="css_03_0087__note82631630182615"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="css_03_0087__p142641630112612">Master and client nodes are not data nodes, so they do not need to check replicas no matter this parameter is set to <strong id="css_03_0087__b86869178357">true</strong> or <strong id="css_03_0087__b164971124183510">false</strong>.</p>
|
|
</div></div>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_03_0087__row1025720307266"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="css_03_0087__p72641330122617">newFlavorId</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.2 "><p id="css_03_0087__p102656309269">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="css_03_0087__p12265173052613">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="css_03_0087__p1266830132617">ID of the new flavor. This parameter is obtained by calling the <a href="ListFlavors.html">Obtaining the Instance Specifications List</a> API. The API compares the values of the <strong id="css_03_0087__b12518277743645">name</strong> attribute and obtains the ID of the flavor higher than the current flavor. Only the node specifications of the same Elasticsearch engine version can be changed.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="css_03_0087__section1826833082615"><h4 class="sectiontitle">Response Parameters</h4><p id="css_03_0087__p15268730122618">None</p>
|
|
</div>
|
|
<div class="section" id="css_03_0087__section42691530122613"><h4 class="sectiontitle">Request Example</h4><ul id="css_03_0087__ul19269230102618"><li id="css_03_0087__li1026913002614"><pre class="screen" id="css_03_0087__screen227013052614">{
|
|
"needCheckReplica" : false,
|
|
"newFlavorId" : "35b060a4-f152-48ce-8773-36559ceb81f2",
|
|
"isAutoPay" : 1
|
|
}</pre>
|
|
</li><li id="css_03_0087__li1271173092616"><pre class="screen" id="css_03_0087__screen12272103032615">{
|
|
"needCheckReplica" : false,
|
|
"newFlavorId" : "35b060a4-f152-48ce-8773-36559ceb81f2"
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="css_03_0087__section1273173082610"><h4 class="sectiontitle">Response Example</h4><p id="css_03_0087__p16274830112619">None</p>
|
|
</div>
|
|
<div class="section" id="css_03_0087__section52747308262"><h4 class="sectiontitle">Status Codes</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0087__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="css_03_0087__row227503042611"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.8.2.1.3.1.1"><p id="css_03_0087__p1327673012618">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.8.2.1.3.1.2"><p id="css_03_0087__p9276113052617">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="css_03_0087__row1527563062616"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="css_03_0087__p19276183012269">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="css_03_0087__p427715309262">The request is processed successfully.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_03_0087__row202752309266"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="css_03_0087__p6277113011269">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="css_03_0087__p1527711309268">Invalid request.</p>
|
|
<p id="css_03_0087__p14278830122612">Modify the request instead of retrying.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_03_0087__row627563042611"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="css_03_0087__p13278163082619">409</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="css_03_0087__p112781130132619">The request cannot be processed due to a conflict.</p>
|
|
<p id="css_03_0087__p1227973042613">This status code indicates that the resource that the client attempts to create already exists, or the request fails to be processed because of the update of the conflict request.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_03_0087__row10275430162613"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="css_03_0087__p327943092618">412</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="css_03_0087__p1327911305263">The server does not meet one of the requirements that the requester puts on the request.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="css_03_0008.html">Cluster Management APIs</a></div>
|
|
</div>
|
|
</div>
|
|
|