twc-rs ip
Manage floating IPs
| Subcommand | Description |
|---|---|
list | List all floating IPs |
info | Show detailed info about a floating IP |
create | Create a new floating IP in an availability zone |
attach | Attach a floating IP to a resource |
detach | Detach a floating IP from its resource |
set | Update a floating IP’s comment |
delete | Delete a floating IP by ID |
twc-rs ip list
List all floating IPs
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
-f, --format | Output format: table (default), json, yaml, or quiet | TWC_OUTPUT | table | |
-t, --token | API token override (overrides config file and TWC_TOKEN env) | TWC_TOKEN | ||
--profile | Use a named profile’s token from the config file | TWC_PROFILE |
twc-rs ip info
Show detailed info about a floating IP
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Floating IP ID | yes | ||
-f, --format | Output format: table (default), json, yaml, or quiet | TWC_OUTPUT | table | |
-t, --token | API token override (overrides config file and TWC_TOKEN env) | TWC_TOKEN | ||
--profile | Use a named profile’s token from the config file | TWC_PROFILE |
twc-rs ip create
Create a new floating IP in an availability zone
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--availability-zone | Availability zone (e.g. spb-1, msk-1, ams-1) | yes | ||
-f, --format | Output format: table (default), json, yaml, or quiet | TWC_OUTPUT | table | |
-t, --token | API token override (overrides config file and TWC_TOKEN env) | TWC_TOKEN | ||
--profile | Use a named profile’s token from the config file | TWC_PROFILE |
twc-rs ip attach
Attach a floating IP to a resource
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Floating IP ID | yes | ||
--resource-id | Resource ID to bind to | yes | ||
-f, --format | Output format: table (default), json, yaml, or quiet | TWC_OUTPUT | table | |
-t, --token | API token override (overrides config file and TWC_TOKEN env) | TWC_TOKEN | ||
--profile | Use a named profile’s token from the config file | TWC_PROFILE |
twc-rs ip detach
Detach a floating IP from its resource
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Floating IP ID | yes | ||
-f, --format | Output format: table (default), json, yaml, or quiet | TWC_OUTPUT | table | |
-t, --token | API token override (overrides config file and TWC_TOKEN env) | TWC_TOKEN | ||
--profile | Use a named profile’s token from the config file | TWC_PROFILE |
twc-rs ip set
Update a floating IP’s comment
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Floating IP ID | yes | ||
--comment | New comment | |||
-f, --format | Output format: table (default), json, yaml, or quiet | TWC_OUTPUT | table | |
-t, --token | API token override (overrides config file and TWC_TOKEN env) | TWC_TOKEN | ||
--profile | Use a named profile’s token from the config file | TWC_PROFILE |
twc-rs ip delete
Delete a floating IP by ID
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Floating IP ID | yes | ||
-f, --format | Output format: table (default), json, yaml, or quiet | TWC_OUTPUT | table | |
-t, --token | API token override (overrides config file and TWC_TOKEN env) | TWC_TOKEN | ||
--profile | Use a named profile’s token from the config file | TWC_PROFILE |