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

134 lines
8.8 KiB
HTML

<a name="css_03_0098"></a><a name="css_03_0098"></a>
<h1 class="topictitle1">Modifying Basic Log Configurations</h1>
<div id="body0000001476029294"><div class="section" id="css_03_0098__section026891813375"><h4 class="sectiontitle">Function</h4><p id="css_03_0098__p226841863719">This API is used to modify basic log configurations.</p>
</div>
<div class="section" id="css_03_0098__section182691018173719"><h4 class="sectiontitle">Debugging</h4><p id="css_03_0098__p15269818133712">You can debug this API in . Automatic authentication is supported.</p>
</div>
<div class="section" id="css_03_0098__section327021820378"><h4 class="sectiontitle">URI</h4><p id="css_03_0098__p182716184374">POST /v1.0/{project_id}/clusters/{cluster_id}/logs/settings</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0098__table5274111893712" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path parameters</caption><thead align="left"><tr id="css_03_0098__row13272141803719"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="css_03_0098__p18275918173713">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_0098__p1927671853715">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_0098__p1927851814378">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_0098__p52791618143718">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0098__row1927371813715"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="css_03_0098__p162801318193714">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="css_03_0098__p112813182377">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="css_03_0098__p152819182372">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="css_03_0098__p1428291843714">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_0098__row527311873715"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="css_03_0098__p3283151812377">cluster_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="css_03_0098__p828451853711">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="css_03_0098__p12861818143719">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="css_03_0098__p19287171813376">ID of the cluster that you want to change the basic log configurations</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="css_03_0098__section42891318173713"><h4 class="sectiontitle">Request Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0098__request_UpdateLogSettingReq" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request body parameter</caption><thead align="left"><tr id="css_03_0098__row129014186374"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.1"><p id="css_03_0098__p3291418143716">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_0098__p192921418103716">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_0098__p1729291816371">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_0098__p329361816377">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0098__row72901018143716"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="css_03_0098__p19294518153710">agency</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.2 "><p id="css_03_0098__p132941818103712">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="css_03_0098__p129511820373">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="css_03_0098__p10295161823712">Agency name. You can create an agency to allow CSS to call other cloud services.</p>
</td>
</tr>
<tr id="css_03_0098__row8290141803717"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="css_03_0098__p4297191819377">logBasePath</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.2 "><p id="css_03_0098__p6298118163712">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="css_03_0098__p112991418183717">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="css_03_0098__p32991518123713">Storage path of backup logs in the OBS bucket</p>
</td>
</tr>
<tr id="css_03_0098__row1529051853711"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="css_03_0098__p19300201816375">logBucket</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.2 "><p id="css_03_0098__p130113186372">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="css_03_0098__p183011618133710">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="css_03_0098__p123027185378">Name of the OBS bucket for storing logs</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="css_03_0098__section14302161813718"><h4 class="sectiontitle">Response Parameters</h4><p id="css_03_0098__p330318189375">None</p>
</div>
<div class="section" id="css_03_0098__section183038183373"><h4 class="sectiontitle">Request Example</h4><pre class="screen" id="css_03_0098__screen830510182379">{
"agency" : "css_obs_agency",
"logBasePath" : "css/log",
"logBucket" : "000-words"
}</pre>
</div>
<div class="section" id="css_03_0098__section530981833717"><h4 class="sectiontitle">Response Example</h4><p id="css_03_0098__p23101318203719">None</p>
</div>
<div class="section" id="css_03_0098__section2311118133711"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0098__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="css_03_0098__row1313111814376"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.8.2.1.3.1.1"><p id="css_03_0098__p1031451853713">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_0098__p3315818103720">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0098__row531311814378"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="css_03_0098__p17315618173718">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="css_03_0098__p3316181803718">The request is processed successfully.</p>
</td>
</tr>
<tr id="css_03_0098__row3313131833715"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="css_03_0098__p33175185373">400</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="css_03_0098__p83184182373">Invalid request.</p>
<p id="css_03_0098__p431841893714">Modify the request instead of retrying.</p>
</td>
</tr>
<tr id="css_03_0098__row18313518193719"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="css_03_0098__p53194185376">409</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="css_03_0098__p1932012180376">The request cannot be processed due to a conflict.</p>
<p id="css_03_0098__p7320181819376">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_0098__row16313418113718"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="css_03_0098__p5321718163716">412</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="css_03_0098__p3321101817371">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>