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.
Related Commands
| Command | Description |
|---|---|
| dtctl security-group list | List security groups |
| dtctl security-group show | Show a security group |
| dtctl security-group create | Create a security group |
| dtctl security-group create-rule | Add a rule |
| dtctl security-group update | Update a security group |
| dtctl security-group delete | Delete a security group |
| dtctl security-group delete-rule | Delete a rule |
| dtctl security-group my-ip | Show your public IP |
| dtctl security-group rule-details | Show a rule |
Global Flags
| Option | Description |
|---|---|
--api-url | Send this command to a different API endpoint, e.g. a test environment (default "https://console.dt.net.tr/api/v1") |
--config, -c | Specify a custom config file Default: ~/.config/dtctl/config.yaml |
--no-headers | Omit the column headers, for scripting Default: false |
--output, -o | Output format: text, wide, vertical, json. text fits the terminal, wide never truncates, vertical prints one field per line Default: text |