Register a VM with a load balancer
Reviewed on · View on GitHub
You can attach one or more VM (Virtual Machine) to a specified load balancer. You must specify at least the BackendIps or BackendVMIds parameter. The VM can be located in different subnets and different Subregions from the load balancer, as long as the VM and the load balancers are either all in the public Cloud or all in the same VPC (Virtual Private Cloud). Registering a VM with the load balancer can take some time. Once registered, the VM receives traffic and requests from that load balancer and is then called a backend VM.
Permissions
This action requires the following IAM (Identity and Access Management) permissions:
- compute.loadBalancer.update
- Console
- API
- Terraform
Console
- From the left-hand side menu, click Network → Load Balancers to access the list of load balancers.
- Click the name of the load balancer for which you want to register a VM.
- In the "Backend VM" tab, click Register a VM.
- Select the VM to register from the drop-down list.
Multi-selection is available.
- Click Register. The VM is registered with the load balancer.
API
The PUT /compute/spaces/{spaceId}/loadBalancers/{id}/backendMachines/link command attaches a VM to a load balancer.
Terraform
The Terraform documentation is available on the Numspot registry ↗.