Files
doc-exports/docs/css/api-ref/RestartCluster.html
zhengxiu 8f6b8d3664 css api 25.6.0 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: zhengxiu <zhengxiu@huawei.com>
Co-committed-by: zhengxiu <zhengxiu@huawei.com>
2025-11-25 11:21:12 +00:00

105 lines
7.9 KiB
HTML

<a name="RestartCluster"></a><a name="RestartCluster"></a>
<h1 class="topictitle1">Restarting a Cluster (Deprecated)</h1>
<div id="body1708331107508"><div class="section" id="RestartCluster__section204903246165"><h4 class="sectiontitle">Function</h4><p id="RestartCluster__p16490324161617">This API is used to restart a data node in a cluster, which will interrupt services. To restart all nodes in a cluster, you are advised to use [Restart Cluster V2] (RestartClusterMultiRole.xml).</p>
<div class="note" id="RestartCluster__note8491124181612"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="RestartCluster__p149192417168">When the cluster is available, ensure that the cluster has stopped processing service data (such as importing data and searching for data). Otherwise, data may be lost when the cluster is restarted.</p>
</div></div>
</div>
<div class="section" id="RestartCluster__section5493924111611"><h4 class="sectiontitle">Calling Method</h4><p id="RestartCluster__p349482491614">For details, see <a href="css_03_0077.html">Calling APIs</a>.</p>
</div>
<div class="section" id="RestartCluster__section949582471614"><h4 class="sectiontitle">URI</h4><p id="RestartCluster__p164965248160">POST /v1.0/{project_id}/clusters/{cluster_id}/restart</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="RestartCluster__table44972024101618" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="RestartCluster__row1849682451617"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="RestartCluster__p134975249165">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="RestartCluster__p149872415160">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="RestartCluster__p174986242169">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="RestartCluster__p124996246163">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="RestartCluster__row1496202451616"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="RestartCluster__p1149914249169">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="RestartCluster__p105002242161">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="RestartCluster__p85008249169">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="RestartCluster__p650162410166"><strong id="RestartCluster__b185025243162">Definition</strong>:</p>
<p id="RestartCluster__p1950252413163">Project ID. For details about how to obtain the project ID and name, see <a href="css_03_0071.html">Obtaining the Project ID and Name</a>.</p>
<p id="RestartCluster__p125031124171614"><strong id="RestartCluster__b450382481612">Constraints</strong>:</p>
<p id="RestartCluster__p3503102418165">N/A</p>
<p id="RestartCluster__p55045243165"><strong id="RestartCluster__b450432421611">Value range</strong>:</p>
<p id="RestartCluster__p1450452411617">Project ID of the account.</p>
<p id="RestartCluster__p8504162414167"><strong id="RestartCluster__b6505162451620">Default value</strong>:</p>
<p id="RestartCluster__p1550515241161">N/A</p>
</td>
</tr>
<tr id="RestartCluster__row6496182413166"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="RestartCluster__p850512414169">cluster_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="RestartCluster__p1350616243167">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="RestartCluster__p10506524131611">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="RestartCluster__p1950852418164"><strong id="RestartCluster__b18508624181613">Definition</strong>:</p>
<p id="RestartCluster__p1250810246163">ID of the cluster you want to restart. For details about how to obtain the cluster ID, see <a href="css_03_0101.html">Obtaining the Cluster ID</a>.</p>
<p id="RestartCluster__p12509142461616"><strong id="RestartCluster__b15509824181612">Constraints</strong>:</p>
<p id="RestartCluster__p11509024161612">N/A</p>
<p id="RestartCluster__p1751011248166"><strong id="RestartCluster__b351011246166">Value range</strong>:</p>
<p id="RestartCluster__p1551015242169">Cluster ID.</p>
<p id="RestartCluster__p7511324191617"><strong id="RestartCluster__b1051116248163">Default value</strong>:</p>
<p id="RestartCluster__p1251115240164">N/A</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="RestartCluster__section4511142401616"><h4 class="sectiontitle">Request Parameters</h4><p id="RestartCluster__p1651219241168">None</p>
</div>
<div class="section" id="RestartCluster__section85138246169"><h4 class="sectiontitle">Response Parameters</h4><p id="RestartCluster__p16513724161614"><strong id="RestartCluster__b65132244163">Status code: 200</strong></p>
<p id="RestartCluster__p165147243169">Request succeeded.</p>
<p id="RestartCluster__p051462441619">None</p>
</div>
<div class="section" id="RestartCluster__section45151824191616"><h4 class="sectiontitle">Example Requests</h4><pre class="screen" id="RestartCluster__screen9516112411613">POST https://{Endpoint}/v1.0/{project_id}/clusters/47e49a5e-8ced-4d0d-ae15-2af62ac468e3/restart</pre>
</div>
<div class="section" id="RestartCluster__section3516112412167"><h4 class="sectiontitle">Example Responses</h4><p id="RestartCluster__p3517152414162">None</p>
</div>
<div class="section" id="RestartCluster__section75761524161615"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="RestartCluster__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="RestartCluster__row75771824151615"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.8.2.1.3.1.1"><p id="RestartCluster__p1457822417169">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.8.2.1.3.1.2"><p id="RestartCluster__p757852419164">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="RestartCluster__row1457772411169"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="RestartCluster__p125791424131617">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="RestartCluster__p25796244164">Request succeeded.</p>
</td>
</tr>
<tr id="RestartCluster__row18577324101610"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="RestartCluster__p16580132415169">400</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="RestartCluster__p1658017248167">Invalid request.</p>
<p id="RestartCluster__p13581824161619">Modify the request before retry.</p>
</td>
</tr>
<tr id="RestartCluster__row10577102419164"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="RestartCluster__p125813244167">404</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="RestartCluster__p3582824101615">The requested resource could not be found.</p>
<p id="RestartCluster__p458313249162">Modify the request before retry.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="RestartCluster__section14583152411619"><h4 class="sectiontitle">Error Codes</h4><p id="RestartCluster__p15584202401618">See <a href="css_03_0076.html">Error Codes</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="cluster_management.html">Cluster Management</a></div>
</div>
</div>