Skip to main content

dtctl security-group rules

Usage​

dtctl security-group rules <id>

Aliases​

r

Description​

Retrieve the rules of a security group by ID.

Example​

dtctl security-group rules <security-group-id>

Response​

In text output (the default), this command returns the following columns: ID, Security Group ID, Ethertype, Direction, Protocol, Min. Port Range, Max. Port Range, Remote IP Prefix, Remote Address Group ID, Normalized CIDR, Remote Group ID, Description, Created At, Updated At, Revision Number.

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

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 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

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