forked from docs/doc-exports
move doc sources to other location Reviewed-by: OpenTelekomCloud Bot <None>
105 lines
8.1 KiB
HTML
105 lines
8.1 KiB
HTML
<a name="EN-US_TOPIC_0020212650"></a><a name="EN-US_TOPIC_0020212650"></a>
|
|
|
|
<h1 class="topictitle1">Restarting an <span id="text45741610454">ECS</span></h1>
|
|
<div id="body47192740"><div class="section" id="EN-US_TOPIC_0020212650__section6488958"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0020212650__p64515557">This API is used to restart a single <span id="EN-US_TOPIC_0020212650__text98011816154511">ECS</span>.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0020212650__section58400626"><h4 class="sectiontitle">URI</h4><p id="EN-US_TOPIC_0020212650__p0312111422114">POST /v2.1/{project_id}/servers/{server_id}/action</p>
|
|
<p id="EN-US_TOPIC_0020212650__p1896982512811">POST /v2/{project_id}/servers/{server_id}/action</p>
|
|
<div class="p" id="EN-US_TOPIC_0020212650__p473063263518"><a href="#EN-US_TOPIC_0020212650__table62669527">Table 1</a> describes the parameters in the URI.
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0020212650__table62669527"></a><a name="table62669527"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0020212650__table62669527" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="EN-US_TOPIC_0020212650__row33894570"><th align="left" class="cellrowborder" valign="top" width="16.61%" id="mcps1.3.2.4.2.2.4.1.1"><p id="EN-US_TOPIC_0020212650__p5187119">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="17.54%" id="mcps1.3.2.4.2.2.4.1.2"><p id="EN-US_TOPIC_0020212650__p17503500">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="65.85%" id="mcps1.3.2.4.2.2.4.1.3"><p id="EN-US_TOPIC_0020212650__p8497414">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0020212650__row8419032"><td class="cellrowborder" valign="top" width="16.61%" headers="mcps1.3.2.4.2.2.4.1.1 "><p id="EN-US_TOPIC_0020212650__p10852974">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.54%" headers="mcps1.3.2.4.2.2.4.1.2 "><p id="EN-US_TOPIC_0020212650__p6675738">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.85%" headers="mcps1.3.2.4.2.2.4.1.3 "><p id="EN-US_TOPIC_0020212650__p37593705">Specifies the project ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0020212650__row34774863"><td class="cellrowborder" valign="top" width="16.61%" headers="mcps1.3.2.4.2.2.4.1.1 "><p id="EN-US_TOPIC_0020212650__p65300541">server_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.54%" headers="mcps1.3.2.4.2.2.4.1.2 "><p id="EN-US_TOPIC_0020212650__p54852443">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.85%" headers="mcps1.3.2.4.2.2.4.1.3 "><p id="EN-US_TOPIC_0020212650__p13862865">Specifies the <span id="EN-US_TOPIC_0020212650__text155667502508">ECS</span> ID.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0020212650__section55843593"><h4 class="sectiontitle">Request</h4><div class="p" id="EN-US_TOPIC_0020212650__p38611329133617"><a href="#EN-US_TOPIC_0020212650__table37818817">Table 2</a> describes the request parameters.
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0020212650__table37818817"></a><a name="table37818817"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0020212650__table37818817" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0020212650__row57787318"><th align="left" class="cellrowborder" valign="top" width="16.55%" id="mcps1.3.3.2.2.2.5.1.1"><p id="EN-US_TOPIC_0020212650__p50261201">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="17.669999999999998%" id="mcps1.3.3.2.2.2.5.1.2"><p id="EN-US_TOPIC_0020212650__p44625493">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="16.16%" id="mcps1.3.3.2.2.2.5.1.3"><p id="EN-US_TOPIC_0020212650__p57895144">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="49.62%" id="mcps1.3.3.2.2.2.5.1.4"><p id="EN-US_TOPIC_0020212650__p58995125">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0020212650__row13875810"><td class="cellrowborder" valign="top" width="16.55%" headers="mcps1.3.3.2.2.2.5.1.1 "><p id="EN-US_TOPIC_0020212650__p50198807">reboot</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.669999999999998%" headers="mcps1.3.3.2.2.2.5.1.2 "><p id="EN-US_TOPIC_0020212650__p39571581">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.16%" headers="mcps1.3.3.2.2.2.5.1.3 "><p id="EN-US_TOPIC_0020212650__p51181499">Object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="49.62%" headers="mcps1.3.3.2.2.2.5.1.4 "><p id="EN-US_TOPIC_0020212650__p65893970">Specifies the operation to restart the <span id="EN-US_TOPIC_0020212650__text1717019180454">ECS</span>. For details, see <a href="#EN-US_TOPIC_0020212650__table10346346162744">Table 3</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0020212650__table10346346162744"></a><a name="table10346346162744"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0020212650__table10346346162744" frame="border" border="1" rules="all"><caption><b>Table 3 </b><strong id="EN-US_TOPIC_0020212650__b18127167514">reboot</strong> field description</caption><thead align="left"><tr id="EN-US_TOPIC_0020212650__row45993853162744"><th align="left" class="cellrowborder" valign="top" width="16.54%" id="mcps1.3.3.2.3.2.5.1.1"><p id="EN-US_TOPIC_0020212650__p8544354193715">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="17.669999999999998%" id="mcps1.3.3.2.3.2.5.1.2"><p id="EN-US_TOPIC_0020212650__p13544195423710">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="16.16%" id="mcps1.3.3.2.3.2.5.1.3"><p id="EN-US_TOPIC_0020212650__p154465415374">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="49.63%" id="mcps1.3.3.2.3.2.5.1.4"><p id="EN-US_TOPIC_0020212650__p1554412541371">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0020212650__row41908639162744"><td class="cellrowborder" valign="top" width="16.54%" headers="mcps1.3.3.2.3.2.5.1.1 "><p id="EN-US_TOPIC_0020212650__p39156593162744">type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.669999999999998%" headers="mcps1.3.3.2.3.2.5.1.2 "><p id="EN-US_TOPIC_0020212650__p17567451162744">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.16%" headers="mcps1.3.3.2.3.2.5.1.3 "><p id="EN-US_TOPIC_0020212650__p13677446162744">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="49.63%" headers="mcps1.3.3.2.3.2.5.1.4 "><p id="EN-US_TOPIC_0020212650__p34131354162744">Specifies the type of the restart operation.</p>
|
|
<ul id="EN-US_TOPIC_0020212650__ul1169415154044"><li id="EN-US_TOPIC_0020212650__li14099013154044"><strong>SOFT</strong>: soft restart</li><li id="EN-US_TOPIC_0020212650__li59782258154044"><strong id="EN-US_TOPIC_0020212650__b6265247414476">HARD</strong>: forcible restart (hard restart)</li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0020212650__section32830290"><h4 class="sectiontitle">Response</h4><p id="EN-US_TOPIC_0020212650__p29397739">None</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0020212650__section7158465403"><h4 class="sectiontitle">Example Request</h4><pre class="screen" id="EN-US_TOPIC_0020212650__screen15753193211">POST https://{endpoint}/v2.1/{project_id}/servers/{server_id}/action</pre>
|
|
<pre class="screen" id="EN-US_TOPIC_0020212650__screen52812733194534">{
|
|
"reboot": {
|
|
"type": "SOFT"
|
|
}
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0020212650__section271812171439"><h4 class="sectiontitle">Example Response</h4><p id="EN-US_TOPIC_0020212650__p20241521638">None</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0020212650__section27037160"><h4 class="sectiontitle">Returned Values</h4><p id="EN-US_TOPIC_0020212650__p23224207">See <a href="en-us_topic_0022067716.html">Returned Values for General Requests</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0124385016.html">Status Management</a></div>
|
|
</div>
|
|
</div>
|
|
|