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
| Option | Description |
|---|---|
--admin-state-up, -a | Enable or disable the load balancer listener Default: false |
--allowed-cidrs, -r | Comma-separated list of allowed CIDRs for the listener (e.g., '192.168.1.0/24,10.0.0.0/16') |
--connection-limit, -s | Maximum number of connections for the listener |
--default-pool-id, -p | Default pool ID associated with the listener |
--description, -d | Description of the load balancer listener |
--insert-headers, -x | Insert 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, -i | ID of the load balancer (required) |
--listener-id, -l | ID of the load balancer listener (required) |
--name, -n | Name of the load balancer listener |
--timeout-client-data, -t | Timeout in seconds for client data |
--timeout-member-connect, -m | Timeout in seconds for connecting to backend members |
--timeout-member-data, -b | Timeout in seconds for backend member data |
Related Commands
| Command | Description |
|---|---|
| dtctl load-balancer create-listener | Create a listener |
| dtctl load-balancer delete-listener | Delete a listener |
| dtctl load-balancer listener-details | Show a listener |
| dtctl load-balancer listener-stats | Show listener statistics |
| dtctl load-balancer listeners | List listeners of a load balancer |
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 |