doc-exports/docs/css/api-ref/css_03_0088.html
Zheng, Xiu bf0cbd66f9 CSS API 22.4.1 Version
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>
2023-04-12 00:11:02 +00:00

112 lines
7.3 KiB
HTML

<a name="css_03_0088"></a><a name="css_03_0088"></a>
<h1 class="topictitle1">Scaling In a Cluster by Removing a Specific Node</h1>
<div id="body0000001475985632"><div class="section" id="css_03_0088__section18570113633110"><h4 class="sectiontitle">Function</h4><p id="css_03_0088__p145701036163115">This API is used to scale in a cluster by removing a specified node.</p>
</div>
<div class="section" id="css_03_0088__section145721236153117"><h4 class="sectiontitle">URI</h4><p id="css_03_0088__p1573103616319">POST /v1.0/{project_id}/clusters/{cluster_id}/node/offline</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0088__table6574736193112" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="css_03_0088__row1857373693118"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="css_03_0088__p1557517360313">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="css_03_0088__p1757653615317">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="css_03_0088__p3577336183118">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="css_03_0088__p857793615313">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0088__row1557463613110"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="css_03_0088__p17578133633116">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="css_03_0088__p11579183610312">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="css_03_0088__p2057910368319">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="css_03_0088__p558083617311">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__row657453663114"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="css_03_0088__p258033633116">cluster_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="css_03_0088__p35811636203110">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="css_03_0088__p1458133603118">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="css_03_0088__p13582183619311">ID of the cluster you want to scale in.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="css_03_0088__section1758223673119"><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 parameters</caption><thead align="left"><tr id="css_03_0088__row15831436173118"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="css_03_0088__p18584173618313">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="css_03_0088__p19584236203111">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="css_03_0088__p35851936103115">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="css_03_0088__p13586103653119">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0088__row155838368318"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="css_03_0088__p75873369317">shrinkNodes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="css_03_0088__p458743615314">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="css_03_0088__p1658818368315">Array of strings</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="css_03_0088__p1458811363317">ID of the node you want to remove from a cluster.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="css_03_0088__section7590123618311"><h4 class="sectiontitle">Response Parameters</h4><p id="css_03_0088__p9590736113119">None</p>
</div>
<div class="section" id="css_03_0088__section1959183623116"><h4 class="sectiontitle">Example Requests</h4><pre class="screen" id="css_03_0088__screen4592836143118">{
"shrinkNodes" : [ "2077bdf3-b90d-412e-b460-635b9b159c11" ]
}</pre>
</div>
<div class="section" id="css_03_0088__section659493633111"><h4 class="sectiontitle">Example Responses</h4><p id="css_03_0088__p17596736183110">None</p>
</div>
<div class="section" id="css_03_0088__section159693610314"><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__row1959713361312"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="css_03_0088__p1659811369314">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p id="css_03_0088__p10599133611317">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0088__row195971636153112"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="css_03_0088__p126005362315">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="css_03_0088__p166010362311">Request succeeded.</p>
</td>
</tr>
<tr id="css_03_0088__row359713616311"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="css_03_0088__p7602203620311">400</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="css_03_0088__p36021836203119">Invalid request.</p>
<p id="css_03_0088__p9603173673116">Modify the request before retry.</p>
</td>
</tr>
<tr id="css_03_0088__row185971236193115"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="css_03_0088__p206031036133111">409</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="css_03_0088__p14604203611312">The request could not be completed due to a conflict with the current state of the resource.</p>
<p id="css_03_0088__p8604123613113">The resource that the client attempts to create already exists, or the update request fails to be processed because of a conflict.</p>
</td>
</tr>
<tr id="css_03_0088__row165977362311"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="css_03_0088__p260518360314">412</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="css_03_0088__p10605103618310">The server did not meet one of the preconditions contained in 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>