Skip to main content

vpc

Manage VPC resources

Run ecctl vpc <action> -h for usage, or ecctl schema vpc.vpc.<action> --full for the complete, agent-readable spec of every parameter and behavior.

create

ecctl vpc create [flags]

Create a VPC

  • Kind: mutation · Risk: medium
  • Synchronous: waits for Available (waiter available_after_create, timeout 300s); use --no-wait to skip.
  • Idempotent via ClientToken.
  • Dry run: supported via --dry-run.
APIWhen calledPurpose
CreateVpcEvery time the command runs.Perform the resource operation.
DescribeVpcAttributeWhen --no-wait is not specified and --dry-run is not specified.Poll until the resource reaches the target state. (repeated)
DescribeVpcAttributeWhen --no-wait is not specified and --dry-run is not specified.Return the final resource view. (cached; no additional request)
ParameterTypeRequiredDescription
--regionstringAlibaba Cloud region
--cidrcidrCIDR block
--descriptionstringVPC description
--enable-dns-hostnamebooleanenable DNS hostnames
--enable-ipv6booleanenable IPv6
--ipv4-cidr-maskintegerIPv4 IPAM CIDR mask
--ipv4-ipam-poolstringIPv4 IPAM pool ID
--ipv6-cidrstringIPv6 CIDR block
--ipv6-cidr-maskintegerIPv6 IPAM CIDR mask
--ipv6-ipam-poolstringIPv6 IPAM pool ID
--ipv6-ispstringIPv6 ISP
--namestringVPC name
--resource-groupstringresource group ID
--tagkey_valuetag assignment key=value
--user-cidrstringuser CIDR block

update

ecctl vpc update <id> [flags]

Update VPC attributes

  • Kind: mutation · Risk: medium
  • Synchronous: waits for Available (waiter available_after_update, timeout 300s); use --no-wait to skip.
APIWhen calledPurpose
ModifyVpcAttributeEvery time the command runs.Perform the resource operation.
DescribeVpcAttributeWhen --no-wait is not specified.Poll until the resource reaches the target state. (repeated)
DescribeVpcAttributeWhen --no-wait is not specified.Return the final resource view. (cached; no additional request)
ParameterTypeRequiredDescription
--regionstringAlibaba Cloud region
--cidrcidrCIDR block
--descriptionstringVPC description
--enable-dns-hostnamebooleanenable DNS hostnames
--enable-ipv6booleanenable IPv6
--ipv6-cidrstringIPv6 CIDR block
--ipv6-ispstringIPv6 ISP
--namestringVPC name

delete

ecctl vpc delete <id> [flags]

Delete VPC

  • Kind: mutation · Risk: high
  • Synchronous: waits for absent (waiter deleted_after_delete, timeout 300s); use --no-wait to skip.
  • Idempotent via ClientToken.
  • Dry run: supported via --dry-run.
APIWhen calledPurpose
DeleteVpcEvery time the command runs.Perform the resource operation.
DescribeVpcsWhen --no-wait is not specified and --dry-run is not specified.Poll until the resource reaches the target state. (repeated)
ParameterTypeRequiredDescription
--regionstringAlibaba Cloud region
--forcebooleanforce delete VPC

get

ecctl vpc get <id> [flags]

Get VPC

  • Kind: read · Risk: low
APIWhen calledPurpose
DescribeVpcAttributeEvery time the command runs.Read the resource view.
ParameterTypeRequiredDescription
--regionstringAlibaba Cloud region
--fieldsstringcomma-separated resource fields to include

list

ecctl vpc list [<ids>...] [flags]

List VPC resources

  • Kind: read · Risk: low
APIWhen calledPurpose
DescribeVpcsEvery time the command runs.Read the resource view.
ParameterTypeRequiredDescription
--regionstringAlibaba Cloud region
--fieldsstringcomma-separated resource fields to include
--filterkey_valuefilter expression key=value
--limitintegermaximum resources to return (default: 50)
--pageintegerresults page to return (default: 1)