doctl compute load-balancer update

Go to Navigation


doctl compute load-balancer update <id> [flags]




Use this command to update the configuration of a specified load balancer.


--algorithmThe algorithm to use when traffic is distributed across your Droplets; possible values: round_robin or least_connections
Default: round_robin
--disable-lets-encrypt-dns-recordsdisable automatic DNS record creation for Let’s Encrypt certificates that are added to the load balancer
Default: false
--droplet-idsA comma-separated list of Droplet IDs, e.g.: 215,378
--enable-backend-keepaliveenable keepalive connections to backend target droplets
Default: false
--enable-proxy-protocolenable proxy protocol
Default: false
--forwarding-rulesA comma-separated list of key-value pairs representing forwarding rules, which define how traffic is routed, e.g.: entry_protocol:tcp,entry_port:3306,target_protocol:tcp,target_port:3306.
--health-checkA comma-separated list of key-value pairs representing recent health check results, e.g.: protocol:http, port:80, path:/index.html, check_interval_seconds:10, response_timeout_seconds:5, healthy_threshold:5, unhealthy_threshold:3
--help, -hHelp for this command
--nameThe load balancer’s name (required)
--redirect-http-to-httpsFlag to redirect HTTP requests to the load balancer on port 80 to HTTPS on port 443
Default: false
--regionThe load balancer’s region, e.g.: nyc1 (required)
--sizeThe load balancer’s size, e.g.: lb-small. Only one of size and size-unit should be used
--size-unitThe load balancer’s size, e.g.: 1. Only one of size-unit and size should be used
Default: 0
--sticky-sessionsA comma-separated list of key-value pairs representing a list of active sessions, e.g.: type:cookies, cookie_title:DO-LB, cookie_ttl_seconds:5
--tag-nameAssigns Droplets with the specified tag to the load balancer
--vpc-uuidThe UUID of the VPC to create the load balancer in
doctl compute load-balancerDisplay commands to manage load balancers

Global Flags

--access-token, -tAPI V2 access token
--api-url, -uOverride default API endpoint
--config, -cSpecify a custom config file
  • macOS: ${HOME}/Library/Application Support/doctl/config.yaml
  • Linux: ${XDG_CONFIG_HOME}/doctl/config.yaml
  • Windows: %APPDATA%\doctl\config.yaml
--contextSpecify a custom authentication context name
--output, -oDesired output format [text|json]
Default: text
--traceShow a log of network activity while performing a command
Default: false
--verbose, -vEnable verbose output
Default: false