Skip to main content

dtctl load-balancer create-member

Usage​

dtctl load-balancer create-member [flags]

Aliases​

cm

Description​

Add a backend virtual machine to a pool as a member. Use dtctl load-balancer member-vms to find candidate VMs (their address and compute server ID) on a network.

Example​

# Add a VM as a pool member on port 80
dtctl load-balancer create-member --lb-id <lb-id> --balancing-pool-id <pool-id> --address 10.0.0.5 --compute-server-id <vm-id> --protocol-port 80

Flags​

OptionDescription
--address, -fAddress of the load balancer member (required)
--admin-state-up, -aEnable or disable the load balancer member
Default: false
--backup, -bEnable or disable backup for the load balancer member
Default: false
--balancing-pool-id, -pID of the load balancer pool (required)
--compute-server-id, -sCompute server ID of the load balancer member (required)
--lb-id, -iID of the load balancer (required)
--monitor-address, -zMonitor address of the load balancer member
--monitor-port, -mMonitor port of the load balancer member
--name, -nName of the load balancer member
--protocol-port, -rProtocol port of the load balancer member
--weight, -wWeight of the load balancer member
CommandDescription
dtctl load-balancer update-memberUpdate a member
dtctl load-balancer delete-memberDelete a member
dtctl load-balancer batch-update-membersAdd or replace pool members in bulk
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