Skip to main content

dtctl load-balancer batch-update-members

Usage​

dtctl load-balancer batch-update-members [flags]

Aliases​

bm

Description​

Add or replace all members of a pool in a single call by passing a JSON array. Members not included in the array are removed from the pool.

Example​

# Replace a pool's members with two backends
dtctl load-balancer batch-update-members --lb-id <lb-id> --pool-id <pool-id> --members '[{"address":"10.0.0.5","compute_server_id":"<vm-id>","protocol_port":80},{"address":"10.0.0.6","compute_server_id":"<vm-id-2>","protocol_port":80}]'

Flags​

OptionDescription
--lb-id, -iID of the load balancer (required)
--members, -mJSON array of member objects. Each: {"address","compute_server_id","protocol_port"[,"name","weight"]}. Example: '[{"address":"10.0.0.5","compute_server_id":"<vm-id>","protocol_port":80}]' (required)
--pool-id, -pID of the pool (required)
CommandDescription
dtctl load-balancer create-memberAdd a member to a pool
dtctl load-balancer update-memberUpdate a member
dtctl load-balancer delete-memberDelete a member
dtctl load-balancer member-vmsList candidate member VMs on a network
dtctl load-balancer membersList members of a pool

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