Skip to main content

dtctl security-group update

Usage​

dtctl security-group update <id> [flags]

Aliases​

u

Description​

Update a security group's name or description.

Example​

dtctl security-group update <security-group-id> --name web-sg-2

Response​

In text output (the default), this command returns the following columns: ID, Name, Stateful, Description, Created At, Updated At, Revision Number, Security Group Rules.

Pass --output json to get the full response object instead.

Flags​

OptionDescription
--description, -dNew description of the security group
--name, -nNew name of the security group
CommandDescription
dtctl security-group listList security groups
dtctl security-group showShow a security group
dtctl security-group createCreate a security group
dtctl security-group create-ruleAdd a rule
dtctl security-group deleteDelete a security group
dtctl security-group delete-ruleDelete a rule
dtctl security-group my-ipShow your public IP
dtctl security-group rule-detailsShow a rule
dtctl security-group rulesList a security group's rules

Global Flags​

OptionDescription
--api-urlSend this command to a different API endpoint, e.g. a test environment (default "https://console.dt.net.tr/api/v1")
--config, -cSpecify a custom config file
Default: ~/.config/dtctl/config.yaml
--no-headersOmit the column headers, for scripting
Default: false
--output, -oOutput format: text, wide, vertical, json. text fits the terminal, wide never truncates, vertical prints one field per line
Default: text