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
| Option | Description |
|---|---|
--address, -f | Address of the load balancer member (required) |
--admin-state-up, -a | Enable or disable the load balancer member Default: false |
--backup, -b | Enable or disable backup for the load balancer member Default: false |
--balancing-pool-id, -p | ID of the load balancer pool (required) |
--compute-server-id, -s | Compute server ID of the load balancer member (required) |
--lb-id, -i | ID of the load balancer (required) |
--monitor-address, -z | Monitor address of the load balancer member |
--monitor-port, -m | Monitor port of the load balancer member |
--name, -n | Name of the load balancer member |
--protocol-port, -r | Protocol port of the load balancer member |
--weight, -w | Weight of the load balancer member |
Related Commands
| Command | Description |
|---|---|
| dtctl load-balancer update-member | Update a member |
| dtctl load-balancer delete-member | Delete a member |
| dtctl load-balancer batch-update-members | Add or replace pool members in bulk |
| dtctl load-balancer member-vms | List candidate member VMs on a network |
| dtctl load-balancer members | List members of a pool |
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 |