Skip to main content

dtctl load-balancer update-listener

Usage​

dtctl load-balancer update-listener [flags]

Aliases​

ul

Description​

Update a listener's name, description, admin state, connection limit, default pool, allowed CIDRs, inserted headers, or timeouts.

Example​

dtctl load-balancer update-listener --lb-id <lb-id> --listener-id <listener-id> --connection-limit 2000

Flags​

OptionDescription
--admin-state-up, -aEnable or disable the load balancer listener
Default: false
--allowed-cidrs, -rComma-separated list of allowed CIDRs for the listener (e.g., '192.168.1.0/24,10.0.0.0/16')
--connection-limit, -sMaximum number of connections for the listener
--default-pool-id, -pDefault pool ID associated with the listener
--description, -dDescription of the load balancer listener
--insert-headers, -xInsert headers, as comma-separated key=value pairs.
Supported headers:
- X-Forwarded-For
- X-Forwarded-Port
- X-Forwarded-Proto
- X-SSL-Client-CN
- X-SSL-Client-DN
- X-SSL-Client-Has-Cert
- X-SSL-Client-Verify
- X-SSL-Client-Not-After
- X-SSL-Client-Not-Before
- X-SSL-Client-SHA1
- X-SSL-Issuer
Example: "X-Forwarded-For=true,X-Forwarded-Proto=https"
--lb-id, -iID of the load balancer (required)
--listener-id, -lID of the load balancer listener (required)
--name, -nName of the load balancer listener
--timeout-client-data, -tTimeout in seconds for client data
--timeout-member-connect, -mTimeout in seconds for connecting to backend members
--timeout-member-data, -bTimeout in seconds for backend member data
CommandDescription
dtctl load-balancer create-listenerCreate 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