doc-exports/docs/css/api-ref/css_03_0099.html
Zheng, Xiu 99a2d77599 css api 23.5.1 20240520
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>
2024-06-07 17:47:08 +00:00

114 lines
7.5 KiB
HTML

<a name="css_03_0099"></a><a name="css_03_0099"></a>
<h1 class="topictitle1">Enabling the Automatic Log Backup Policy</h1>
<div id="body0000001526869249"><div class="section" id="css_03_0099__section138731812374"><h4 class="sectiontitle">Function</h4><p id="css_03_0099__p19389191823711">This API is used to enable the automatic log backup policy.</p>
</div>
<div class="section" id="css_03_0099__section63891918123715"><h4 class="sectiontitle">Debugging</h4><p id="css_03_0099__p20390111818373">You can debug this API in . Automatic authentication is supported.</p>
</div>
<div class="section" id="css_03_0099__section18391918153714"><h4 class="sectiontitle">URI</h4><p id="css_03_0099__p1739241833713">POST /v1.0/{project_id}/clusters/{cluster_id}/logs/policy/update</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0099__table1439451817373" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path parameters</caption><thead align="left"><tr id="css_03_0099__row1839331873713"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="css_03_0099__p1739581810378">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_0099__p13395131820375">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_0099__p33961318123711">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_0099__p8396181810376">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0099__row83933181377"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="css_03_0099__p839761803712">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="css_03_0099__p839815184371">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="css_03_0099__p103985186372">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="css_03_0099__p18399111883720">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_0099__row113931118193714"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="css_03_0099__p9400018103712">cluster_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="css_03_0099__p2040210186373">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="css_03_0099__p740381863713">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="css_03_0099__p1140321811378">ID of the cluster that you want to enable the log backup function</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="css_03_0099__section34041189370"><h4 class="sectiontitle">Request Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0099__request_StartLogAutoBackupPolicyReq" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request body parameter</caption><thead align="left"><tr id="css_03_0099__row640541814377"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.1"><p id="css_03_0099__p18407418173717">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.2"><p id="css_03_0099__p040751873712">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.3"><p id="css_03_0099__p1840812187377">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.2.2.5.1.4"><p id="css_03_0099__p10408181833719">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0099__row84052180378"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="css_03_0099__p16409618203718">period</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.2 "><p id="css_03_0099__p12410118173714">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="css_03_0099__p10410518203719">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="css_03_0099__p15411181873710">Start time of a backup job. Format: GMT</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="css_03_0099__section13411171819376"><h4 class="sectiontitle">Response Parameters</h4><p id="css_03_0099__p64126186373">None</p>
</div>
<div class="section" id="css_03_0099__section174131118123713"><h4 class="sectiontitle">Request Example</h4><pre class="screen" id="css_03_0099__screen041421813714">{
"period" : "00:00 GMT+08:00"
}</pre>
</div>
<div class="section" id="css_03_0099__section15415131823719"><h4 class="sectiontitle">Response Example</h4><p id="css_03_0099__p941615187372">None</p>
</div>
<div class="section" id="css_03_0099__section164171918153715"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0099__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="css_03_0099__row341821853716"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.8.2.1.3.1.1"><p id="css_03_0099__p16420101815370">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_0099__p1542091813375">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0099__row341811186371"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="css_03_0099__p34211618163717">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="css_03_0099__p9422181883711">The request is processed successfully.</p>
</td>
</tr>
<tr id="css_03_0099__row1419918133712"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="css_03_0099__p124221118123711">400</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="css_03_0099__p2423151883712">Invalid request.</p>
<p id="css_03_0099__p2423618103715">Modify the request instead of retrying.</p>
</td>
</tr>
<tr id="css_03_0099__row1741951803716"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="css_03_0099__p34241518143717">409</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="css_03_0099__p134241918143719">The request cannot be processed due to a conflict.</p>
<p id="css_03_0099__p84252181374">This status code indicates that the resource that the client attempts to create already exists, or the request fails to be processed because of the update of the conflict request.</p>
</td>
</tr>
<tr id="css_03_0099__row3419201853719"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="css_03_0099__p242517188375">412</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="css_03_0099__p842611815370">The server does not meet one of the requirements that the requester puts on 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>