跳到主要内容

lingjun er

管理灵骏 HUB(Enterprise Router)资源

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

create

ecctl lingjun er create [flags]

创建灵骏 HUB

  • 类型:mutation · 风险:medium
  • 同步:等待 Available(waiter available_after_change,超时 600s);用 --no-wait 跳过等待。
API调用时机用途
CreateEr每次执行命令时执行资源操作。
GetEr未指定 --no-wait轮询等待资源达到目标状态。(重复调用)
GetEr未指定 --no-wait返回最终资源视图。(复用等待结果,不额外请求)
参数类型必填说明
--master-zonestring主可用区 ID
--namestringHUB 名称
--regionstringAlibaba Cloud region
--descriptionstringHUB 描述
--resource-groupstring资源组 ID
--tagkey_value标签赋值 key=value

update

ecctl lingjun er update <id> [flags]

更新灵骏 HUB(基础属性、连接关系或路由策略)

  • 类型:mutation · 风险:medium
  • 同步:等待 Available(waiter available_after_change,超时 600s);用 --no-wait 跳过等待。
API调用时机用途
UpdateEr指定 --name 或指定 --description执行资源操作。
CreateErAttachment--attachment 中包含以 + 为前缀的值时执行资源操作。
DeleteErAttachment--attachment 中包含以 - 为前缀的值时执行资源操作。
CreateErRouteMap--route-map 中包含以 + 为前缀的值时执行资源操作。
DeleteErRouteMap--route-map 中包含以 - 为前缀的值时执行资源操作。
GetEr未指定 --no-wait轮询等待资源达到目标状态。(重复调用)
GetEr未指定 --no-wait返回最终资源视图。(复用等待结果,不额外请求)
参数类型必填说明
--regionstringAlibaba Cloud region
--attachmentstring连接关系变更;+ 前缀新增(内联 kv:instance=...,instance_type=VPD|VCC,name=...,auto_receive_all_route=true|false[,resource_tenant=...]),- 前缀按 attachment ID 删除(如 -era-xxx)
--descriptionstringHUB 描述
--namestringHUB 名称
--route-mapstring路由策略变更;+ 前缀新增(内联 kv:route_map_num=...,action=permit|deny,reception_instance=...,reception_instance_type=VPD|VCC,transmission_instance=...,transmission_instance_type=VPD|VCC[,destination_cidr=...,description=...,reception_instance_owner=...,transmission_instance_owner=...]),- 前缀按 route-map ID 删除(如 -ermap-xxx)

delete

ecctl lingjun er delete <id> [flags]

删除灵骏 HUB

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

get

ecctl lingjun er get <id> [flags]

获取灵骏 HUB

  • 类型:read · 风险:low
API调用时机用途
GetEr每次执行命令时读取资源视图。
ListErAttachments指定 --with-attachments读取资源视图。
ListErRouteMaps指定 --with-route-maps读取资源视图。
ListErRouteEntries指定 --with-routes读取资源视图。
参数类型必填说明
--regionstringAlibaba Cloud region
--fieldsstring要包含的资源字段,使用逗号分隔
--limitinteger最多返回资源数量(默认:100
--pageinteger返回结果页码(默认:1
--with-attachmentsbooleanget 输出附带 HUB 连接关系列表
--with-route-mapsbooleanget 输出附带 HUB 路由策略列表
--with-routesbooleanget 输出附带 HUB 路由条目列表

list

ecctl lingjun er list [flags]

列出灵骏 HUB

  • 类型:read · 风险:low
API调用时机用途
ListErs每次执行命令时读取资源视图。
参数类型必填说明
--regionstringAlibaba Cloud region
--fieldsstring要包含的资源字段,使用逗号分隔
--filterkey_value过滤表达式 key=value
--limitinteger最多返回资源数量(默认:100
--pageinteger返回结果页码(默认:1