Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

twc-rs vpc

Manage virtual networks (VPC)

SubcommandDescription
listList all virtual networks
infoShow detailed information about a VPC
createCreate a new VPC
setUpdate a VPC’s name and/or description
portsList network ports of a VPC
deleteDelete a VPC by ID

twc-rs vpc list

List all virtual networks

ArgumentDescriptionRequiredEnvDefault
-f, --formatOutput format: table (default), json, yaml, or quietTWC_OUTPUTtable
-t, --tokenAPI token override (overrides config file and TWC_TOKEN env)TWC_TOKEN
--profileUse a named profile’s token from the config fileTWC_PROFILE

twc-rs vpc info

Show detailed information about a VPC

ArgumentDescriptionRequiredEnvDefault
--idVPC IDyes
-f, --formatOutput format: table (default), json, yaml, or quietTWC_OUTPUTtable
-t, --tokenAPI token override (overrides config file and TWC_TOKEN env)TWC_TOKEN
--profileUse a named profile’s token from the config fileTWC_PROFILE

twc-rs vpc create

Create a new VPC

ArgumentDescriptionRequiredEnvDefault
--nameVPC nameyes
--subnet-v4IPv4 subnet mask (e.g. 192.168.0.0/24)yes
--locationLocation (e.g. ru-1)yes
-f, --formatOutput format: table (default), json, yaml, or quietTWC_OUTPUTtable
-t, --tokenAPI token override (overrides config file and TWC_TOKEN env)TWC_TOKEN
--profileUse a named profile’s token from the config fileTWC_PROFILE

twc-rs vpc set

Update a VPC’s name and/or description

ArgumentDescriptionRequiredEnvDefault
--idVPC IDyes
--nameNew name
--descriptionNew description
-f, --formatOutput format: table (default), json, yaml, or quietTWC_OUTPUTtable
-t, --tokenAPI token override (overrides config file and TWC_TOKEN env)TWC_TOKEN
--profileUse a named profile’s token from the config fileTWC_PROFILE

twc-rs vpc ports

List network ports of a VPC

ArgumentDescriptionRequiredEnvDefault
--idVPC IDyes
-f, --formatOutput format: table (default), json, yaml, or quietTWC_OUTPUTtable
-t, --tokenAPI token override (overrides config file and TWC_TOKEN env)TWC_TOKEN
--profileUse a named profile’s token from the config fileTWC_PROFILE

twc-rs vpc delete

Delete a VPC by ID

ArgumentDescriptionRequiredEnvDefault
--idVPC IDyes
-f, --formatOutput format: table (default), json, yaml, or quietTWC_OUTPUTtable
-t, --tokenAPI token override (overrides config file and TWC_TOKEN env)TWC_TOKEN
--profileUse a named profile’s token from the config fileTWC_PROFILE