Skip to main content

dtctl security-group my-ip

Usage​

dtctl security-group my-ip

Aliases​

ip

Description​

Retrieve the public IP address the API sees for your client, which is useful for scoping a rule to your own IP.

Example​

dtctl security-group my-ip
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 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