twc-rs balancer
Manage load balancers
| Subcommand | Description |
|---|---|
list | List all balancers |
info | Show detailed info for a balancer |
create | Create a new balancer |
delete | Delete a balancer by ID |
update | Update balancer settings |
rule-list | List rules for a balancer |
rule-create | Create a rule for a balancer |
rule-delete | Delete a rule from a balancer |
ip-list | List IPs for a balancer |
ip-add | Add an IP to a balancer |
ip-remove | Remove an IP from a balancer |
preset-list | List available balancer presets |
twc-rs balancer list
List all balancers
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--limit | Maximum number of balancers to return | |||
--offset | Number of balancers to skip | |||
-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 balancer info
Show detailed info for a balancer
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Balancer 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 balancer create
Create a new balancer
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--name | Balancer name | 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 balancer delete
Delete a balancer by ID
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Balancer 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 balancer update
Update balancer settings
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Balancer ID | yes | ||
--name | New balancer name | |||
-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 balancer rule-list
List rules for a balancer
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Balancer 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 balancer rule-create
Create a rule for a balancer
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Balancer 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 balancer rule-delete
Delete a rule from a balancer
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Balancer ID | yes | ||
--rule-id | Rule ID to delete | 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 balancer ip-list
List IPs for a balancer
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Balancer 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 balancer ip-add
Add an IP to a balancer
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Balancer ID | yes | ||
--ip | IP address to add | 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 balancer ip-remove
Remove an IP from a balancer
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Balancer ID | yes | ||
--ip | IP address to remove | 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 balancer preset-list
List available balancer presets
| 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 |