跳到主要内容

lingjun vpd

管理灵骏网段资源

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

create

ecctl lingjun vpd create [flags]

创建 VPD

  • 类型:mutation · 风险:medium
  • 同步:等待 Available(waiter available_after_change,超时 300s);用 --no-wait 跳过等待。
API调用时机用途
CreateVpd每次执行命令时执行资源操作。
GetVpd未指定 --no-wait轮询等待资源达到目标状态。(重复调用)
GetVpd未指定 --no-wait返回最终资源视图。(复用等待结果,不额外请求)
参数类型必填说明
--cidrcidrVPD 网段
--namestringVPD 名称
--regionstringAlibaba Cloud region
--resource-groupstring资源组 ID
--subnetobject随 VPD 创建的子网
--tagkey_value标签赋值 key=value

update

ecctl lingjun vpd update <id> [flags]

更新 VPD

  • 类型:mutation · 风险:medium
  • 同步:等待 matched(waiter update_converged,超时 300s);用 --no-wait 跳过等待。
API调用时机用途
UpdateVpd指定 --name执行资源操作。
AssociateVpdCidrBlock--cidr 中包含以 + 为前缀的值时执行资源操作。
UnAssociateVpdCidrBlock--cidr 中包含以 - 为前缀的值时执行资源操作。
GetVpd未指定 --no-wait轮询等待资源达到目标状态。(重复调用)
参数类型必填说明
--regionstringAlibaba Cloud region
--cidrstring辅助网段变更,使用 + 前缀关联或 - 前缀解除关联
--namestringVPD 名称

delete

ecctl lingjun vpd delete <id> [flags]

删除 VPD

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

get

ecctl lingjun vpd get <id> [flags]

获取 VPD

  • 类型:read · 风险:low
API调用时机用途
GetVpd每次执行命令时读取资源视图。
ListVpdRouteEntries指定 --with-routes读取资源视图。
ListVpdGrantRules指定 --with-grants读取资源视图。
参数类型必填说明
--regionstringAlibaba Cloud region
--fieldsstring要包含的资源字段,使用逗号分隔
--limitinteger最多返回资源数量(默认:100
--pageinteger返回结果页码(默认:1
--with-grantsboolean附带 VPD 授权规则
--with-routesboolean附带 VPD 路由条目

list

ecctl lingjun vpd list [flags]

列出 VPD

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