forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
127 lines
10 KiB
HTML
127 lines
10 KiB
HTML
<a name="EN-US_TOPIC_0000001231272815"></a><a name="EN-US_TOPIC_0000001231272815"></a>
|
|
|
|
<h1 class="topictitle1">Restarting a Cluster</h1>
|
|
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000001231272815__en-us_topic_0000001145496635_s7aa3de1b44f14c0487bab690bb5702d6"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0000001231272815__en-us_topic_0000001145496635_af45ba7dd71a6422c9a39c39b44dbd8a8">This API is used to restart clusters.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001231272815__en-us_topic_0000001145496635_s9db56e76e7694a5cbfd993c7d1db0606"><h4 class="sectiontitle">URI</h4><pre class="screen" id="EN-US_TOPIC_0000001231272815__en-us_topic_0000001145496635_screen711213995816">POST /v1.0/{project_id}/clusters/{cluster_id}/restart</pre>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001231272815__table111263622212" frame="border" border="1" rules="all"><caption><b>Table 1 </b>URI parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000001231272815__row211133602213"><th align="left" class="cellrowborder" valign="top" width="19.64%" id="mcps1.3.2.3.2.5.1.1"><p id="EN-US_TOPIC_0000001231272815__p91043619220"><strong id="EN-US_TOPIC_0000001231272815__b7124841138206">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="9.58%" id="mcps1.3.2.3.2.5.1.2"><p id="EN-US_TOPIC_0000001231272815__p9101336132219"><strong id="EN-US_TOPIC_0000001231272815__en-us_topic_0000001145496635_b16976651162625">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="14.7%" id="mcps1.3.2.3.2.5.1.3"><p id="EN-US_TOPIC_0000001231272815__p51118365222"><strong id="EN-US_TOPIC_0000001231272815__en-us_topic_0000001145496635_b63441152313">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="56.08%" id="mcps1.3.2.3.2.5.1.4"><p id="EN-US_TOPIC_0000001231272815__p18111436102212"><strong id="EN-US_TOPIC_0000001231272815__en-us_topic_0000001145496635_b27112162319">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001231272815__row1612173632217"><td class="cellrowborder" valign="top" width="19.64%" headers="mcps1.3.2.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001231272815__p7111368223">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="9.58%" headers="mcps1.3.2.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001231272815__p61153682217">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.7%" headers="mcps1.3.2.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001231272815__p111153622217">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.08%" headers="mcps1.3.2.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001231272815__p2121736102212"><span id="EN-US_TOPIC_0000001231272815__en-us_topic_0000001145496635_text18643193123114">Project ID</span>. For details about how to obtain the ID, see <a href="dws_02_0011.html">Obtaining a Project ID</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001231272815__row12122364229"><td class="cellrowborder" valign="top" width="19.64%" headers="mcps1.3.2.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001231272815__p4120362223">cluster_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="9.58%" headers="mcps1.3.2.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001231272815__p1612143610228">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.7%" headers="mcps1.3.2.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001231272815__p191218366226">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.08%" headers="mcps1.3.2.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001231272815__p151223662219">ID of the cluster to be restarted. For details about how to obtain the ID, see <a href="dws_02_00068.html">Obtaining the Cluster ID</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001231272815__section683289152312"><h4 class="sectiontitle">Request Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001231272815__table4731320152315" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request body parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000001231272815__row187382092317"><th align="left" class="cellrowborder" valign="top" width="20.97%" id="mcps1.3.3.2.2.5.1.1"><p id="EN-US_TOPIC_0000001231272815__p87372092311"><strong id="EN-US_TOPIC_0000001231272815__b7962611378206">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="10.549999999999999%" id="mcps1.3.3.2.2.5.1.2"><p id="EN-US_TOPIC_0000001231272815__p973132002312"><strong id="EN-US_TOPIC_0000001231272815__b1226948485">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="15.15%" id="mcps1.3.3.2.2.5.1.3"><p id="EN-US_TOPIC_0000001231272815__p774120122311"><strong id="EN-US_TOPIC_0000001231272815__b1523933010">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="53.33%" id="mcps1.3.3.2.2.5.1.4"><p id="EN-US_TOPIC_0000001231272815__p974172092311"><strong id="EN-US_TOPIC_0000001231272815__en-us_topic_0000001145496635_b157696842315">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001231272815__row174120192311"><td class="cellrowborder" valign="top" width="20.97%" headers="mcps1.3.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001231272815__p974620132313">restart</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10.549999999999999%" headers="mcps1.3.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001231272815__p207412203232">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.15%" headers="mcps1.3.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001231272815__p574142072312">Object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="53.33%" headers="mcps1.3.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001231272815__p1574320172311">Restart flag</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001231272815__section124984416239"><h4 class="sectiontitle">Response Parameters</h4><p id="EN-US_TOPIC_0000001231272815__p984304732316">None</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001231272815__en-us_topic_0000001145496635_sa64d5fde1cb94be29689b1aab5bc2bb2"><h4 class="sectiontitle">Example Request</h4><pre class="screen" id="EN-US_TOPIC_0000001231272815__screen1733210301989">POST https://{Endpoint}/v1.0/89cd04f168b84af6be287f71730fdb4b/clusters/4ca46bf1-5c61-48ff-b4f3-0ad4e5e3ba90/restart
|
|
|
|
{
|
|
"restart" : { }
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001231272815__en-us_topic_0000001145496635_saf8285fea2964e558a059d985c498559"><h4 class="sectiontitle">Example Response</h4><p id="EN-US_TOPIC_0000001231272815__p1345423613244">None</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001231272815__en-us_topic_0000001145496635_s318da95b204f47c4bef42e78b54a9089"><h4 class="sectiontitle">Status Code</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001231272815__en-us_topic_0000001437658177_status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000001231272815__row1156020031417"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="EN-US_TOPIC_0000001231272815__p756412010146">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p id="EN-US_TOPIC_0000001231272815__p1656480141411"><strong id="EN-US_TOPIC_0000001231272815__b1374914282">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001231272815__row956010041418"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="EN-US_TOPIC_0000001231272815__p9565502144">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="EN-US_TOPIC_0000001231272815__p35654012149">The cluster is restarted.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001231272815__row35616014142"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="EN-US_TOPIC_0000001231272815__p105665031411">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="EN-US_TOPIC_0000001231272815__p155665041411">Request error.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001231272815__row14561170161419"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="EN-US_TOPIC_0000001231272815__p10567140161420">401</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="EN-US_TOPIC_0000001231272815__p65678016140">Authentication failed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001231272815__row4561130161416"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="EN-US_TOPIC_0000001231272815__p456880111416">403</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="EN-US_TOPIC_0000001231272815__p1056916016146">You do not have required permissions.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001231272815__row15561150181418"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="EN-US_TOPIC_0000001231272815__p15570170121411">404</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="EN-US_TOPIC_0000001231272815__p13570100121420">No resources found.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001231272815__row35621601146"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="EN-US_TOPIC_0000001231272815__p8571307149">500</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="EN-US_TOPIC_0000001231272815__p157140121412">Internal service error.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001231272815__row175621907145"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="EN-US_TOPIC_0000001231272815__p65727017143">503</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="EN-US_TOPIC_0000001231272815__p14572140121411">Service unavailable.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_02_0017.html">Managing Clusters</a></div>
|
|
</div>
|
|
</div>
|
|
|