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

133 lines
8.6 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__section18891340105510"><h4 class="sectiontitle">Function</h4><p id="css_03_0098__p1891164012556">This API is used to modify basic log configurations.</p>
</div>
<p id="css_03_0098__p17892104011559"></p>
<div class="section" id="css_03_0098__section1089284015514"><h4 class="sectiontitle">URI</h4><p id="css_03_0098__p1589294019551">POST /v1.0/{project_id}/clusters/{cluster_id}/logs/settings</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0098__table1689464025517" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="css_03_0098__row13893540125510"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="css_03_0098__p78948403550">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__p1894184010552">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__p1989518405558">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__p78951340155514">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0098__row389324065512"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="css_03_0098__p1289604025518">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__p18977401556">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="css_03_0098__p148979403555">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="css_03_0098__p1898194011551">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__row189344075519"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="css_03_0098__p178996406556">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__p18899440105518">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="css_03_0098__p15900640175518">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="css_03_0098__p1900184075516">ID of the cluster whose basic log configurations you want to modify.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="css_03_0098__section189011440105515"><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 parameters</caption><thead align="left"><tr id="css_03_0098__row7902144013552"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.1"><p id="css_03_0098__p490484018559">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__p18904140105513">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__p11905104075514">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__p1890504095510">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0098__row1790214407555"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="css_03_0098__p590612408553">agency</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.2 "><p id="css_03_0098__p090634014558">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="css_03_0098__p4907940175514">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="css_03_0098__p79077401556">Agency name. You can create an agency to allow CSS to call other cloud services.</p>
</td>
</tr>
<tr id="css_03_0098__row169026406551"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="css_03_0098__p6908104075510">logBasePath</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.2 "><p id="css_03_0098__p19908194014555">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="css_03_0098__p190954075516">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="css_03_0098__p1890984019554">Storage path of backed up logs in the OBS bucket.</p>
</td>
</tr>
<tr id="css_03_0098__row3902114075511"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="css_03_0098__p12909540105512">logBucket</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.2 "><p id="css_03_0098__p191024095516">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="css_03_0098__p191064015513">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="css_03_0098__p79111440175516">Name of the OBS bucket for storing logs.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="css_03_0098__section491120401559"><h4 class="sectiontitle">Response Parameters</h4><p id="css_03_0098__p891144013556">None</p>
</div>
<div class="section" id="css_03_0098__section169114405554"><h4 class="sectiontitle">Example Requests</h4><pre class="screen" id="css_03_0098__screen18912154005519">{
"agency" : "css_obs_agency",
"logBasePath" : "css/log",
"logBucket" : "000-words"
}</pre>
</div>
<div class="section" id="css_03_0098__section129175404554"><h4 class="sectiontitle">Example Responses</h4><p id="css_03_0098__p20918174012557">None</p>
</div>
<div class="section" id="css_03_0098__section12918134065514"><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__row19191340105519"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.8.2.1.3.1.1"><p id="css_03_0098__p19211640185518">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__p0921144085518">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0098__row1892019407556"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="css_03_0098__p17922124065510">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="css_03_0098__p159221040135512">Request succeeded.</p>
</td>
</tr>
<tr id="css_03_0098__row12920140135514"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="css_03_0098__p3923440105514">400</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="css_03_0098__p17923340135518">Invalid request.</p>
<p id="css_03_0098__p79231240195512">Modify the request before retry.</p>
</td>
</tr>
<tr id="css_03_0098__row1492044085516"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="css_03_0098__p792434011559">409</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="css_03_0098__p1592416408550">The request could not be completed due to a conflict with the current state of the resource.</p>
<p id="css_03_0098__p2924154013557">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_0098__row19201740205519"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="css_03_0098__p10925540155520">412</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="css_03_0098__p15925194013555">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>