Files
doc-exports/docs/lts/api-ref/UpdateLogGroup.html
liusiying77 fdbbe7547a LTS API 20240130 version.
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>
2025-03-12 12:37:01 +00:00

384 lines
27 KiB
HTML

<a name="UpdateLogGroup"></a><a name="UpdateLogGroup"></a>
<h1 class="topictitle1">Modifying a Log Group</h1>
<div id="body1708331107508"><div class="section" id="UpdateLogGroup__section47711655133120"><h4 class="sectiontitle">Function</h4><p id="UpdateLogGroup__p1777145512311">This API is used to modify the log retention duration of a specified log group.</p>
</div>
<div class="section" id="UpdateLogGroup__section1877114555312"><h4 class="sectiontitle">URI</h4><p id="UpdateLogGroup__p177195523118">POST /v2/{project_id}/groups/{log_group_id}</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdateLogGroup__table1377165511312" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="UpdateLogGroup__row177711255173116"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="UpdateLogGroup__p137714558313">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="UpdateLogGroup__p19771125511315">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="UpdateLogGroup__p8771155563119">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="UpdateLogGroup__p15771135553113">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="UpdateLogGroup__row16771155503111"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="UpdateLogGroup__p57712055153112">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="UpdateLogGroup__p117711455183116">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="UpdateLogGroup__p1977114559317">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="UpdateLogGroup__p377215519312">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="UpdateLogGroup__p14772175583114">Minimum: <strong id="UpdateLogGroup__b177721155123120">36</strong></p>
<p id="UpdateLogGroup__p10772125515318">Maximum: <strong id="UpdateLogGroup__b157721255153119">36</strong></p>
</td>
</tr>
<tr id="UpdateLogGroup__row15771185519313"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="UpdateLogGroup__p67726557317">log_group_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="UpdateLogGroup__p0772195533112">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="UpdateLogGroup__p87723557313">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="UpdateLogGroup__p977225583120">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="UpdateLogGroup__p877295511318">Minimum: <strong id="UpdateLogGroup__b10772205533112">36</strong></p>
<p id="UpdateLogGroup__p117721155123120">Maximum: <strong id="UpdateLogGroup__b87721755163111">36</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="UpdateLogGroup__section477295510312"><h4 class="sectiontitle">Request Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdateLogGroup__HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="UpdateLogGroup__row1477225510319"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="UpdateLogGroup__p1477214559315">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="UpdateLogGroup__p147721255183120">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="UpdateLogGroup__p1177235513311">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="UpdateLogGroup__p1977215517313">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="UpdateLogGroup__row57721255123113"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="UpdateLogGroup__p11773115523120">X-Auth-Token</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="UpdateLogGroup__p1377325563118">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="UpdateLogGroup__p5773125511314">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="UpdateLogGroup__p13773155513317">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>.</p>
<p id="UpdateLogGroup__p20773955123112">Minimum: <strong id="UpdateLogGroup__b87731055133115">1000</strong></p>
<p id="UpdateLogGroup__p6773125514311">Maximum: <strong id="UpdateLogGroup__b9773195513316">2000</strong></p>
</td>
</tr>
<tr id="UpdateLogGroup__row47722556315"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="UpdateLogGroup__p127732552314">Content-Type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="UpdateLogGroup__p16773655143115">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="UpdateLogGroup__p117734552317">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="UpdateLogGroup__p14773115511317">Set this parameter to application/json;charset=UTF-8.</p>
<p id="UpdateLogGroup__p67731155123111">Minimum: <strong id="UpdateLogGroup__b1773155518310">30</strong></p>
<p id="UpdateLogGroup__p137731255133111">Maximum: <strong id="UpdateLogGroup__b677395510311">30</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdateLogGroup__request_UpdateLogGroupParams" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request body parameters</caption><thead align="left"><tr id="UpdateLogGroup__row18773145533119"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="UpdateLogGroup__p2077355543116">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="UpdateLogGroup__p2077325503112">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="UpdateLogGroup__p187732055103119">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="UpdateLogGroup__p07731255113119">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="UpdateLogGroup__row1577375553120"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="UpdateLogGroup__p1877395516311">ttl_in_days</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="UpdateLogGroup__p7773155173118">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="UpdateLogGroup__p18774055163117">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="UpdateLogGroup__p67741955193120">Log retention duration (days).</p>
<p id="UpdateLogGroup__p87747554315">Minimum value: <strong id="UpdateLogGroup__b2774165514312">1</strong></p>
<p id="UpdateLogGroup__p277417552310">Maximum value: <strong id="UpdateLogGroup__b2077425523116">365</strong></p>
</td>
</tr>
<tr id="UpdateLogGroup__row1277310556313"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="UpdateLogGroup__p11774165511315">tags</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="UpdateLogGroup__p1577475517316">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="UpdateLogGroup__p10774175593116">Array of <a href="#UpdateLogGroup__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="UpdateLogGroup__p8774175513316">Tag field information.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="UpdateLogGroup__request_tagsBody"></a><a name="request_tagsBody"></a><table cellpadding="4" cellspacing="0" summary="" id="UpdateLogGroup__request_tagsBody" frame="border" border="1" rules="all"><caption><b>Table 4 </b>tagsBody</caption><thead align="left"><tr id="UpdateLogGroup__row8774455153111"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.1"><p id="UpdateLogGroup__p97741555193115">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.2"><p id="UpdateLogGroup__p1077425510318">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.3"><p id="UpdateLogGroup__p137746555312">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.4.2.5.1.4"><p id="UpdateLogGroup__p14775115519311">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="UpdateLogGroup__row3774155183111"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="UpdateLogGroup__p147759555316">key</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="UpdateLogGroup__p2775185523117">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="UpdateLogGroup__p2077555515311">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="UpdateLogGroup__p2775165517312">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="UpdateLogGroup__row1177405517318"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="UpdateLogGroup__p1577555512317">value</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="UpdateLogGroup__p177752553313">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="UpdateLogGroup__p1977545543119">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="UpdateLogGroup__p777535593110">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="UpdateLogGroup__section67751559314"><h4 class="sectiontitle">Response Parameters</h4><p id="UpdateLogGroup__p47751855153113"><strong id="UpdateLogGroup__b1677595517313">Status code: 200</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdateLogGroup__response_UpdateLogGroupResponseBody" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Response body parameters</caption><thead align="left"><tr id="UpdateLogGroup__row7775255113120"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.3.2.4.1.1"><p id="UpdateLogGroup__p17754552313">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.3.2.4.1.2"><p id="UpdateLogGroup__p5776855173110">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.3.2.4.1.3"><p id="UpdateLogGroup__p1777605511316">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="UpdateLogGroup__row16775355203114"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="UpdateLogGroup__p0776455193112">creation_time</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="UpdateLogGroup__p77769551318">Long</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="UpdateLogGroup__p167761355163114">Indicates the time when a log group was created, in milliseconds.</p>
</td>
</tr>
<tr id="UpdateLogGroup__row57751655163119"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="UpdateLogGroup__p157767558312">log_group_name</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="UpdateLogGroup__p577645573116">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="UpdateLogGroup__p137760551310">Log group name.</p>
</td>
</tr>
<tr id="UpdateLogGroup__row3775125516312"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="UpdateLogGroup__p977618557317">log_group_id</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="UpdateLogGroup__p18776205573119">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="UpdateLogGroup__p9776185553117">Log group ID.</p>
</td>
</tr>
<tr id="UpdateLogGroup__row57751555173115"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="UpdateLogGroup__p1377655543114">ttl_in_days</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="UpdateLogGroup__p1677635518313">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="UpdateLogGroup__p9776105519316">Log retention period.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="UpdateLogGroup__p157760552314"><strong id="UpdateLogGroup__b11776055123114">Status code: 400</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdateLogGroup__response_LogGroupErrorResultInfo400" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Response body parameters</caption><thead align="left"><tr id="UpdateLogGroup__row37774551311"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.5.2.4.1.1"><p id="UpdateLogGroup__p87771555133116">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.5.2.4.1.2"><p id="UpdateLogGroup__p1577745513120">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.5.2.4.1.3"><p id="UpdateLogGroup__p577745514318">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="UpdateLogGroup__row5777145573113"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.1 "><p id="UpdateLogGroup__p20777195563111">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.2 "><p id="UpdateLogGroup__p7777355183116">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.5.2.4.1.3 "><p id="UpdateLogGroup__p16777555153119">Error code.</p>
</td>
</tr>
<tr id="UpdateLogGroup__row17772554313"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.1 "><p id="UpdateLogGroup__p4777135563114">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.2 "><p id="UpdateLogGroup__p167776559315">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.5.2.4.1.3 "><p id="UpdateLogGroup__p1377735533110">Error message.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="UpdateLogGroup__p157771355163110"><strong id="UpdateLogGroup__b1077715559312">Status code: 401</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdateLogGroup__table197771855143114" frame="border" border="1" rules="all"><caption><b>Table 7 </b>Response body parameters</caption><thead align="left"><tr id="UpdateLogGroup__row47778553319"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.7.2.4.1.1"><p id="UpdateLogGroup__p2778115516315">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.7.2.4.1.2"><p id="UpdateLogGroup__p1978495516319">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.7.2.4.1.3"><p id="UpdateLogGroup__p2784055163118">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="UpdateLogGroup__row1677715573119"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="UpdateLogGroup__p77848551316">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.2 "><p id="UpdateLogGroup__p778415555316">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.7.2.4.1.3 "><p id="UpdateLogGroup__p1978416552313">Error code.</p>
</td>
</tr>
<tr id="UpdateLogGroup__row10777145553118"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="UpdateLogGroup__p2784105523111">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.2 "><p id="UpdateLogGroup__p15784185573113">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.7.2.4.1.3 "><p id="UpdateLogGroup__p87841555173112">Error message.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="UpdateLogGroup__p6784175517310"><strong id="UpdateLogGroup__b678455511312">Status code: 403</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdateLogGroup__table878415515313" frame="border" border="1" rules="all"><caption><b>Table 8 </b>Response body parameters</caption><thead align="left"><tr id="UpdateLogGroup__row15784755143117"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.9.2.4.1.1"><p id="UpdateLogGroup__p1178425517310">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.9.2.4.1.2"><p id="UpdateLogGroup__p1578418552314">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.9.2.4.1.3"><p id="UpdateLogGroup__p187851055103113">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="UpdateLogGroup__row167841552315"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.1 "><p id="UpdateLogGroup__p578575593119">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.2 "><p id="UpdateLogGroup__p107851155163119">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.9.2.4.1.3 "><p id="UpdateLogGroup__p177854553315">Error code.</p>
</td>
</tr>
<tr id="UpdateLogGroup__row15784055183110"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.1 "><p id="UpdateLogGroup__p11785135519319">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.2 "><p id="UpdateLogGroup__p187851255193118">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.9.2.4.1.3 "><p id="UpdateLogGroup__p1578515553116">Error message.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="UpdateLogGroup__p9785145513311"><strong id="UpdateLogGroup__b15785195511317">Status code: 500</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdateLogGroup__table37857551312" frame="border" border="1" rules="all"><caption><b>Table 9 </b>Response body parameters</caption><thead align="left"><tr id="UpdateLogGroup__row20785185518313"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.11.2.4.1.1"><p id="UpdateLogGroup__p12785655123118">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.11.2.4.1.2"><p id="UpdateLogGroup__p9785195515316">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.11.2.4.1.3"><p id="UpdateLogGroup__p07858554319">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="UpdateLogGroup__row17855556311"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.11.2.4.1.1 "><p id="UpdateLogGroup__p878515513315">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.11.2.4.1.2 "><p id="UpdateLogGroup__p878585593110">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.11.2.4.1.3 "><p id="UpdateLogGroup__p8785135512312">Error code.</p>
</td>
</tr>
<tr id="UpdateLogGroup__row1578575563114"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.11.2.4.1.1 "><p id="UpdateLogGroup__p1878565510312">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.11.2.4.1.2 "><p id="UpdateLogGroup__p3785145593112">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.11.2.4.1.3 "><p id="UpdateLogGroup__p8786255123110">Error message.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="UpdateLogGroup__section978617559314"><h4 class="sectiontitle">Example Requests</h4><p id="UpdateLogGroup__p8786555133117">Modifying a log group</p>
<pre class="screen" id="UpdateLogGroup__screen1778685523111">POST https://{endpoint}/v2/{project_id}/groups/{log_group_id}
{
"ttl_in_days" : 8
}</pre>
</div>
<div class="section" id="UpdateLogGroup__section178675511317"><h4 class="sectiontitle">Example Responses</h4><p id="UpdateLogGroup__p127863553313"><strong id="UpdateLogGroup__b10786255123115">Status code: 200</strong></p>
<p id="UpdateLogGroup__p16786155203116">The request is successful and the log group has been modified.</p>
<pre class="screen" id="UpdateLogGroup__screen107861755133119">{
"creation_time" : 156541515155541,
"log_group_name" : "groupName",
"log_group_id" : "b6b9332b-091f-4b22-b810-264318d2",
"ttl_in_days" : 8
}</pre>
<p id="UpdateLogGroup__p478675519312"><strong id="UpdateLogGroup__b87862556312">Status code: 400</strong></p>
<p id="UpdateLogGroup__p1678617559319">BadRequest. The request is invalid. Modify the request based on the description in <strong id="UpdateLogGroup__b17786115517319">error_msg</strong> before a retry.</p>
<pre class="screen" id="UpdateLogGroup__screen278655517316">{
"error_code" : "LTS.0009",
"error_msg" : "Failed to validate the request body"
}</pre>
<p id="UpdateLogGroup__p37860553312"><strong id="UpdateLogGroup__b878615559312">Status code: 401</strong></p>
<p id="UpdateLogGroup__p147868558319">AuthFailed. Authentication failed. Check the token and try again.</p>
<pre class="screen" id="UpdateLogGroup__screen378725563113">{
"error_code" : "LTS.0414",
"error_msg" : "Invalid token"
}</pre>
<p id="UpdateLogGroup__p1078725533116"><strong id="UpdateLogGroup__b1178720556315">Status code: 403</strong></p>
<p id="UpdateLogGroup__p17787955173111">Forbidden.The request has been 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="UpdateLogGroup__screen13787115573113">{
"error_code" : "LTS.0001",
"error_msg" : "Invalid projectId"
}</pre>
<p id="UpdateLogGroup__p1378775519318"><strong id="UpdateLogGroup__b57878555311">Status code: 500</strong></p>
<p id="UpdateLogGroup__p1278717557311">InternalServerError.</p>
<p id="UpdateLogGroup__p11787125518315">The server has received the request but encountered an internal error.</p>
<pre class="screen" id="UpdateLogGroup__screen278775513319">{
"error_code" : "LTS.0102",
"error_msg" : "Failed to update log group"
}</pre>
</div>
<div class="section" id="UpdateLogGroup__section3787165510315"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdateLogGroup__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="UpdateLogGroup__row11787165573117"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="UpdateLogGroup__p1278895513311">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p id="UpdateLogGroup__p17788205563112">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="UpdateLogGroup__row778705513313"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="UpdateLogGroup__p14788115523117">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="UpdateLogGroup__p2788105533110">The request is successful and the log group has been modified.</p>
</td>
</tr>
<tr id="UpdateLogGroup__row77871355133116"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="UpdateLogGroup__p87881255183110">400</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="UpdateLogGroup__p1778855563114">BadRequest. The request is invalid. Modify the request based on the description in <strong id="UpdateLogGroup__b6788555203110">error_msg</strong> before a retry.</p>
</td>
</tr>
<tr id="UpdateLogGroup__row1078735543120"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="UpdateLogGroup__p15788105520315">401</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="UpdateLogGroup__p57888553311">AuthFailed. Authentication failed. Check the token and try again.</p>
</td>
</tr>
<tr id="UpdateLogGroup__row2078712551312"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="UpdateLogGroup__p14788185515317">403</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="UpdateLogGroup__p8788755133112">Forbidden.The request has been 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="UpdateLogGroup__row12787195533111"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="UpdateLogGroup__p1878845543115">500</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="UpdateLogGroup__p8788145515317">InternalServerError.</p>
<p id="UpdateLogGroup__p1378815503116">The server has received the request but encountered an internal error.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="UpdateLogGroup__section4788155133116"><h4 class="sectiontitle">Error Codes</h4><p id="UpdateLogGroup__p157881355143118">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_0011.html">Log Group Management</a></div>
</div>
</div>