Skip to main content

vpc vswitch

Manage VSwitch resources

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

create

ecctl vpc vswitch create [flags]

Create VSwitch

  • Kind: mutation · Risk: medium
  • Synchronous: waits for Available (waiter available_after_create, timeout 300s); use --no-wait to skip.
  • Idempotent via ClientToken.
APIWhen calledPurpose
CreateVSwitchEvery time the command runs.Perform the resource operation.
DescribeVSwitchAttributesWhen --no-wait is not specified.Poll until the resource reaches the target state. (repeated)
DescribeVSwitchAttributesWhen --no-wait is not specified.Return the final resource view. (cached; no additional request)
ParameterTypeRequiredDescription
--cidrcidrCIDR block
--regionstringAlibaba Cloud region
--vpcstringVPC ID
--zonestringzone ID
--descriptionstringVSwitch description
--ipv6-cidr-blockintegerIPv6 CIDR block index
--namestringVSwitch name
--resource-groupstringresource group ID
--tagkey_valuetag assignment key=value
--vpc-ipv6-cidrstringVPC IPv6 CIDR block

update

ecctl vpc vswitch update <id> [flags]

Update VSwitch attributes

  • Kind: mutation · Risk: medium
  • Synchronous: waits for Available (waiter available_after_update, timeout 300s); use --no-wait to skip.
APIWhen calledPurpose
ModifyVSwitchAttributeEvery time the command runs.Perform the resource operation.
DescribeVSwitchAttributesWhen --no-wait is not specified.Poll until the resource reaches the target state. (repeated)
DescribeVSwitchAttributesWhen --no-wait is not specified.Return the final resource view. (cached; no additional request)
ParameterTypeRequiredDescription
--regionstringAlibaba Cloud region
--descriptionstringVSwitch description
--enable-ipv6booleanenable IPv6
--ipv6-cidr-blockintegerIPv6 CIDR block index
--namestringVSwitch name
--vpc-ipv6-cidrstringVPC IPv6 CIDR block

delete

ecctl vpc vswitch delete <id> [flags]

Delete VSwitch

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

get

ecctl vpc vswitch get <id> [flags]

Get VSwitch

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

list

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

List VSwitch resources

  • Kind: read · Risk: low
APIWhen calledPurpose
DescribeVSwitchesEvery 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)