1
0
forked from docs/doc-exports
doc-exports/docs/css/api-ref/css_03_0088.html
Zheng, Xiu 99a2d77599 css api 23.5.1 20240520
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>
2024-06-07 17:47:08 +00:00

115 lines
7.8 KiB
HTML

<a name="css_03_0088"></a><a name="css_03_0088"></a>
<h1 class="topictitle1">Scaling in a Cluster By Removing Specified Nodes</h1>
<div id="body0000001475985632"><div class="section" id="css_03_0088__section54412029112619"><h4 class="sectiontitle">Function</h4><p id="css_03_0088__p114411429112616">This API is used to scale in a cluster by removing specified nodes. Yearly/Monthly clusters do not support the removal of specified nodes by calling this API.</p>
</div>
<div class="section" id="css_03_0088__section104421929202619"><h4 class="sectiontitle">Debugging</h4><p id="css_03_0088__p1044242919264">You can debug this API in . Automatic authentication is supported.</p>
</div>
<div class="section" id="css_03_0088__section17442192942614"><h4 class="sectiontitle">URI</h4><p id="css_03_0088__p944342952620">POST /v1.0/{project_id}/clusters/{cluster_id}/node/offline</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0088__table644411299267" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path parameters</caption><thead align="left"><tr id="css_03_0088__row34437290269"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="css_03_0088__p14445102911263">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_0088__p344582910268">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_0088__p744617294265">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_0088__p11446102917266">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0088__row154444293268"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="css_03_0088__p16446172918262">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="css_03_0088__p1544612299269">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="css_03_0088__p444702910264">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="css_03_0088__p84471829172612">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_0088__row20444629112619"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="css_03_0088__p24481729122614">cluster_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="css_03_0088__p844816296263">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="css_03_0088__p1644862919263">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="css_03_0088__p18449172952616">ID of the cluster you want to scale in</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="css_03_0088__section19449152916266"><h4 class="sectiontitle">Request Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0088__request_ShrinkNodesReq" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request body parameter</caption><thead align="left"><tr id="css_03_0088__row145032952614"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.1"><p id="css_03_0088__p19451929102613">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_0088__p11452129152618">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_0088__p9452172952613">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_0088__p154531229142618">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0088__row20451152922611"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="css_03_0088__p6453122918267">shrinkNodes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.2 "><p id="css_03_0088__p24544290269">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="css_03_0088__p345410291261">Array of strings</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="css_03_0088__p1454102915260">ID of the node you want to remove.</p>
<p id="css_03_0088__p145552912617">Obtain the <strong id="css_03_0088__b927818277429">ID</strong> attribute in instances by referring to <a href="ShowClusterDetail.html">Querying Cluster Details</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="css_03_0088__section945672918268"><h4 class="sectiontitle">Response Parameters</h4><p id="css_03_0088__p1445772916264">None</p>
</div>
<div class="section" id="css_03_0088__section64571329122612"><h4 class="sectiontitle">Request Example</h4><pre class="screen" id="css_03_0088__screen1457112916266">{
"shrinkNodes" : [ "2077bdf3-b90d-412e-b460-635b9b159c11" ]
}</pre>
</div>
<div class="section" id="css_03_0088__section14591297265"><h4 class="sectiontitle">Response Example</h4><p id="css_03_0088__p04591029182612">None</p>
</div>
<div class="section" id="css_03_0088__section204591029152619"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0088__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="css_03_0088__row1746022922612"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.8.2.1.3.1.1"><p id="css_03_0088__p134611729192615">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_0088__p1746182982619">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0088__row5460142942617"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="css_03_0088__p3462629142620">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="css_03_0088__p1462829202613">The request is processed successfully.</p>
</td>
</tr>
<tr id="css_03_0088__row44601529192619"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="css_03_0088__p94621929132618">400</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="css_03_0088__p104621729172612">Invalid request.</p>
<p id="css_03_0088__p24631929172615">Modify the request instead of retrying.</p>
</td>
</tr>
<tr id="css_03_0088__row1846052916260"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="css_03_0088__p44631329172618">409</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="css_03_0088__p1246332917266">The request cannot be processed due to a conflict.</p>
<p id="css_03_0088__p9463162914263">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_0088__row846017291268"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="css_03_0088__p164641329192615">412</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="css_03_0088__p11464152912616">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>