forked from docs/doc-exports
Reviewed-by: Bobkova, Natalia <natalia.bobkova@t-systems.com> Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: liusiying77 <liusiying@huawei.com> Co-committed-by: liusiying77 <liusiying@huawei.com>
396 lines
28 KiB
HTML
396 lines
28 KiB
HTML
<a name="UpdateLogStream"></a><a name="UpdateLogStream"></a>
|
|
|
|
<h1 class="topictitle1">Modifying a Log Stream</h1>
|
|
<div id="body1708331107508"><div class="section" id="UpdateLogStream__section833820190331"><h4 class="sectiontitle">Function</h4><p id="UpdateLogStream__p933915190337">This API is used to modify the log retention duration of a specified log stream.</p>
|
|
</div>
|
|
<div class="section" id="UpdateLogStream__section1433911914331"><h4 class="sectiontitle">URI</h4><p id="UpdateLogStream__p11340419143319">PUT /v2/{project_id}/groups/{log_group_id}/streams-ttl/{log_stream_id}</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdateLogStream__table43414193339" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="UpdateLogStream__row93401019183312"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="UpdateLogStream__p1234121963319">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="UpdateLogStream__p1341719193314">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="UpdateLogStream__p173410196338">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="UpdateLogStream__p13342519123315">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="UpdateLogStream__row16340141911337"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="UpdateLogStream__p16342151953312">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="UpdateLogStream__p83429198337">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="UpdateLogStream__p16342141911331">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="UpdateLogStream__p334241910330">Project ID. For details about how to obtain a project ID, see <a href="lts_api_0006.html">Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID</a>.</p>
|
|
<p id="UpdateLogStream__p1634321923316">Minimum length: 36 characters.</p>
|
|
<p id="UpdateLogStream__p734311199335">Maximum length: 36 characters.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UpdateLogStream__row1034011196330"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="UpdateLogStream__p153439199335">log_group_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="UpdateLogStream__p0343219103317">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="UpdateLogStream__p63431319193311">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="UpdateLogStream__p7343171918335">Log group ID. For details about how to obtain a log group ID, see <a href="lts_api_0006.html">Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID</a>.</p>
|
|
<p id="UpdateLogStream__p14344101933317">Minimum length: 36 characters.</p>
|
|
<p id="UpdateLogStream__p13344141903319">Maximum length: 36 characters.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UpdateLogStream__row1734010193333"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="UpdateLogStream__p1734461943316">log_stream_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="UpdateLogStream__p0344121943310">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="UpdateLogStream__p163441719133313">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="UpdateLogStream__p334421917331">Log stream ID. For details about how to obtain a log stream ID, see <a href="lts_api_0006.html">Obtaining the Project ID, Account ID, Log Group ID, and Log Stream ID</a>.</p>
|
|
<p id="UpdateLogStream__p0344171911334">Minimum length: 36 characters.</p>
|
|
<p id="UpdateLogStream__p113451719163320">Maximum length: 36 characters.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="UpdateLogStream__section1834521953316"><h4 class="sectiontitle">Request Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdateLogStream__HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="UpdateLogStream__row11345141933310"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="UpdateLogStream__p134519199339">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="UpdateLogStream__p9346819103313">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="UpdateLogStream__p17346219193318">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="UpdateLogStream__p14346141915333">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="UpdateLogStream__row83451019153317"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="UpdateLogStream__p1134641915339">X-Auth-Token</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="UpdateLogStream__p8346111918336">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="UpdateLogStream__p134771933311">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="UpdateLogStream__p17347131963311">User token obtained from IAM. For details about how to obtain a user token, see <a href="lts_api_0004.html">Obtaining a User Token</a>. Minimum length: 1000 characters; Maximum length: 2000 characters.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UpdateLogStream__row8345191916333"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="UpdateLogStream__p1834711917336">Content-Type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="UpdateLogStream__p1034718191331">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="UpdateLogStream__p23471019153319">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="UpdateLogStream__p734810196331">Set this parameter to <strong id="UpdateLogStream__b15348111918339">application/json;charset=UTF-8</strong>.</p>
|
|
<p id="UpdateLogStream__p53487190339">Minimum length: 30 characters.</p>
|
|
<p id="UpdateLogStream__p16348111916332">Maximum length: 30 characters.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdateLogStream__request_UpdateLogStreamParams" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request body parameters</caption><thead align="left"><tr id="UpdateLogStream__row19348111973314"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="UpdateLogStream__p634841917331">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="UpdateLogStream__p2349919173319">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="UpdateLogStream__p234951914336">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="UpdateLogStream__p9349121933311">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="UpdateLogStream__row53485191339"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="UpdateLogStream__p534901953313">ttl_in_days</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="UpdateLogStream__p1434961910330">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="UpdateLogStream__p334913194337">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="UpdateLogStream__p434917195334">Log retention duration (days).</p>
|
|
<p id="UpdateLogStream__p43501319113317">Minimum: <strong id="UpdateLogStream__b035071943312">1</strong></p>
|
|
<p id="UpdateLogStream__p23501319173314">Maximum: <strong id="UpdateLogStream__b1535018191335">365</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UpdateLogStream__row143481119173314"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="UpdateLogStream__p12350319133318">tags</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="UpdateLogStream__p835041963319">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="UpdateLogStream__p19350019113315">Array of <a href="#UpdateLogStream__request_tagsBody">tagsBody</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="UpdateLogStream__p183501919133318">Tag field information.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="UpdateLogStream__request_tagsBody"></a><a name="request_tagsBody"></a><table cellpadding="4" cellspacing="0" summary="" id="UpdateLogStream__request_tagsBody" frame="border" border="1" rules="all"><caption><b>Table 4 </b>tagsBody</caption><thead align="left"><tr id="UpdateLogStream__row14351101910334"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.1"><p id="UpdateLogStream__p7351319143312">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.2"><p id="UpdateLogStream__p19351419153312">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.3"><p id="UpdateLogStream__p135151915332">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.4.2.5.1.4"><p id="UpdateLogStream__p235111920339">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="UpdateLogStream__row8351171911338"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="UpdateLogStream__p1435281916334">key</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="UpdateLogStream__p1535211196333">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="UpdateLogStream__p4352019173311">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="UpdateLogStream__p9352151916331">Tag key. Use only UTF-8 letters, digits, spaces, and the following characters: .:=+-@. Do not start with an underscore (). Max 128 characters are allowed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UpdateLogStream__row935113198332"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="UpdateLogStream__p235261943314">value</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="UpdateLogStream__p13521191335">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="UpdateLogStream__p63531119193320">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="UpdateLogStream__p15353131920336">Tag value. Use only UTF-8 letters, digits, spaces, and the following characters: _.:/=+-@. Max 255 characters are allowed.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="UpdateLogStream__section12353171910339"><h4 class="sectiontitle">Response Parameters</h4><p id="UpdateLogStream__p19353171918330"><strong id="UpdateLogStream__b73531219133312">Status code: 200</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdateLogStream__response_LogStreamNoTag" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Response body parameters</caption><thead align="left"><tr id="UpdateLogStream__row93531819183319"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.3.2.4.1.1"><p id="UpdateLogStream__p18354219133311">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.3.2.4.1.2"><p id="UpdateLogStream__p6354919133317">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.3.2.4.1.3"><p id="UpdateLogStream__p153541219113312">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="UpdateLogStream__row1535331913319"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="UpdateLogStream__p93541919113319">creation_time</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="UpdateLogStream__p16355161918334">Long</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="UpdateLogStream__p15355719123319">Time when a log stream is created.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UpdateLogStream__row13353319103319"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="UpdateLogStream__p16355191914332">log_topic_name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="UpdateLogStream__p435501918336">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="UpdateLogStream__p43551198337">Name of a log stream.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UpdateLogStream__row3353111933318"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="UpdateLogStream__p133551819143312">log_topic_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="UpdateLogStream__p935561973312">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="UpdateLogStream__p183561919163310">Log stream ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UpdateLogStream__row1435461933313"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="UpdateLogStream__p93564199335">ttl_in_days</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="UpdateLogStream__p16356519163315">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="UpdateLogStream__p10356919193314">Log retention duration (days).</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="UpdateLogStream__p935651913314"><strong id="UpdateLogStream__b435671903318">Status code: 400</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdateLogStream__response_LogGroupErrorResultInfo400" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Response body parameters</caption><thead align="left"><tr id="UpdateLogStream__row13356141917332"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.5.2.4.1.1"><p id="UpdateLogStream__p83576198339">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.5.2.4.1.2"><p id="UpdateLogStream__p935711963310">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.5.2.4.1.3"><p id="UpdateLogStream__p9357219193313">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="UpdateLogStream__row935661993317"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.1 "><p id="UpdateLogStream__p1835713194338">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.2 "><p id="UpdateLogStream__p1335714196335">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.5.2.4.1.3 "><p id="UpdateLogStream__p1235751933310">Error code.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UpdateLogStream__row23561619123314"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.1 "><p id="UpdateLogStream__p153581819103320">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.2 "><p id="UpdateLogStream__p135815199339">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.5.2.4.1.3 "><p id="UpdateLogStream__p16358319103318">Error message.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="UpdateLogStream__p13358131917334"><strong id="UpdateLogStream__b1358161973316">Status code: 401</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdateLogStream__table13581419183312" frame="border" border="1" rules="all"><caption><b>Table 7 </b>Response body parameters</caption><thead align="left"><tr id="UpdateLogStream__row1535831915332"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.7.2.4.1.1"><p id="UpdateLogStream__p835921933315">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.7.2.4.1.2"><p id="UpdateLogStream__p53595196335">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.7.2.4.1.3"><p id="UpdateLogStream__p1935915191336">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="UpdateLogStream__row133588196333"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="UpdateLogStream__p035911199332">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.2 "><p id="UpdateLogStream__p3359121953319">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.7.2.4.1.3 "><p id="UpdateLogStream__p63591119143313">Error code.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UpdateLogStream__row1535811918336"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="UpdateLogStream__p11360131919332">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.2 "><p id="UpdateLogStream__p93600199337">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.7.2.4.1.3 "><p id="UpdateLogStream__p143601919153310">Error message.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="UpdateLogStream__p136021912332"><strong id="UpdateLogStream__b12360191983312">Status code: 403</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdateLogStream__table2036021918339" frame="border" border="1" rules="all"><caption><b>Table 8 </b>Response body parameters</caption><thead align="left"><tr id="UpdateLogStream__row83604199335"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.9.2.4.1.1"><p id="UpdateLogStream__p236141920339">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.9.2.4.1.2"><p id="UpdateLogStream__p836115196337">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.9.2.4.1.3"><p id="UpdateLogStream__p636171919338">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="UpdateLogStream__row1536016194333"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.1 "><p id="UpdateLogStream__p19361111920339">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.2 "><p id="UpdateLogStream__p163613194338">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.9.2.4.1.3 "><p id="UpdateLogStream__p113617193337">Error code.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UpdateLogStream__row1936041903318"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.1 "><p id="UpdateLogStream__p336214199332">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.2 "><p id="UpdateLogStream__p1536213191331">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.9.2.4.1.3 "><p id="UpdateLogStream__p336215196331">Error message.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="UpdateLogStream__p73621519173312"><strong id="UpdateLogStream__b1836212194333">Status code: 500</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdateLogStream__table536231912337" frame="border" border="1" rules="all"><caption><b>Table 9 </b>Response body parameters</caption><thead align="left"><tr id="UpdateLogStream__row1736321912339"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.11.2.4.1.1"><p id="UpdateLogStream__p236361910331">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.11.2.4.1.2"><p id="UpdateLogStream__p236313191335">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.11.2.4.1.3"><p id="UpdateLogStream__p12363111913317">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="UpdateLogStream__row1636318191333"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.11.2.4.1.1 "><p id="UpdateLogStream__p1436371953311">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.11.2.4.1.2 "><p id="UpdateLogStream__p1536451916331">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.11.2.4.1.3 "><p id="UpdateLogStream__p1736421910331">Error code.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UpdateLogStream__row536312196331"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.11.2.4.1.1 "><p id="UpdateLogStream__p15364101953313">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.11.2.4.1.2 "><p id="UpdateLogStream__p3364719113310">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.11.2.4.1.3 "><p id="UpdateLogStream__p3364201913334">Error message.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="UpdateLogStream__section6365131914338"><h4 class="sectiontitle">Example Requests</h4><p id="UpdateLogStream__p53651519163311">Modify a log stream.</p>
|
|
<pre class="screen" id="UpdateLogStream__screen1365619153314">PUT https://{endpoint}/v2/{project_id}/groups/{log_group_id}/streams-ttl/{log_stream_id}
|
|
|
|
{
|
|
"ttl_in_days" : 8
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="UpdateLogStream__section19366819193314"><h4 class="sectiontitle">Example Responses</h4><p id="UpdateLogStream__p1836691973311"><strong id="UpdateLogStream__b5366121916331">Status code: 200</strong></p>
|
|
<p id="UpdateLogStream__p11366111914337">The request has succeeded and the log group has been modified.</p>
|
|
<pre class="screen" id="UpdateLogStream__screen173671019173314">{
|
|
"creation_time" : 1629947408497,
|
|
"log_topic_name" : "string",
|
|
"log_topic_id" : "string",
|
|
"ttl_in_days" : 8
|
|
}</pre>
|
|
<p id="UpdateLogStream__p13367131973317"><strong id="UpdateLogStream__b23677190334">Status code: 400</strong></p>
|
|
<p id="UpdateLogStream__p6367151933311">BadRequest. Invalid request. Modify the request based on the description in <strong id="UpdateLogStream__b123675199332">error_msg</strong> before a retry.</p>
|
|
<pre class="screen" id="UpdateLogStream__screen936801916331">{
|
|
"error_code" : "LTS.0009",
|
|
"error_msg" : "Failed to validate the request body"
|
|
}</pre>
|
|
<p id="UpdateLogStream__p14368519143316"><strong id="UpdateLogStream__b1536812196338">Status code: 401</strong></p>
|
|
<p id="UpdateLogStream__p19368131916338">AuthFailed. Authentication failed. Check the token and try again.</p>
|
|
<pre class="screen" id="UpdateLogStream__screen7368819113317">{
|
|
"error_code" : "LTS.0414",
|
|
"error_msg" : "Invalid token"
|
|
}</pre>
|
|
<p id="UpdateLogStream__p1236911963318"><strong id="UpdateLogStream__b1136981943316">Status code: 403</strong></p>
|
|
<p id="UpdateLogStream__p1369191973314">Forbidden. The request is rejected. The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications.</p>
|
|
<pre class="screen" id="UpdateLogStream__screen123691819183319">{
|
|
"error_code" : "LTS.0001",
|
|
"error_msg" : "Invalid projectId"
|
|
}</pre>
|
|
<p id="UpdateLogStream__p6369151933311"><strong id="UpdateLogStream__b7369101993315">Status code: 500</strong></p>
|
|
<p id="UpdateLogStream__p12370151963315">InternalServerError. The server has received the request but encountered an internal error.</p>
|
|
<pre class="screen" id="UpdateLogStream__screen18370121912337">{
|
|
"error_code" : "LTS.0204",
|
|
"error_msg" : "Failed to update log stream"
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="UpdateLogStream__section5370171933311"><h4 class="sectiontitle">Status Codes</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdateLogStream__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="UpdateLogStream__row53710198338"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="UpdateLogStream__p183711219163319">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p id="UpdateLogStream__p1937117194335">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="UpdateLogStream__row637171993313"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="UpdateLogStream__p3371519133318">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="UpdateLogStream__p14371171963311">The request has succeeded and the log group has been modified.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UpdateLogStream__row1237141963313"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="UpdateLogStream__p1837131913315">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="UpdateLogStream__p5372131915332">BadRequest. Invalid request. Modify the request based on the description in <strong id="UpdateLogStream__b23721419183314">error_msg</strong> before a retry.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UpdateLogStream__row937131903317"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="UpdateLogStream__p137231973318">401</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="UpdateLogStream__p93725191338">AuthFailed. Authentication failed. Check the token and try again.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UpdateLogStream__row43714193330"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="UpdateLogStream__p18372101933315">403</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="UpdateLogStream__p183725191339">Forbidden. The request is rejected. The server has received the request and understood it, but refuses to respond to it. The client should not repeat the request without modifications.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UpdateLogStream__row537111983315"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="UpdateLogStream__p0372119183317">500</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="UpdateLogStream__p537351993318">InternalServerError. The server has received the request but encountered an internal error.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="UpdateLogStream__row1937151993316"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="UpdateLogStream__p269181993312">503</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="UpdateLogStream__p13691161983310">ServiceUnavailable. The requested service is unavailable.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="UpdateLogStream__section16691141910333"><h4 class="sectiontitle">Error Codes</h4><p id="UpdateLogStream__p969121923312">See <a href="ErrorCode.html">Error Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="lts_api_0015.html">Log Stream Management</a></div>
|
|
</div>
|
|
</div>
|
|
|