跳到主要内容

ack template

管理 ACK 编排模板

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

create

ecctl ack template create [flags]

创建 ACK 编排模板

  • 类型:mutation · 风险:medium
API调用时机用途
CreateTemplate每次执行命令时执行资源操作。
DescribeTemplateAttribute每次执行命令时读取资源视图。
参数类型必填说明
--contentstring编排模板内容,JSON/YAML 文本或 @file
--namestring编排模板名称
--regionstringAlibaba Cloud region
--descriptionstring编排模板描述
--tagsstring编排模板标签
--template-typestring编排模板类型

update

ecctl ack template update <id> [flags]

更新 ACK 编排模板

  • 类型:mutation · 风险:medium
API调用时机用途
UpdateTemplate每次执行命令时执行资源操作。
DescribeTemplateAttribute每次执行命令时读取资源视图。
参数类型必填说明
--regionstringAlibaba Cloud region
--contentstring编排模板内容,JSON/YAML 文本或 @file
--descriptionstring编排模板描述
--namestring编排模板名称
--tagsstring编排模板标签
--template-typestring编排模板类型

delete

ecctl ack template delete <id> [flags]

删除 ACK 编排模板

  • 类型:mutation · 风险:high
  • 同步:等待 absent(waiter deleted_after_delete,超时 300s);用 --no-wait 跳过等待。
API调用时机用途
DeleteTemplate每次执行命令时执行资源操作。
DescribeTemplateAttribute未指定 --no-wait轮询等待资源达到目标状态。(重复调用)
参数类型必填说明
--regionstringAlibaba Cloud region

get

ecctl ack template get <id> [flags]

获取 ACK 编排模板

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

list

ecctl ack template list [flags]

列出 ACK 编排模板

  • 类型:read · 风险:low
API调用时机用途
DescribeTemplates每次执行命令时读取资源视图。
参数类型必填说明
--regionstringAlibaba Cloud region
--fieldsstring要包含的资源字段,使用逗号分隔
--limitinteger最多返回资源数量(默认:100
--pageinteger返回结果页码(默认:1
--template-typestring编排模板类型