twc-rs firewall
Manage firewall groups
| Subcommand | Description |
|---|---|
list | List all firewall groups |
info | Show detailed info for a firewall group |
create | Create a new firewall group |
delete | Delete a firewall group by ID |
update | Update firewall group settings |
rule-list | List rules for a firewall group |
rule-create | Create a rule for a firewall group |
rule-delete | Delete a rule from a firewall group |
resource-list | List resources for a firewall group |
resource-add | Add a resource to a firewall group |
resource-remove | Remove a resource from a firewall group |
twc-rs firewall list
List all firewall groups
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--limit | Maximum number of groups to return | |||
--offset | Number of groups 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 firewall info
Show detailed info for a firewall group
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Firewall group 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 firewall create
Create a new firewall group
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--name | Group 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 firewall delete
Delete a firewall group by ID
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Firewall group 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 firewall update
Update firewall group settings
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Firewall group ID | yes | ||
--name | New group 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 firewall rule-list
List rules for a firewall group
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Firewall group 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 firewall rule-create
Create a rule for a firewall group
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Firewall group 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 firewall rule-delete
Delete a rule from a firewall group
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Firewall group 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 firewall resource-list
List resources for a firewall group
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Firewall group 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 firewall resource-add
Add a resource to a firewall group
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Firewall group ID | yes | ||
--resource-id | Resource ID 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 firewall resource-remove
Remove a resource from a firewall group
| Argument | Description | Required | Env | Default |
|---|---|---|---|---|
--id | Firewall group ID | yes | ||
--resource-id | Resource ID 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 |