doc-exports/docs/css/api-ref/css_03_0101.html
Zheng, Xiu bf0cbd66f9 CSS API 22.4.1 Version
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>
2023-04-12 00:11:02 +00:00

89 lines
5.7 KiB
HTML

<a name="css_03_0101"></a><a name="css_03_0101"></a>
<h1 class="topictitle1">Backing Up Logs</h1>
<div id="body0000001526549397"><div class="section" id="css_03_0101__section15488140135511"><h4 class="sectiontitle">Function</h4><p id="css_03_0101__p9489154017555">This API is used to back up logs.</p>
</div>
<p id="css_03_0101__p124891540165520"></p>
<div class="section" id="css_03_0101__section18490174019558"><h4 class="sectiontitle">URI</h4><p id="css_03_0101__p849019409553">POST /v1.0/{project_id}/clusters/{cluster_id}/logs/collect</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0101__table4491740195517" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="css_03_0101__row349118402556"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="css_03_0101__p649212402553">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="css_03_0101__p164921408557">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="css_03_0101__p0493104017554">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="css_03_0101__p04931940115511">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0101__row174911406553"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="css_03_0101__p1749474012559">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="css_03_0101__p16494144075510">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="css_03_0101__p17494124015513">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="css_03_0101__p9495114015558">Project ID. For details, see <a href="css_03_0071.html">Obtaining a Project ID and Name</a>.</p>
</td>
</tr>
<tr id="css_03_0101__row449144016559"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="css_03_0101__p1849654015555">cluster_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="css_03_0101__p9496440205515">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="css_03_0101__p1449724012555">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="css_03_0101__p14497194020554">ID of the cluster whose logs you want to back up.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="css_03_0101__section20498164014550"><h4 class="sectiontitle">Request Parameters</h4><p id="css_03_0101__p1049818401552">None</p>
</div>
<div class="section" id="css_03_0101__section6498540165519"><h4 class="sectiontitle">Response Parameters</h4><p id="css_03_0101__p749816403552">None</p>
</div>
<div class="section" id="css_03_0101__section18499114055519"><h4 class="sectiontitle">Example Requests</h4><p id="css_03_0101__p1349934010551">None</p>
</div>
<div class="section" id="css_03_0101__section10499640145519"><h4 class="sectiontitle">Example Responses</h4><p id="css_03_0101__p10500194015552">None</p>
</div>
<div class="section" id="css_03_0101__section95003407556"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0101__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="css_03_0101__row2501040195512"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.8.2.1.3.1.1"><p id="css_03_0101__p1750214010550">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.8.2.1.3.1.2"><p id="css_03_0101__p950284045510">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0101__row1250164018557"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="css_03_0101__p19502204075513">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="css_03_0101__p1450334010550">Request succeeded.</p>
</td>
</tr>
<tr id="css_03_0101__row55011140185514"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="css_03_0101__p5504184035519">400</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="css_03_0101__p45041404552">Invalid request.</p>
<p id="css_03_0101__p5505240185514">Modify the request before retry.</p>
</td>
</tr>
<tr id="css_03_0101__row12501154045518"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="css_03_0101__p10505144045518">409</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="css_03_0101__p45058403556">The request could not be completed due to a conflict with the current state of the resource.</p>
<p id="css_03_0101__p1450614045510">The resource that the client attempts to create already exists, or the update request fails to be processed because of a conflict.</p>
</td>
</tr>
<tr id="css_03_0101__row13501154014554"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="css_03_0101__p7506134025511">412</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="css_03_0101__p1150617404556">The server did not meet one of the preconditions contained in the request.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="css_03_0093.html">Log Management</a></div>
</div>
</div>