Skip to main content

dtctl load-balancer create-listener

Usage​

dtctl load-balancer create-listener [flags]

Aliases​

cl

Description​

Add a listener to a load balancer. A listener defines the protocol and port that the load balancer accepts front-end traffic on.

Example​

# Add an HTTP listener on port 80
dtctl load-balancer create-listener --lb-id <lb-id> --protocol HTTP --port 80

Flags​

OptionDescription
--description, -dDescription of the load balancer listener
--lb-id, -iID of the load balancer (required)
--name, -nName of the load balancer listener
--port, -pFront-end port to listen on (1-65535) (required)
--protocol, -rFront-end protocol. One of: HTTP, HTTPS, TCP, UDP (required)
CommandDescription
dtctl load-balancer update-listenerUpdate a listener
dtctl load-balancer delete-listenerDelete a listener
dtctl load-balancer listener-detailsShow a listener
dtctl load-balancer listener-statsShow listener statistics
dtctl load-balancer listenersList listeners of a load balancer

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