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 firewall

Manage firewall groups

SubcommandDescription
listList all firewall groups
infoShow detailed info for a firewall group
createCreate a new firewall group
deleteDelete a firewall group by ID
updateUpdate firewall group settings
rule-listList rules for a firewall group
rule-createCreate a rule for a firewall group
rule-deleteDelete a rule from a firewall group
resource-listList resources for a firewall group
resource-addAdd a resource to a firewall group
resource-removeRemove a resource from a firewall group

twc-rs firewall list

List all firewall groups

ArgumentDescriptionRequiredEnvDefault
--limitMaximum number of groups to return
--offsetNumber of groups to skip
-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 firewall info

Show detailed info for a firewall group

ArgumentDescriptionRequiredEnvDefault
--idFirewall group 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 firewall create

Create a new firewall group

ArgumentDescriptionRequiredEnvDefault
--nameGroup nameyes
-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 firewall delete

Delete a firewall group by ID

ArgumentDescriptionRequiredEnvDefault
--idFirewall group 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 firewall update

Update firewall group settings

ArgumentDescriptionRequiredEnvDefault
--idFirewall group IDyes
--nameNew group name
-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 firewall rule-list

List rules for a firewall group

ArgumentDescriptionRequiredEnvDefault
--idFirewall group 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 firewall rule-create

Create a rule for a firewall group

ArgumentDescriptionRequiredEnvDefault
--idFirewall group 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 firewall rule-delete

Delete a rule from a firewall group

ArgumentDescriptionRequiredEnvDefault
--idFirewall group IDyes
--rule-idRule ID to deleteyes
-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 firewall resource-list

List resources for a firewall group

ArgumentDescriptionRequiredEnvDefault
--idFirewall group 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 firewall resource-add

Add a resource to a firewall group

ArgumentDescriptionRequiredEnvDefault
--idFirewall group IDyes
--resource-idResource ID to addyes
-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 firewall resource-remove

Remove a resource from a firewall group

ArgumentDescriptionRequiredEnvDefault
--idFirewall group IDyes
--resource-idResource ID to removeyes
-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