CLI (odx)Command reference
odx load-balancer
Manage load balancers
odx load-balancer add-label
Add labels to a load balancer
Usage:
odx load-balancer add-label [--overwrite] <load-balancer> <key=value>... [flags]
Flags:
-h, --help help for add-label
--overwrite overwrite labels that already existodx load-balancer add-service
Add a service to a load balancer
Usage:
odx load-balancer add-service --protocol tcp|http --listen-port <port> [options] <load-balancer> [flags]
Examples:
odx load-balancer add-service --protocol http --listen-port 80 --destination-port 8080 lb-1
Flags:
--destination-port int port on the targets (default: listen port)
--health-check-http-path string HTTP health check path
--health-check-http-status-codes strings accepted HTTP status codes, e.g. 2??,3??
--health-check-interval int health check interval in seconds
--health-check-port int health check port
--health-check-protocol string health check protocol: tcp or http
--health-check-retries int health check retries
--health-check-timeout int health check timeout in seconds
-h, --help help for add-service
--http-sticky-sessions enable sticky sessions (http)
--listen-port int port the load balancer listens on (required)
--no-wait do not wait for the action to finish
--protocol string tcp or http
--proxy-protocol enable the PROXY protocolodx load-balancer add-target
Add a target to a load balancer
Usage:
odx load-balancer add-target (--server <server> | --label-selector <selector> | --ip <ip>) <load-balancer> [flags]
Flags:
-h, --help help for add-target
--ip string IP address
-l, --label-selector string label selector
--no-wait do not wait for the action to finish
--server string server name or IDodx load-balancer change-algorithm
Change the balancing algorithm
Usage:
odx load-balancer change-algorithm --algorithm-type round_robin|least_connections <load-balancer> [flags]
Flags:
--algorithm-type string round_robin or least_connections (required)
-h, --help help for change-algorithm
--no-wait do not wait for the action to finishodx load-balancer change-type
Change the type of a load balancer
Usage:
odx load-balancer change-type --type <type> <load-balancer> [flags]
Flags:
-h, --help help for change-type
--type string new load balancer typeodx load-balancer create
Create a load balancer
Usage:
odx load-balancer create --name <name> --type <type> --location <location> [options] [flags]
Examples:
odx load-balancer create --name lb-1 --type lb11 --location fra1
Flags:
--algorithm-type string round_robin or least_connections
-h, --help help for create
--label stringArray label key=value (repeatable)
--location string location (required)
--name string name (required)
--no-wait do not wait for the action to finish
--type string load balancer type, e.g. lb11 (required)odx load-balancer delete
Delete one or more load balancers
Usage:
odx load-balancer delete <load-balancer>... [flags]
Flags:
-h, --help help for delete
--no-wait do not wait for the action to finishodx load-balancer delete-service
Delete a service from a load balancer
Usage:
odx load-balancer delete-service --listen-port <port> <load-balancer> [flags]
Flags:
-h, --help help for delete-service
--listen-port int listen port of the service (required)
--no-wait do not wait for the action to finishodx load-balancer describe
Describe a load balancer
Usage:
odx load-balancer describe <load-balancer> [flags]
Flags:
-h, --help help for describe
-o, --output stringArray output format: json or yamlodx load-balancer disable-protection
Disable resource protection for a load balancer
Usage:
odx load-balancer disable-protection <load-balancer> delete [flags]
Flags:
-h, --help help for disable-protectionodx load-balancer enable-protection
Enable resource protection for a load balancer
Usage:
odx load-balancer enable-protection <load-balancer> delete [flags]
Flags:
-h, --help help for enable-protectionodx load-balancer list
List load balancers.
Columns: age, algorithm, created, id, ipv4, ipv6, labels, location, name, protection, services, status, targets, type
Usage:
odx load-balancer list [options] [flags]
Aliases:
list, ls
Flags:
-h, --help help for list
-o, --output stringArray output format: json, yaml, noheader, columns=a,b,c (repeatable)
-l, --selector string label selector, e.g. env=prod,!tmpodx load-balancer remove-label
Remove labels from a load balancer
Usage:
odx load-balancer remove-label <load-balancer> (--all | <key>...) [flags]
Flags:
-a, --all remove all labels
-h, --help help for remove-labelodx load-balancer remove-target
Remove a target from a load balancer
Usage:
odx load-balancer remove-target (--server <server> | --label-selector <selector> | --ip <ip>) <load-balancer> [flags]
Flags:
-h, --help help for remove-target
--ip string IP address
-l, --label-selector string label selector
--no-wait do not wait for the action to finish
--server string server name or IDodx load-balancer update
Update a load balancer
Usage:
odx load-balancer update --name <name> <load-balancer> [flags]
Flags:
-h, --help help for update
--name string new nameodx load-balancer update-service
Update a service of a load balancer
Usage:
odx load-balancer update-service --listen-port <port> [options] <load-balancer> [flags]
Flags:
--destination-port int port on the targets (default: listen port)
--health-check-http-path string HTTP health check path
--health-check-http-status-codes strings accepted HTTP status codes, e.g. 2??,3??
--health-check-interval int health check interval in seconds
--health-check-port int health check port
--health-check-protocol string health check protocol: tcp or http
--health-check-retries int health check retries
--health-check-timeout int health check timeout in seconds
-h, --help help for update-service
--http-sticky-sessions enable sticky sessions (http)
--listen-port int port the load balancer listens on (required)
--no-wait do not wait for the action to finish
--protocol string tcp or http
--proxy-protocol enable the PROXY protocol