doc-exports/docs/css/api-ref/css_03_0099.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

112 lines
7.2 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__section531374010558"><h4 class="sectiontitle">Function</h4><p id="css_03_0099__p1331324015555">This API is used to enable the automatic log backup policy.</p>
</div>
<div class="section" id="css_03_0099__section18314194019557"><h4 class="sectiontitle">URI</h4><p id="css_03_0099__p18314134013557">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__table10317114012554" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="css_03_0099__row1831517408551"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="css_03_0099__p2031714005515">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="css_03_0099__p0317194045519">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="css_03_0099__p1318194045511">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="css_03_0099__p11318154035515">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0099__row12316184017559"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="css_03_0099__p1231984095520">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="css_03_0099__p131910407556">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="css_03_0099__p16319154011555">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="css_03_0099__p13320154065514">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__row23161340175520"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="css_03_0099__p8321134020556">cluster_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="css_03_0099__p11321184075515">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="css_03_0099__p1832113409556">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="css_03_0099__p133221940125512">ID of the cluster whose log backup policy you want to enable.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="css_03_0099__section132244018557"><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 parameters</caption><thead align="left"><tr id="css_03_0099__row12323940165519"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="css_03_0099__p5324174095514">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="css_03_0099__p1132494013551">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="css_03_0099__p13324134017553">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="css_03_0099__p1432517408551">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0099__row9323134055519"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="css_03_0099__p193251340115517">period</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="css_03_0099__p17325164012559">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="css_03_0099__p19326134005513">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="css_03_0099__p632684010554">Backup start time. Format: GMT</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="css_03_0099__section632684055512"><h4 class="sectiontitle">Response Parameters</h4><p id="css_03_0099__p732614055518">None</p>
</div>
<div class="section" id="css_03_0099__section1032764075518"><h4 class="sectiontitle">Example Requests</h4><pre class="screen" id="css_03_0099__screen1832744095513">{
"period" : "16:00 GMT+02:00"
}</pre>
</div>
<div class="section" id="css_03_0099__section113281640205512"><h4 class="sectiontitle">Example Responses</h4><p id="css_03_0099__p132814408550">None</p>
</div>
<div class="section" id="css_03_0099__section53281840175512"><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__row4329340135518"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="css_03_0099__p733064025510">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p id="css_03_0099__p1133064065515">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0099__row1632919406557"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="css_03_0099__p13331104085513">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="css_03_0099__p2331640135514">Request succeeded.</p>
</td>
</tr>
<tr id="css_03_0099__row5329144085510"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="css_03_0099__p5331240165515">400</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="css_03_0099__p5332174035515">Invalid request.</p>
<p id="css_03_0099__p63322040135510">Modify the request before retry.</p>
</td>
</tr>
<tr id="css_03_0099__row932918401550"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="css_03_0099__p1433284005517">409</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="css_03_0099__p17332540165515">The request could not be completed due to a conflict with the current state of the resource.</p>
<p id="css_03_0099__p2033294075515">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_0099__row4329440125510"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="css_03_0099__p133331401553">412</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="css_03_0099__p9333540175517">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>