twc-rs vpc
Manage virtual networks (VPC)
| Subcommand | Description |
|---|---|
list | List all virtual networks |
info | Show detailed information about a VPC |
create | Create a new VPC |
set | Update a VPC’s name and/or description |
ports | List network ports of a VPC |
delete | Delete a VPC by ID |
twc-rs vpc list
List all virtual networks
| 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 vpc info
Show detailed information about a VPC
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | VPC 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 vpc create
Create a new VPC
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--name | VPC name | yes | ||
--subnet-v4 | IPv4 subnet mask (e.g. 192.168.0.0/24) | yes | ||
--location | Location (e.g. ru-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 vpc set
Update a VPC’s name and/or description
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | VPC ID | yes | ||
--name | New name | |||
--description | New description | |||
-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 vpc ports
List network ports of a VPC
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | VPC 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 vpc delete
Delete a VPC by ID
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | VPC 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 |