hss__ListClusterAuditLogs
Retrieve Kubernetes cluster audit logs by cluster ID and time range, with filters for verb, host, IP, and pagination to review cluster activity and security events.
Instructions
[HSS] 查询k8s集群审计日志列表
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": {
"cluster_id": "<cluster_id>",
"end_time": "<end_time>",
"limit": "<limit>",
"offset": "<offset>",
"project_id": "<project_id>",
"start_time": "<start_time>"
},
"name": "hss__ListClusterAuditLogs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| verb | No | 审计日志对应的动作,包含以下几种: | |
| limit | Yes | 每页显示个数,默认为10 | |
| offset | Yes | 偏移量:指定返回记录的开始位置,必须为数字,取值范围为大于或等于0,默认0 | |
| host_id | No | 主机id | |
| host_ip | No | 主机ip | |
| end_time | Yes | 查询日志范围的最大时间 | |
| line_num | No | 查询cce集群日志时需要传的分页行号 | |
| host_name | No | 主机名称 | |
| cluster_id | Yes | 集群id | |
| project_id | Yes | 项目ID | |
| start_time | Yes | 查询日志范围的最小时间 | |
| cluster_name | No | 集群名称 | |
| enterprise_project_id | No | 主机所属的企业项目ID。 | 0 |