跳到主要内容

ack audit

管理 ACK 集群 API Server 审计日志

运行 ecctl ack audit <action> -h 查看用法,或 ecctl schema ack.audit.<action> --full 获取该命令完整的结构化规格——每个参数与行为,便于 Agent 读取和填参。

update

ecctl ack audit update [flags]

更新 ACK 集群 API Server 审计日志

  • 类型:mutation · 风险:medium
  • 同步:等待 success(waiter task_succeeded,超时 600s);用 --no-wait 跳过等待。
API调用时机用途
UpdateClusterAuditLogConfig--enabled 等于 true执行资源操作。
DescribeTaskInfo--enabled 等于 true 且未指定 --no-wait轮询等待资源达到目标状态。(重复调用)
UpdateClusterAuditLogConfig--enabled 等于 false执行资源操作。
DescribeTaskInfo--enabled 等于 false 且未指定 --no-wait轮询等待资源达到目标状态。(重复调用)
UpdateClusterAuditLogConfig指定 --project 且未显式指定 --enabled执行资源操作。
DescribeTaskInfo指定 --project 且未显式指定 --enabled 且未指定 --no-wait轮询等待资源达到目标状态。(重复调用)
GetClusterAuditProject未指定 --no-wait读取资源视图。
参数类型必填说明
--clusterstringACK 集群 ID
--regionstringAlibaba Cloud region
--enabledboolean开启或关闭 API Server 审计日志
--projectstringAPI Server 审计日志所在的 SLS Project

get

ecctl ack audit get [flags]

获取 ACK 集群 API Server 审计日志配置

  • 类型:read · 风险:low
API调用时机用途
GetClusterAuditProject每次执行命令时读取资源视图。
参数类型必填说明
--clusterstringACK 集群 ID
--regionstringAlibaba Cloud region
--fieldsstring要包含的资源字段,使用逗号分隔