Skip to main content

dtctl security-group create

Usage​

dtctl security-group create [flags]

Aliases​

c

Description​

Create an empty security group. Add rules with dtctl security-group create-rule.

Example​

dtctl security-group create --name web-sg --description "Allow web traffic"

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, -dDescription of the security group
--name, -nName of the security group (required)
CommandDescription
dtctl security-group listList security groups
dtctl security-group showShow a security group
dtctl security-group create-ruleAdd a rule
dtctl security-group updateUpdate a security group
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