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 ip

Manage floating IPs

SubcommandDescription
listList all floating IPs
infoShow detailed info about a floating IP
createCreate a new floating IP in an availability zone
attachAttach a floating IP to a resource
detachDetach a floating IP from its resource
setUpdate a floating IP’s comment
deleteDelete a floating IP by ID

twc-rs ip list

List all floating IPs

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 ip info

Show detailed info about a floating IP

ArgumentDescriptionRequiredEnvDefault
--idFloating IP 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 ip create

Create a new floating IP in an availability zone

ArgumentDescriptionRequiredEnvDefault
--availability-zoneAvailability zone (e.g. spb-1, msk-1, ams-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 ip attach

Attach a floating IP to a resource

ArgumentDescriptionRequiredEnvDefault
--idFloating IP IDyes
--resource-idResource ID to bind toyes
-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 ip detach

Detach a floating IP from its resource

ArgumentDescriptionRequiredEnvDefault
--idFloating IP 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 ip set

Update a floating IP’s comment

ArgumentDescriptionRequiredEnvDefault
--idFloating IP IDyes
--commentNew comment
-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 ip delete

Delete a floating IP by ID

ArgumentDescriptionRequiredEnvDefault
--idFloating IP 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