forked from docs/doc-exports
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>
115 lines
8.1 KiB
HTML
115 lines
8.1 KiB
HTML
<a name="css_03_0021"></a><a name="css_03_0021"></a>
|
|
|
|
<h1 class="topictitle1">Restarting a Cluster</h1>
|
|
<div id="body1502957786212"><div class="section" id="css_03_0021__section16607137567"><h4 class="sectiontitle">Function</h4><p id="css_03_0021__p201141014125619">This API is used to restart a cluster. Restarting the cluster will interrupt ongoing services.</p>
|
|
</div>
|
|
<div class="section" id="css_03_0021__section1566021345618"><h4 class="sectiontitle">URI</h4><pre class="screen" id="css_03_0021__screen2401124204013">POST /v1.0/{project_id}/clusters/{cluster_id}/restart</pre>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0021__table5660213195614" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="css_03_0021__row1114111425612"><th align="left" class="cellrowborder" valign="top" width="25.742574257425744%" id="mcps1.3.2.3.2.5.1.1"><p id="css_03_0021__p0114121417563">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="24.752475247524753%" id="mcps1.3.2.3.2.5.1.2"><p id="css_03_0021__p51141140563">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="18.81188118811881%" id="mcps1.3.2.3.2.5.1.3"><p id="css_03_0021__p911411143567">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="30.693069306930692%" id="mcps1.3.2.3.2.5.1.4"><p id="css_03_0021__p511417145568">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="css_03_0021__row4114314185617"><td class="cellrowborder" valign="top" width="25.742574257425744%" headers="mcps1.3.2.3.2.5.1.1 "><p id="css_03_0021__p411491414569">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.752475247524753%" headers="mcps1.3.2.3.2.5.1.2 "><p id="css_03_0021__p11141814195617">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.81188118811881%" headers="mcps1.3.2.3.2.5.1.3 "><p id="css_03_0021__p151147141568">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="30.693069306930692%" headers="mcps1.3.2.3.2.5.1.4 "><p id="css_03_0021__p181147147563">Project ID. </p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_03_0021__row121141814115618"><td class="cellrowborder" valign="top" width="25.742574257425744%" headers="mcps1.3.2.3.2.5.1.1 "><p id="css_03_0021__p1011491416566">cluster_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.752475247524753%" headers="mcps1.3.2.3.2.5.1.2 "><p id="css_03_0021__p511441415614">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.81188118811881%" headers="mcps1.3.2.3.2.5.1.3 "><p id="css_03_0021__p9114814125614">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="30.693069306930692%" headers="mcps1.3.2.3.2.5.1.4 "><p id="css_03_0021__p211461445611">ID of the cluster to be restarted.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="css_03_0021__section16676613185611"><h4 class="sectiontitle">Request</h4><p id="css_03_0021__p196944473118">None</p>
|
|
</div>
|
|
<div class="section" id="css_03_0021__section567618138567"><h4 class="sectiontitle">Response</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0021__table134134101673" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameter description</caption><thead align="left"><tr id="css_03_0021__row34302108710"><th align="left" class="cellrowborder" valign="top" width="20.73%" id="mcps1.3.4.2.2.4.1.1"><p id="css_03_0021__p144309102719">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="21.95%" id="mcps1.3.4.2.2.4.1.2"><p id="css_03_0021__p24306101877">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="57.32000000000001%" id="mcps1.3.4.2.2.4.1.3"><p id="css_03_0021__p743071010717">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="css_03_0021__row164441710172"><td class="cellrowborder" valign="top" width="20.73%" headers="mcps1.3.4.2.2.4.1.1 "><p id="css_03_0021__p11444191010712">jobId</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.95%" headers="mcps1.3.4.2.2.4.1.2 "><p id="css_03_0021__p94447103718">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.32000000000001%" headers="mcps1.3.4.2.2.4.1.3 "><p id="css_03_0021__p1644420107711">ID of the restart task.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="css_03_0021__section02195263215"><h4 class="sectiontitle">Examples</h4><p id="css_03_0021__p3114814165618">Example request</p>
|
|
<pre class="screen" id="css_03_0021__screen496302015458">POST /v1.0/6204a5bd270343b5885144cf9c8c158d/clusters/47e49a5e-8ced-4d0d-ae15-2af62ac468e3/restart</pre>
|
|
<p id="css_03_0021__p1522310459128">Example response</p>
|
|
<pre class="screen" id="css_03_0021__screen1114131445619">{
|
|
"jobId": [
|
|
"ff8080815fa0fa5e015fa365b6300007"
|
|
]
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="css_03_0021__section87962546391"><h4 class="sectiontitle">Status Code</h4><p id="css_03_0021__p46921709171"><a href="#css_03_0021__table12321369178">Table 3</a> describes the status code.</p>
|
|
|
|
<div class="tablenoborder"><a name="css_03_0021__table12321369178"></a><a name="table12321369178"></a><table cellpadding="4" cellspacing="0" summary="" id="css_03_0021__table12321369178" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Status code</caption><thead align="left"><tr id="css_03_0021__en-us_topic_0000001342030725_row1972183521418"><th align="left" class="cellrowborder" valign="top" width="15.939999999999998%" id="mcps1.3.6.3.2.4.1.1"><p id="css_03_0021__en-us_topic_0000001342030725_p14560134151414">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="31.04%" id="mcps1.3.6.3.2.4.1.2"><p id="css_03_0021__en-us_topic_0000001342030725_p5563194141411">Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="53.02%" id="mcps1.3.6.3.2.4.1.3"><p id="css_03_0021__en-us_topic_0000001342030725_p256616411143">Status Code Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="css_03_0021__en-us_topic_0000001342030725_row129720356144"><td class="cellrowborder" valign="top" width="15.939999999999998%" headers="mcps1.3.6.3.2.4.1.1 "><p id="css_03_0021__en-us_topic_0000001342030725_p1957004131410">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="31.04%" headers="mcps1.3.6.3.2.4.1.2 "><p id="css_03_0021__en-us_topic_0000001342030725_p165731141171419">BadRequest</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="53.02%" headers="mcps1.3.6.3.2.4.1.3 "><p id="css_03_0021__en-us_topic_0000001342030725_p65778413148">Invalid request.</p>
|
|
<p id="css_03_0021__en-us_topic_0000001342030725_p1557974171415">The client should not repeat the request without modifications.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_03_0021__en-us_topic_0000001342030725_row8972103517147"><td class="cellrowborder" valign="top" width="15.939999999999998%" headers="mcps1.3.6.3.2.4.1.1 "><p id="css_03_0021__en-us_topic_0000001342030725_p75841441191410">404</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="31.04%" headers="mcps1.3.6.3.2.4.1.2 "><p id="css_03_0021__en-us_topic_0000001342030725_p258716416142">NotFound</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="53.02%" headers="mcps1.3.6.3.2.4.1.3 "><p id="css_03_0021__en-us_topic_0000001342030725_p15589154118141">The requested resource cannot be found.</p>
|
|
<p id="css_03_0021__en-us_topic_0000001342030725_p14590164151410">The client should not repeat the request without modifications.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_03_0021__en-us_topic_0000001342030725_row297223511416"><td class="cellrowborder" valign="top" width="15.939999999999998%" headers="mcps1.3.6.3.2.4.1.1 "><p id="css_03_0021__en-us_topic_0000001342030725_p13595164131416">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="31.04%" headers="mcps1.3.6.3.2.4.1.2 "><p id="css_03_0021__en-us_topic_0000001342030725_p9598741131416">OK</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="53.02%" headers="mcps1.3.6.3.2.4.1.3 "><p id="css_03_0021__en-us_topic_0000001342030725_p659994115146">The request is processed successfully.</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>
|
|
|