Updating a Vultr Load Balancer enables you to modify various settings, including changing its label for better identification within your infrastructure. This process does not affect the functionality, traffic distribution, or configuration of the Load Balancer. By adjusting the label, you can easily manage multiple Load Balancers, ensuring clear tracking across your environment.
Follow this guide to update the label of a Vultr Load Balancer on your Vultr account using the Vultr Customer Portal, API, or CLI.
Send a GET
request to the List Load Balancers endpoint and note the target Load Balancer's ID.
$ curl "https://api.vultr.com/v2/load-balancers" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a PATCH
request to the Update Load Balancer endpoint to update the target Load Balancer's label.
$ curl "https://api.vultr.com/v2/load-balancers/{load-balancer-id}" \
-X PATCH \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"label": "{updated_label}"
}'
Send a GET
request to the Get Load Balancer endpoint to fetch the details of the target Load Balancer.
$ curl "https://api.vultr.com/v2/load-balancers/{load-balancer-id}" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
List all available instances and note the target Load Balancer's ID.
$ vultr-cli load-balancer list
Update the target Load Balancer's label.
$ vultr-cli load-balancer update <load-balancer-id> --label "<updated_label>"
Get the details of the target Load Balancer.
$ vultr-cli load-balancer get <load-balancer-id>