Skip to main content

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​

OptionDescription
--name, -nFilter by name
--network-type, -tFilter by type. One of: Virtual, Physical
CommandDescription
dtctl network showShow a network
dtctl network createCreate a network
dtctl network updateRename a network
dtctl network update-subnetUpdate a subnet
dtctl network deleteDelete a network
dtctl network subnetShow subnet details

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