forked from docs/doc-exports
Reviewed-by: Pristromskaia, Margarita <margarita.pristromskaia@t-systems.com> Co-authored-by: Zaoxu, Li <lizaoxu@huawei.com> Co-committed-by: Zaoxu, Li <lizaoxu@huawei.com>
130 lines
11 KiB
HTML
130 lines
11 KiB
HTML
<a name="EN-US_TOPIC_0065817689"></a><a name="EN-US_TOPIC_0065817689"></a>
|
|
|
|
<h1 class="topictitle1">Obtaining <span id="text863404320312">ECS</span> Management Console Logs</h1>
|
|
<div id="body1499652824860"><div class="section" id="EN-US_TOPIC_0065817689__en-us_topic_0062473752_section6511166111343"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0065817689__en-us_topic_0062473752_p4297649211148">This API is used to obtain <span id="EN-US_TOPIC_0065817689__text355410441830">ECS</span> management console logs.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0065817689__en-us_topic_0062473752_section34513797111412"><h4 class="sectiontitle">URI</h4><p id="EN-US_TOPIC_0065817689__p1241563522314">POST /v2.1/{project_id}/servers/{server_id}/action</p>
|
|
<p id="EN-US_TOPIC_0065817689__en-us_topic_0062473752_p17816132418199">POST /v2/{project_id}/servers/{server_id}/action</p>
|
|
<div class="p" id="EN-US_TOPIC_0065817689__p1780865965910"><a href="#EN-US_TOPIC_0065817689__table10917102617186">Table 1</a> describes the parameters in the URI.
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0065817689__table10917102617186"></a><a name="table10917102617186"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0065817689__table10917102617186" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="EN-US_TOPIC_0065817689__row129171126141812"><th align="left" class="cellrowborder" valign="top" width="21.242124212421242%" id="mcps1.3.2.4.2.2.4.1.1"><p id="EN-US_TOPIC_0065817689__p536114307183">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25.642564256425644%" id="mcps1.3.2.4.2.2.4.1.2"><p id="EN-US_TOPIC_0065817689__p193617305182">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="53.11531153115312%" id="mcps1.3.2.4.2.2.4.1.3"><p id="EN-US_TOPIC_0065817689__p2036111304184">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0065817689__row11917826141815"><td class="cellrowborder" valign="top" width="21.242124212421242%" headers="mcps1.3.2.4.2.2.4.1.1 "><p id="EN-US_TOPIC_0065817689__p136117303181">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25.642564256425644%" headers="mcps1.3.2.4.2.2.4.1.2 "><p id="EN-US_TOPIC_0065817689__p133619306184">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="53.11531153115312%" headers="mcps1.3.2.4.2.2.4.1.3 "><p id="EN-US_TOPIC_0065817689__p1836113091820">Specifies the project ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0065817689__row11917102681816"><td class="cellrowborder" valign="top" width="21.242124212421242%" headers="mcps1.3.2.4.2.2.4.1.1 "><p id="EN-US_TOPIC_0065817689__p113611730121819">server_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25.642564256425644%" headers="mcps1.3.2.4.2.2.4.1.2 "><p id="EN-US_TOPIC_0065817689__p19361830151818">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="53.11531153115312%" headers="mcps1.3.2.4.2.2.4.1.3 "><p id="EN-US_TOPIC_0065817689__p836103071817">Specifies the <span id="EN-US_TOPIC_0065817689__text762681331915">ECS</span> ID.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0065817689__en-us_topic_0062473752_section5849161002917"><h4 class="sectiontitle">Constraints</h4><p id="EN-US_TOPIC_0065817689__en-us_topic_0062473752_p285021011295">This API will be discarded since a version later than microversion 2.5. When using this API, set the microversion to 2.5 or earlier.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0065817689__en-us_topic_0062473752_section65631367111524"><h4 class="sectiontitle">Request</h4><p id="EN-US_TOPIC_0065817689__p45261032438"><a href="#EN-US_TOPIC_0065817689__table168291156125012">Table 2</a> describes the request parameters.</p>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0065817689__table168291156125012"></a><a name="table168291156125012"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0065817689__table168291156125012" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0065817689__row14830135614501"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.3.2.5.1.1"><p id="EN-US_TOPIC_0065817689__p16671008510">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="14.249999999999998%" id="mcps1.3.4.3.2.5.1.2"><p id="EN-US_TOPIC_0065817689__p56710185116">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="14.030000000000001%" id="mcps1.3.4.3.2.5.1.3"><p id="EN-US_TOPIC_0065817689__p14671709519">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="46.72%" id="mcps1.3.4.3.2.5.1.4"><p id="EN-US_TOPIC_0065817689__p16675075112">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0065817689__row14830256125013"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.5.1.1 "><p id="EN-US_TOPIC_0065817689__p1867806512">os-getConsoleOutput</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.249999999999998%" headers="mcps1.3.4.3.2.5.1.2 "><p id="EN-US_TOPIC_0065817689__p8676075115">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.030000000000001%" headers="mcps1.3.4.3.2.5.1.3 "><p id="EN-US_TOPIC_0065817689__p6677010516">Object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="46.72%" headers="mcps1.3.4.3.2.5.1.4 "><p id="EN-US_TOPIC_0065817689__p126716095114">Obtains <span id="EN-US_TOPIC_0065817689__text19676011516">ECS</span> management console logs. For details, see <a href="#EN-US_TOPIC_0065817689__en-us_topic_0062473752_table1919246111545">Table 3</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0065817689__en-us_topic_0062473752_table1919246111545"></a><a name="en-us_topic_0062473752_table1919246111545"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0065817689__en-us_topic_0062473752_table1919246111545" frame="border" border="1" rules="all"><caption><b>Table 3 </b>os-getConsoleOutput parameter description</caption><thead align="left"><tr id="EN-US_TOPIC_0065817689__en-us_topic_0062473752_row13301030111545"><th align="left" class="cellrowborder" valign="top" width="19.371937193719376%" id="mcps1.3.4.4.2.5.1.1"><p id="EN-US_TOPIC_0065817689__en-us_topic_0062473752_p4762453511162">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="17.391739173917394%" id="mcps1.3.4.4.2.5.1.2"><p id="EN-US_TOPIC_0065817689__p21255118343">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="17.55175517551755%" id="mcps1.3.4.4.2.5.1.3"><p id="EN-US_TOPIC_0065817689__en-us_topic_0062473752_p3238214511162">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="45.68456845684568%" id="mcps1.3.4.4.2.5.1.4"><p id="EN-US_TOPIC_0065817689__en-us_topic_0062473752_p5970125811162">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0065817689__en-us_topic_0062473752_row28117068111545"><td class="cellrowborder" valign="top" width="19.371937193719376%" headers="mcps1.3.4.4.2.5.1.1 "><p id="EN-US_TOPIC_0065817689__en-us_topic_0062473752_p5262467711162">length</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.391739173917394%" headers="mcps1.3.4.4.2.5.1.2 "><p id="EN-US_TOPIC_0065817689__p9126131110342">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.55175517551755%" headers="mcps1.3.4.4.2.5.1.3 "><p id="EN-US_TOPIC_0065817689__en-us_topic_0062473752_p3474040511162">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45.68456845684568%" headers="mcps1.3.4.4.2.5.1.4 "><p id="EN-US_TOPIC_0065817689__en-us_topic_0062473752_p3009609811162">Specifies the number of request log rows. The value is greater than or equal to -1, which indicates that the output is not limited.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0065817689__en-us_topic_0062473752_section52662293111617"><h4 class="sectiontitle">Response</h4><p id="EN-US_TOPIC_0065817689__p683016155516"><a href="#EN-US_TOPIC_0065817689__table18130192135217">Table 4</a> describes the response parameter.</p>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0065817689__table18130192135217"></a><a name="table18130192135217"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0065817689__table18130192135217" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Response parameter</caption><thead align="left"><tr id="EN-US_TOPIC_0065817689__row8130321185215"><th align="left" class="cellrowborder" valign="top" width="23.45%" id="mcps1.3.5.3.2.4.1.1"><p id="EN-US_TOPIC_0065817689__p1813092115524">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="21.25%" id="mcps1.3.5.3.2.4.1.2"><p id="EN-US_TOPIC_0065817689__p213018212526">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="55.300000000000004%" id="mcps1.3.5.3.2.4.1.3"><p id="EN-US_TOPIC_0065817689__p16131921125217">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0065817689__row17131122155217"><td class="cellrowborder" valign="top" width="23.45%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0065817689__p2131121125217">output</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.25%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0065817689__p191311321115214">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.300000000000004%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0065817689__p597614552526"><span id="EN-US_TOPIC_0065817689__text459622810574">ECS</span> console log results</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0065817689__en-us_topic_0062473752_section1818910413020"><h4 class="sectiontitle">Example Request</h4><p id="EN-US_TOPIC_0065817689__p8857546151310">Obtain console logs of a specified ECS.</p>
|
|
<pre class="screen" id="EN-US_TOPIC_0065817689__en-us_topic_0062473752_screen481772503019">POST https://{endpoint}/v2/9c53a566cb3443ab910cf0daebca90c4/servers/47e9be4e-a7b9-471f-92d9-ffc83814e07a/action
|
|
POST https://{endpoint}/v2.1/9c53a566cb3443ab910cf0daebca90c4/servers/47e9be4e-a7b9-471f-92d9-ffc83814e07a/action
|
|
|
|
{
|
|
"os-getConsoleOutput" : {
|
|
"length" : "50"
|
|
}
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0065817689__section674081414549"><h4 class="sectiontitle">Example Response</h4><pre class="screen" id="EN-US_TOPIC_0065817689__screen5744191419546">{
|
|
"output": "FAKE CONSOLEOUTPUT\nANOTHER\nLAST LINE"
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0065817689__en-us_topic_0062473752_section29686359111912"><h4 class="sectiontitle">Returned Values</h4><p id="EN-US_TOPIC_0065817689__en-us_topic_0062473752_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_0167809634.html">ECS Console Management</a></div>
|
|
</div>
|
|
</div>
|
|
|