1
0
forked from docs/doc-exports
doc-exports/docs/css/api-ref/css_03_0090.html
Wuwan, Qi 8675132585 CSS API 23.2.1 20230926
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Wuwan, Qi <wuwanqi1@noreply.gitea.eco.tsi-dev.otc-service.com>
Co-committed-by: Wuwan, Qi <wuwanqi1@noreply.gitea.eco.tsi-dev.otc-service.com>
2023-10-23 09:34:01 +00:00

92 lines
6.0 KiB
HTML

<a name="css_03_0090"></a><a name="css_03_0090"></a>
<h1 class="topictitle1">Replacing a Node</h1>
<div id="body0000001526665653"><div class="section" id="css_03_0090__section09211136183114"><h4 class="sectiontitle">Function</h4><p id="css_03_0090__p149221036163113">This API is used to replace a failed node.</p>
</div>
<div class="section" id="css_03_0090__section1492519361310"><h4 class="sectiontitle">URI</h4><p id="css_03_0090__p692573614310">PUT /v1.0/{project_id}/clusters/{cluster_id}/instance/{instance_id}/replace</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0090__table992813367312" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="css_03_0090__row1927336163112"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="css_03_0090__p89288360316">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_0090__p292993619319">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_0090__p139301236153111">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_0090__p493119365319">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0090__row092720367317"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="css_03_0090__p1793211364315">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="css_03_0090__p893233683114">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="css_03_0090__p10933143616318">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="css_03_0090__p119341936153114">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_0090__row139274369312"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="css_03_0090__p10935133693112">cluster_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="css_03_0090__p9935113633119">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="css_03_0090__p793703617310">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="css_03_0090__p11938103616314">ID of the cluster where nodes are to be replaced</p>
</td>
</tr>
<tr id="css_03_0090__row14927193683114"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="css_03_0090__p19938153617317">instance_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="css_03_0090__p1393918364310">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="css_03_0090__p12940143613310">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="css_03_0090__p179407369316">ID of the node to be replaced</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="css_03_0090__section1294183613313"><h4 class="sectiontitle">Request Parameters</h4><p id="css_03_0090__p7941936203116">None</p>
</div>
<div class="section" id="css_03_0090__section12942436103114"><h4 class="sectiontitle">Response Parameters</h4><p id="css_03_0090__p1094215363316">None</p>
</div>
<div class="section" id="css_03_0090__section59438361313"><h4 class="sectiontitle">Example Requests</h4><pre class="screen" id="css_03_0090__screen109431836123115">PUT /v1.0/{project_id}/clusters/{cluster_id}/instance/{instance_id}/replace</pre>
</div>
<div class="section" id="css_03_0090__section15944133643112"><h4 class="sectiontitle">Example Responses</h4><p id="css_03_0090__p1794583643110">None</p>
</div>
<div class="section" id="css_03_0090__section159451836173118"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0090__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="css_03_0090__row1494613616315"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="css_03_0090__p179473362315">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_0090__p9948113616317">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0090__row1494693633119"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="css_03_0090__p159481136153114">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="css_03_0090__p1949836183113">Request succeeded.</p>
</td>
</tr>
<tr id="css_03_0090__row994616361313"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="css_03_0090__p1594915366312">400</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="css_03_0090__p10950193623116">Invalid request.</p>
<p id="css_03_0090__p12950436173115">The client should modify the request instead of re-initiating it.</p>
</td>
</tr>
<tr id="css_03_0090__row094603614317"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="css_03_0090__p1495183615318">404</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="css_03_0090__p20952203623112">The requested resource could not be found.</p>
<p id="css_03_0090__p1895343615316">The client should modify the request instead of re-initiating it.</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>