lts__UpdateLogGroup
Updates the log retention period for a specified LTS log group by setting the storage duration in days (1–30). Use it to adjust how long logs are kept.
Instructions
[LTS] 该接口用于修改指定日志组下的日志存储时长。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"log_group_id": "<log_group_id>",
"project_id": "<project_id>",
"ttl_in_days": "<ttl_in_days>"
},
"name": "lts__UpdateLogGroup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | 标签字段信息 | |
| project_id | Yes | 项目ID,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html)。 | None |
| ttl_in_days | Yes | 日志存储时间 天。 取值范围为 [1, 30] | |
| log_group_id | Yes | 日志组ID,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html) | None |