dtctl network list
Usage
dtctl network list [flags]
Aliases
l
Description
Retrieve all networks in the active project, optionally filtered by name or type.
Example
# List all networks, or only virtual ones
dtctl network list
dtctl network list --network-type Virtual
Response
In text output (the default), this command returns the following columns: Name, IPAM, Type, ID, Subnet ID, CIDR, Gateway, DHCP, Port Security Enabled.
Pass --output json to get the full response object instead.
Flags
| Option | Description |
|---|---|
--name, -n | Filter by name |
--network-type, -t | Filter by type. One of: Virtual, Physical |
Related Commands
| Command | Description |
|---|---|
| dtctl network show | Show a network |
| dtctl network create | Create a network |
| dtctl network update | Rename a network |
| dtctl network update-subnet | Update a subnet |
| dtctl network delete | Delete a network |
| dtctl network subnet | Show subnet details |
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 |