## Create Load Balancer
curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" -d '{"name":"lb-name","region":"nyc3","droplet_ids":[], "forwarding_rules": [
{
"entry_protocol": "http",
"entry_port": 80,
"target_protocol": "http",
"target_port": 80
}
]}' "https://api.digitalocean.com/v2/load_balancers"
## Add another droplet
curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" -d '{"droplet_ids":[]}' "https://api.digitalocean.com/v2/load_balancers//droplets"
↧
DigitalOcean introduces Load Balancers
↧